Skip to content

Instantly share code, notes, and snippets.

@bklarson
Created June 5, 2012 19:16
Show Gist options
  • Save bklarson/2877103 to your computer and use it in GitHub Desktop.
Save bklarson/2877103 to your computer and use it in GitHub Desktop.
$ java -jar gerrit-war/target/gerrit-2.5-SNAPSHOT.war init -d ../gerrit-test/ --batch
Upgrading database schema from version 67 to 68 ...
warning: Cannot create index for submodule subscriptions
Index "SUBMODULE_SUBSCRIPTION_ACCESS_BYSUBSCRIPTION" already exists; SQL statement:
CREATE INDEX submodule_subscription_access_bySubscription ON submodule_subscriptions (submodule_project_name, submodule_branch_name) [42111-147]
you may ignore this warning when running in interactive mode
Exception in thread "main" com.google.gwtorm.server.OrmException: Cannot upgrade schema
at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:66)
at com.google.gerrit.pgm.Init$SiteRun.upgradeSchema(Init.java:181)
at com.google.gerrit.pgm.Init.run(Init.java:79)
at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:168)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:92)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:50)
at Main.main(Main.java:25)
Caused by: org.h2.jdbc.JdbcSQLException: Index "SUBMODULE_SUBSCRIPTION_ACCESS_BYSUBSCRIPTION" already exists; SQL statement:
CREATE INDEX submodule_subscription_access_bySubscription ON submodule_subscriptions (submodule_project_name, submodule_branch_name) [42111-147]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.command.ddl.CreateIndex.update(CreateIndex.java:76)
at org.h2.command.CommandContainer.update(CommandContainer.java:69)
at org.h2.command.Command.executeUpdate(Command.java:201)
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:178)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:153)
at com.google.gerrit.server.schema.Schema_68.migrateData(Schema_68.java:36)
at com.google.gerrit.server.schema.SchemaVersion.upgradeFrom(SchemaVersion.java:95)
at com.google.gerrit.server.schema.SchemaVersion.check(SchemaVersion.java:77)
at com.google.gerrit.server.schema.SchemaVersion.upgradeFrom(SchemaVersion.java:86)
at com.google.gerrit.server.schema.SchemaVersion.check(SchemaVersion.java:77)
at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:64)
... 11 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment