My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3728: Upgrading to Gerrit 2.12-rc2 is blocked due to a missing SHA1
2 people starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Dec 21


Sign in to add a comment
 
Project Member Reported by bassem.rabil, Dec 18, 2015
*****************************************************************
*****                                                       *****
***** !!!! 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:
2.12-rc2

What steps will reproduce the problem?
1. Upgrade your existing 2.11 instance to 2.12-rc2 using the command:
java -jar gerrit.war init -d <review_site>


What is the expected output? What do you see instead?
Migration to the new schema should be finished and errors are reported at the end instead of aborting the whole migration for one error. Instead there is an error and migration is aborted:

Upgrading schema to 108 ...
Upgrading schema to 109 ...
Upgrading schema to 110 ...
Upgrading schema to 111 ...
Upgrading schema to 112 ...
Upgrading schema to 113 ...
Upgrading schema to 114 ...
Upgrading schema to 115 ...
Migrating data to schema 108 ...
Listing all changes ...
Detected open changes referring to the following non-existent projects:

It is highly recommended to remove
the obsolete open changes, comments and patch-sets from your DB.

done
Updating groups for open changes ...
  done 100 projects ...
  done 200 projects ...
Exception in thread "main" com.google.gwtorm.server.OrmException: org.eclipse.jgit.errors.MissingObjectException: Missing unknown fe2fbab33b7be6c64dee5e2a6ac2e96e55488438
	at com.google.gerrit.server.schema.Schema_108.migrateData(Schema_108.java:77)
	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)
	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: org.eclipse.jgit.errors.MissingObjectException: Missing unknown fe2fbab33b7be6c64dee5e2a6ac2e96e55488438
	at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
	at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:226)
	at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:859)
	at com.google.gerrit.server.schema.Schema_108.maybeParseCommit(Schema_108.java:183)
	at com.google.gerrit.server.schema.Schema_108.updateProjectGroups(Schema_108.java:95)
	at com.google.gerrit.server.schema.Schema_108.migrateData(Schema_108.java:75)
	... 15 more



Please provide any additional information below.

Dec 19, 2015
Project Member #1 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: Accepted
Labels: -Priority-Minor Priority-Blocker Blocking-2.12
Dec 19, 2015
Project Member #2 david.pu...@sonymobile.com
https://gerrit-review.googlesource.com/#/c/73457/
Status: ChangeUnderReview
Dec 21, 2015
Project Member #3 ekem...@google.com
(No comment was entered for this change.)
Status: Submitted
Labels: -Blocking-2.12 FixedIn-2.12
Dec 21, 2015
Project Member #4 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting