<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I've already created JIRA
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/KEYCLOAK-1548">https://issues.jboss.org/browse/KEYCLOAK-1548</a> with the reference
to the ML thread you created earlier. Will look into it to have
the fix for Keycloak 1.4 release.<br>
<br>
Marek<br>
<br>
On 10.7.2015 07:30, Dean Peterson wrote:<br>
</div>
<blockquote
cite="mid:CAFGzvPkySU-zXVy8fuBPwYQfPJDu_NA7jm0y6NA7rgOwUKUEHw@mail.gmail.com"
type="cite">
<div dir="ltr">I did a fresh install with mongodb 3.0 and
everything worked fine running 1.3.1.Final. However, I need to
upgrade from 1.2.0.Beta1 so I tried the same configuration with
everything except this time migrating the old database data. I
get the following error:<br>
<div><br>
</div>
<div>
<div><span class="" style="white-space:pre"> </span>at
java.lang.reflect.Constructor.newInstance(Constructor.java:422)</div>
<div><span class="" style="white-space:pre"> </span>at
org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148)</div>
<div><span class="" style="white-space:pre"> </span>... 19
more</div>
<div>Caused by: java.lang.RuntimeException: Failed to update
database</div>
<div><span class="" style="white-space:pre"> </span>at
org.keycloak.connections.mongo.updater.impl.DefaultMongoUpdaterProvider.update(DefaultMongoUpdaterProvider.java:90)</div>
<div><span class="" style="white-space:pre"> </span>at
org.keycloak.connections.mongo.DefaultMongoConnectionFactoryProvider.lazyInit(DefaultMongoConnectionFactoryProvider.java:99)</div>
<div><span class="" style="white-space:pre"> </span>... 36
more</div>
<div>Caused by: com.mongodb.CommandFailureException: {
"serverUsed" : "kcdb/<a moz-do-not-send="true"
href="http://172.17.0.69:27017">172.17.0.69:27017</a>" ,
"nIndexesWas" : 1 , "ok" : 0.0 , "errmsg" : "index not found
with name [realmId_1_name_1]"}</div>
<div><span class="" style="white-space:pre"> </span>at
com.mongodb.CommandResult.getException(CommandResult.java:71)</div>
<div><span class="" style="white-space:pre"> </span>at
com.mongodb.CommandResult.throwOnError(CommandResult.java:110)</div>
<div><span class="" style="white-space:pre"> </span>at
com.mongodb.DBCollection.dropIndexes(DBCollection.java:847)</div>
<div><span class="" style="white-space:pre"> </span>at
com.mongodb.DBCollection.dropIndex(DBCollection.java:1349)</div>
<div><span class="" style="white-space:pre"> </span>at
org.keycloak.connections.mongo.updater.impl.updates.Update1_2_0_CR1.convertApplicationsToClients(Update1_2_0_CR1.java:33)</div>
<div><span class="" style="white-space:pre"> </span>at
org.keycloak.connections.mongo.updater.impl.updates.Update1_2_0_CR1.update(Update1_2_0_CR1.java:23)</div>
<div><span class="" style="white-space:pre"> </span>at
org.keycloak.connections.mongo.updater.impl.DefaultMongoUpdaterProvider.update(DefaultMongoUpdaterProvider.java:79)</div>
<div><span class="" style="white-space:pre"> </span>... 37
more</div>
<div><br>
</div>
<div>01:17:00,691 ERROR
[org.jboss.as.controller.management-operation] (Controller
Boot Thread) WFLYCTL0013: Operation ("add") failed -
address: ([("deployment" => "keycloak-server.</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I mentioned this before and Stian was going to look into
it; at the time he thought it might be due to using mongodb
3.0. However, mongodb 3.0 works fine with a fresh install.</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>