[keycloak-user] [keycloak-dev] Error while updating jboss/keycloak from old :latest to newer :latest
Hynek Mlnarik
hmlnarik at redhat.com
Wed Aug 8 06:19:07 EDT 2018
Fixing the target list.
The changelogs between Betas were allowed to change freely so this change
(which came between Beta1 and Beta2) causes the issue. Always prefer exact
Final releases to :latest.
To fix this issue, you would have to either delete the corresponding row in
the 'databasechangelog' table and revert all the changes from [1], or
update the checksum in the corresponding row in database changelog table
and apply the differences from [1] manually to match the final version of
that file.
[1]
https://github.com/keycloak/keycloak/blame/master/model/jpa/src/main/resources/META-INF/jpa-changelog-authz-4.0.0.CR1.xml
On Wed, Aug 8, 2018 at 9:37 AM Lukasz Lech <l.lech at ringler.ch> wrote:
> Hello,
>
> I've started keycloak locally from docker image jboss/keycloak:latest
>
> Today I've pulled the image, and I've got the following error:
>
> Caused by: liquibase.exception.ValidationFailedException: Validation
> Failed:
> 1 change sets check sum
> META-INF/
> jpa-changelog-authz-4.0.0.CR1.xml::authz-4.0.0.CR1::psilva at redhat.com is
> now: 7:57960fc0b0f0dd0563ea6f8b2e4a1707
>
> at
> liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:206)
> at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1139)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.keycloak.common.util.reflections.Reflections.invokeMethod(Reflections.java:379)
> The problem is, I'm not sure what was the :latest state I was using, it
> was some snapshot of 4.0.0-Beta,
> I've tried to start now :latest, :4.0.0.Final, and :4.0.0.Beta3, but
> neither of them can work with the old database.
>
> Does it mean, that my current database is unusable and I need to start
> from scratch or there is some way to update it?
>
> Should I never ever in the future use :latest image?
>
> Best regards,
> Lukasz Lech
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
More information about the keycloak-user
mailing list