<div dir="ltr">That's expected. We don't support migrating from a CR release. CR releases are only aimed at testing, not production.</div><div class="gmail_extra"><br><div class="gmail_quote">On 25 February 2016 at 09:51, Edgar Vonk - Info.nl <span dir="ltr"><<a href="mailto:Edgar@info.nl" target="_blank">Edgar@info.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
PS: we did have another issue with 1.9.0.Final in that Keycloak failed to upgrade its database model from 1.9.0.RC1. We solved that simply by starting again with an empty database, as we import our realm every time anyway. I guess the database upgrade path
from a release candidate version is not something that is supported in any case?
<div><br>
</div>
<div><br>
</div>
<div>
<div>[0m[0m08:41:42,161 INFO [org.keycloak.services] (ServerService Thread Pool -- 46) KC-SERVICES0001: Loading config from /opt/jboss/keycloak/standalone/configuration/keycloak-server.json</div>
<div>[0m[31m08:41:45,659 ERROR [org.keycloak.services] (ServerService Thread Pool -- 46) KC-SERVICES0002: Failed to migrate datamodel: java.lang.RuntimeException: Failed to update database</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider.update(LiquibaseJpaUpdaterProvider.java:91)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.lazyInit(DefaultJpaConnectionProviderFactory.java:170)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.create(DefaultJpaConnectionProviderFactory.java:59)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.create(DefaultJpaConnectionProviderFactory.java:47)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:101)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.models.jpa.JpaRealmProviderFactory.create(JpaRealmProviderFactory.java:51)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.models.jpa.JpaRealmProviderFactory.create(JpaRealmProviderFactory.java:33)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:101)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getDelegate(LockingCacheRealmProvider.java:104)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getMigrationModel(LockingCacheRealmProvider.java:97)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.migration.MigrationModelManager.migrate(MigrationModelManager.java:39)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.services.resources.KeycloakApplication.migrateModel(KeycloakApplication.java:152)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:94)</div><span class="">
<div><span style="white-space:pre-wrap"></span>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</div>
<div><span style="white-space:pre-wrap"></span>at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)</div>
<div><span style="white-space:pre-wrap"></span>at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)</div>
<div><span style="white-space:pre-wrap"></span>at java.lang.reflect.Constructor.newInstance(Constructor.java:422)</div>
<div><span style="white-space:pre-wrap"></span>at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:150)</div>
</span><span class=""><div><span style="white-space:pre-wrap"></span>at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2209)</div>
<div><span style="white-space:pre-wrap"></span>at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:299)</div>
<div><span style="white-space:pre-wrap"></span>at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:240)</div>
<div><span style="white-space:pre-wrap"></span>at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:113)</div>
<div><span style="white-space:pre-wrap"></span>at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)</div>
<div><span style="white-space:pre-wrap"></span>at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)</div>
<div><span style="white-space:pre-wrap"></span>at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)</div>
<div><span style="white-space:pre-wrap"></span>at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)</div>
<div><span style="white-space:pre-wrap"></span>at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:231)</div>
<div><span style="white-space:pre-wrap"></span>at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:132)</div>
<div><span style="white-space:pre-wrap"></span>at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:526)</div>
<div><span style="white-space:pre-wrap"></span>at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)</div>
<div><span style="white-space:pre-wrap"></span>at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)</div>
</span><span class=""><div><span style="white-space:pre-wrap"></span>at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)</div>
<div><span style="white-space:pre-wrap"></span>at java.util.concurrent.FutureTask.run(FutureTask.java:266)</div>
<div><span style="white-space:pre-wrap"></span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)</div>
<div><span style="white-space:pre-wrap"></span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)</div>
<div><span style="white-space:pre-wrap"></span>at java.lang.Thread.run(Thread.java:745)</div>
<div><span style="white-space:pre-wrap"></span>at org.jboss.threads.JBossThread.run(JBossThread.java:320)</div>
</span><div>Caused by: liquibase.exception.ValidationFailedException: Validation Failed:</div>
<div> 1 change sets check sum</div>
<div> META-INF/jpa-changelog-1.9.0.xml::1.9.0::<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a> is now: 7:ed2dc7f799d19ac452cbcda56c929e47</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:206)</div>
<div><span style="white-space:pre-wrap"></span>at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1139)</div>
<div><span style="white-space:pre-wrap"></span>at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1126)</div>
<div><span style="white-space:pre-wrap"></span>at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1122)</div>
<div><span style="white-space:pre-wrap"></span>at org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider.update(LiquibaseJpaUpdaterProvider.java:67)</div>
<div><span style="white-space:pre-wrap"></span>... 36 more</div><div><div class="h5">
<div><br>
</div>
<div><br>
<div>
<blockquote type="cite">
<div>On 25 Feb 2016, at 09:32, Edgar Vonk - <a href="http://info.nl" target="_blank">
Info.nl</a> <<a href="mailto:Edgar@info.nl" target="_blank">Edgar@info.nl</a>> wrote:</div>
<br>
<div>
<div style="word-wrap:break-word">
Thanks Bill! Yes, the issue was indeed our version of the keycloak-server.json.
<div><br>
<div>
<blockquote type="cite">
<div>On 24 Feb 2016, at 20:46, Bill Burke <<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>> wrote:</div>
<br>
<div>
<div bgcolor="#FFFFFF" text="#000000">Please check the distributions keycloak-server.json, it is changed. standalone.xml has also changed to add an additional cache.<br>
<br>
<div>On 2/24/2016 1:46 PM, Stian Thorgersen wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Well, <a href="https://github.com/keycloak/keycloak/blob/1.9.0.Final/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanCacheUserProviderFactory.java#L58" target="_blank">https://github.com/keycloak/keycloak/blob/1.9.0.Final/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanCacheUserProviderFactory.java#L58</a>
would be a start.
<div><br>
</div>
<div>My guess is that <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap;background-color:rgb(248,238,199)">session</span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap">.</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap;background-color:rgb(248,238,199)">getProvider(</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap">InfinispanConnectionProvider</span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap">.</span><span>class)
</span>is returning null for some reason. When you say you've done customizations you've not described what you've done.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 24 February 2016 at 17:59, Edgar Vonk - <a href="http://info.nl/" target="_blank">
Info.nl</a> <span dir="ltr"><<a href="mailto:Edgar@info.nl" target="_blank">Edgar@info.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi,<br>
<br>
Starting from 1.9.0.Final (it was working ok in 1.9.0.RC1) our Keycloak Docker image no longer starts up. We get the following exception. We have made a number of customisations so I am guessing the issue is somewhere there. Maybe someone already has an idea
where to look from this stack trace? We based our Docker image on <a href="https://hub.docker.com/r/jboss/keycloak/" rel="noreferrer" target="_blank">
https://hub.docker.com/r/jboss/keycloak/</a> but customised it quite a bit.<br>
<br>
cheers<br>
<br>
Edgar<br>
<br>
16:49:50,851 INFO [org.keycloak.services] (ServerService Thread Pool -- 46) KC-SERVICES0050: Initializing master realm<br>
16:49:52,621 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 46) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth:
java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)<br>
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)<br>
at java.util.concurrent.FutureTask.run(FutureTask.java:266)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br>
at java.lang.Thread.run(Thread.java:745)<br>
at org.jboss.threads.JBossThread.run(JBossThread.java:320)<br>
Caused by: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:162)<br>
at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2209)<br>
at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:299)<br>
at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:240)<br>
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:113)<br>
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)<br>
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)<br>
at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)<br>
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)<br>
at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:231)<br>
at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:132)<br>
at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:526)<br>
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)<br>
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)<br>
... 6 more<br>
Caused by: java.lang.NullPointerException<br>
at org.keycloak.models.cache.infinispan.InfinispanCacheUserProviderFactory.lazyInit(InfinispanCacheUserProviderFactory.java:58)<br>
at org.keycloak.models.cache.infinispan.InfinispanCacheUserProviderFactory.create(InfinispanCacheUserProviderFactory.java:50)<br>
at org.keycloak.models.cache.infinispan.InfinispanCacheUserProviderFactory.create(InfinispanCacheUserProviderFactory.java:38)<br>
at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:101)<br>
at org.keycloak.services.DefaultKeycloakSession.getUserProvider(DefaultKeycloakSession.java:64)<br>
at org.keycloak.services.DefaultKeycloakSession.userStorage(DefaultKeycloakSession.java:90)<br>
at org.keycloak.models.UserFederationManager.getUsersCount(UserFederationManager.java:286)<br>
at org.keycloak.services.managers.ApplianceBootstrap.isNoMasterUser(ApplianceBootstrap.java:50)<br>
at org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:134)<br>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)<br>
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br>
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)<br>
at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:150)<br>
... 19 more<br>
<br>
16:49:52,628 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "keycloak-server.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./auth"
=> "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
Caused by: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
Caused by: java.lang.NullPointerException"}}<br>
<br>
<br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset> <br>
<pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
<pre cols="72">--
Bill Burke
JBoss, a division of Red Hat
<a href="http://bill.burkecentral.com/" target="_blank">http://bill.burkecentral.com</a></pre>
</div>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>