Upgrade issue from 20.0.1 to 21.1.1 using old db, themes and deployment
Dhanya415 opened this issue · comments
Getting this error while trying to upgrade keycloak postgres from 20.0.1 to 21.1.1. I did fresh keycloak postgres db install and restored the themes, deployment and pgdb backup from another environment to this environment. It was working fine in 20.0.1, while trying to upgrade to 21.1.1 pods are not coming up and getting this error.
2023-11-23 11:03:49,028 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: liquibase.exception.ValidationFailedException: Validation Failed:
2 changesets check sum
META-INF/jpa-changelog-14.0.0.xml::14.0.0-KEYCLOAK-18286-supported-dbs::keycloak was: 8:f43dfba07ba249d5d932dc489fd2b886 but is now: 8:c0f6eaac1f3be773ffe54cb5b8482b70
META-INF/jpa-changelog-20.0.0.xml::20.0.0-12964-supported-dbs::keycloak was: 8:d00f99ed899c4d2ae9117e282badbef5 but is now: 8:05c99fc610845ef66ee812b7921af0ef
2023-11-23 11:03:49,029 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Validation Failed:
2 changesets check sum
META-INF/jpa-changelog-14.0.0.xml::14.0.0-KEYCLOAK-18286-supported-dbs::keycloak was: 8:f43dfba07ba249d5d932dc489fd2b886 but is now: 8:c0f6eaac1f3be773ffe54cb5b8482b70
META-INF/jpa-changelog-20.0.0.xml::20.0.0-12964-supported-dbs::keycloak was: 8:d00f99ed899c4d2ae9117e282badbef5 but is now: 8:05c99fc610845ef66ee812b7921af0ef
This can be fixed by updating the value in database as mentioned in above steps. However I just need to confirm if that's the proper solution or do we have any other solution. I believe updating like this in production environment is not recommended.
This issue has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs.