Help
Change theme
Press space for more information.
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Copy issue ID
Show links for this issue (Shortcut: i, l)
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
View issue level access limits(Press Alt + Right arrow for more information)
Pending code changes (auto-populated)
The version field defines the version of the software the bug was found in. [ID: 1154637]
Notification menu
Vote: I am impacted
Unintended behavior
View staffing
Description
Affected Version: 2.13.6
What steps will reproduce the problem?
1. java -jar /tmp/gerrit-2.16.2.war init -d /data/gerrit/gerrit_home_16.2/
What is the expected output?
Expect the command to complete without error
What do you see instead?
Migrating data to schema 150 ...
> Done (0.000 s)
Migrating data to schema 151 ...
Exception in thread "main" com.google.gwtorm.server.OrmException: Cannot upgrade schema
at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:113)
at com.google.gerrit.pgm.init.BaseInit$SiteRun.upgradeSchema(BaseInit.java:383)
at com.google.gerrit.pgm.init.BaseInit.run(BaseInit.java:144)
at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:226)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:122)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:66)
at Main.main(Main.java:28)
Caused by: org.postgresql.util.PSQLException: ERROR: column "created_on" of relation "account_groups" does not exist
Position: 27
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)
at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:120)
at com.google.gerrit.server.schema.Schema_151.migrateData(Schema_151.java:54)
at com.google.gerrit.server.schema.SchemaVersion.migrateData(SchemaVersion.java:155)
at com.google.gerrit.server.schema.SchemaVersion.upgradeFrom(SchemaVersion.java:94)
at com.google.gerrit.server.schema.SchemaVersion.check(SchemaVersion.java:85)
at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:111)
... 11 more
What is the output of the JS console log (if applicable)?
Please provide any additional information below.
Seems similar but not exately the same ashttps://bugs.chromium.org/p/gerrit/issues/detail?id=10018 , I encountered that problem the first time i tried and then I managed to do the upgrade in two steps.
I'm doing a dry run to test the upgrade before changing our production environment.