[keycloak-user] Tried to update database from 1.2.0.Beta1 to 1.2.0.Final

Stian Thorgersen stian at redhat.com
Mon Jun 15 01:28:51 EDT 2015


What version are you upgrading from?

----- Original Message -----
> From: "Dean Peterson" <peterson.dean at gmail.com>
> To: keycloak-user at lists.jboss.org
> Sent: Monday, 15 June, 2015 5:50:12 AM
> Subject: Re: [keycloak-user] Tried to update database from 1.2.0.Beta1 to	1.2.0.Final
> 
> The end of the error message is strange since I am trying to update to
> 1.2.0.Final. It refers to a candidate release:

When updating the db it goes through a list of updates, so if you haven't upgraded to 1.2.0.cr1 in the past that update is on the list as well.

> 
> Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "kcdb/
> 172.17.5.191:27017 " , "nIndexesWas" : 1 , "ok" : 0.0 , "errmsg" : "index
> not found with name [realmId_1_name_1]"}
> at com.mongodb.CommandResult.getException(CommandResult.java:71)
> at com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
> at com.mongodb.DBCollection.dropIndexes(DBCollection.java:847)
> at com.mongodb.DBCollection.dropIndex(DBCollection.java:1349)
> at
> org.keycloak.connections.mongo.updater.impl.updates.Update1_2_0_CR1.convertApplicationsToClients(Update1_2_0_CR1.java:33)
> at
> org.keycloak.connections.mongo.updater.impl.updates.Update1_2_0_CR1.update(Update1_2_0_CR1.java:23)
> at
> org.keycloak.connections.mongo.updater.impl.DefaultMongoUpdaterProvider.update(DefaultMongoUpdaterProvider.java:82)
> 
> 
> On Sun, Jun 14, 2015 at 10:43 PM, Dean Peterson < peterson.dean at gmail.com >
> wrote:
> 
> 
> 
> I receive this error:
> 
> Caused by: java.lang.RuntimeException: Failed to update database
> at
> org.keycloak.connections.mongo.updater.impl.DefaultMongoUpdaterProvider.update(DefaultMongoUpdaterProvider.java:93)
> at
> org.keycloak.connections.mongo.DefaultMongoConnectionFactoryProvider.lazyInit(DefaultMongoConnectionFactoryProvider.java:95)
> ... 35 more
> Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "kcdb/
> 172.17.5.191:27017 " , "nIndexesWas" : 1 , "ok" : 0.0 , "errmsg" : "index
> not found with name [realmId_1_name_1]"}
> at com.mongodb.CommandResult.getException(CommandResult.java:71)
> at com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
> 
> 
> 
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list