Issue 666: gerrit upgrade 2.1.1.1 -> 2.1.4 error
Status:  WontFix
Owner: ----
Closed:  Jun 2011
Reported by dun...@gmail.com, Aug 19, 2010
Upgrading database schema from version 39 to 40 ...
Exception in thread "main" com.google.gwtorm.client.OrmException: Cannot upgrade schema
        at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:58)
        at com.google.gerrit.pgm.Init$SiteRun.upgradeSchema(Init.java:191)
        at com.google.gerrit.pgm.Init.run(Init.java:86)
        at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:76)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:155)
        at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:89)
        at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:47)
        at Main.main(Main.java:25)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Can't DROP 'PRIMARY'; check that column/key exists
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.Util.getInstance(Util.java:381)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2642)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2571)
        at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:782)
        at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:625)
        at com.google.gerrit.server.schema.Schema_40.migrateData(Schema_40.java:59)
        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.SchemaUpdater.update(SchemaUpdater.java:56)
        ... 11 more


help me 

Jun 20, 2011
#1 sop@google.com
(No comment was entered for this change.)
Status: WontFix