Hi All,
I was trying to upgrade DHIS2 application from version 2.35.10 to 2.37.2 as by following below mentioned order.
- Upgraded from version 2.35.10 to version 2.35.11
This upgrade was successful.
- Upgraded from version 2.35.11 to version 2.36.7
This upgrade was successful.
- Upgraded from version 2.36.7 to version 2.37.2
This upgrade was not successful. Got error as stated below
Detected resolved migration not applied to database: 2.36.10. To ignore this migration, set ignoreIgnoredMigrations to true. To allow executing this migration, set outOfOrder to true.
(AbstractApplicationContext.java [localhost-startStop-1])
- ERROR 2022-01-19T22:24:51,680 Context initialization failed (ContextLoader.java [localhost-startStop-1])
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘webMvcConfig’: Unsatisfied dependency expressed through field ‘userSettingService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.UserSettingService’ defined in URL [jar:file:/opt/upgrade/webapps/ROOT/WEB-INF/lib/dhis-service-core-2.37.2.jar!/org/hisp/dhis/user/DefaultUserSettingService.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.UserSettingStore’ defined in URL [jar:file:/opt/upgrade/webapps/ROOT/WEB-INF/lib/dhis-service-core-2.37.2.jar!/org/hisp/dhis/user/hibernate/HibernateUserSettingStore.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in class path resource [org/hisp/dhis/db/migration/config/FlywayConfig.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Validate failed:
Detected resolved migration not applied to database: 2.36.10. To ignore this migration, set ignoreIgnoredMigrations to true. To allow executing this migration, set outOfOrder to true.```
Can any help on this?
Thank you
Regards,
DHIS2 Community Member