My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3748: expected schema version 115
1 person starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 3669
Owner:  ----
Closed:  Jan 6


Sign in to add a comment
 
Reported by classhe...@gmail.com, Jan 5 (5 days ago)
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version:

What steps will reproduce the problem?
1.when I updated my gerrit from 2.8.5 to 2.12, error happened.
1) Unsupported schema version 114; expected schema version 115.  Run init to upgrade:
$ java -jar /work/gerrit/review_site/bin/gerrit.war init -d /work/gerrit/review_site

1 error
	at com.google.gerrit.server.schema.SchemaVersionCheck.start(SchemaVersionCheck.java:62)
	at com.google.gerrit.lifecycle.LifecycleManager.start(LifecycleManager.java:74)
	at com.google.gerrit.pgm.Daemon.start(Daemon.java:302)
	at com.google.gerrit.pgm.Daemon.run(Daemon.java:203)
	at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:64)
	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:606)
	at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:159)
	at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:100)
	at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:56)
	at Main.main(Main.java:25)


Please provide any additional information below.
when I updated the scheme, another error occured.
Migrating data to schema 115 ...
Exception in thread "main" com.google.gwtorm.server.OrmException: Cannot upgrade schema
        at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:109)
        at com.google.gerrit.pgm.init.BaseInit$SiteRun.upgradeSchema(BaseInit.java:341)
        at com.google.gerrit.pgm.init.BaseInit.run(BaseInit.java:127)
        at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:64)
        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:606)
        at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:159)
        at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:100)
        at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:56)
        at Main.main(Main.java:25)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'hide_line_numbers' in 'field list'
        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:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.Util.getInstance(Util.java:386)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1053)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2713)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2663)
        at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1599)
        at com.google.gerrit.server.schema.Schema_115.migrateData(Schema_115.java:74)
        at com.google.gerrit.server.schema.SchemaVersion.migrateData(SchemaVersion.java:141)
        at com.google.gerrit.server.schema.SchemaVersion.upgradeFrom(SchemaVersion.java:80)
        at com.google.gerrit.server.schema.SchemaVersion.check(SchemaVersion.java:71)
        at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:107)
        ... 11 more
Jan 6 (4 days ago)
Project Member #1 huga...@gmail.com
There were similar bugs reported and those were fixed by https://gerrit-review.googlesource.com/#/c/73593 which will be 2.12.1. Can you build latest of stable-2.12 branch and see if it resolve your issue?


Status: AwaitingInformation
Jan 6 (4 days ago)
Project Member #2 u.wol...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 3669
Jan 7 (4 days ago)
#3 classhe...@gmail.com
I build latest of stable-2.12 branch and  it resolve my issue, thank you very much.
Sign in to add a comment

Powered by Google Project Hosting