<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: { &quot;serverUsed&quot; : &quot;kcdb/<a href="http://172.17.0.69:27017">172.17.0.69:27017</a>&quot; , &quot;nIndexesWas&quot; : 1 , &quot;ok&quot; : 0.0 , &quot;errmsg&quot; : &quot;index not found with name [realmId_1_name_1]&quot;}</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 (&quot;add&quot;) failed - address: ([(&quot;deployment&quot; =&gt; &quot;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>