My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1021: upgrade from 2.1.7 to 2.2.1 fails during scheme upgrade
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Jun 2011


Sign in to add a comment
 
Reported by thirsty...@gmail.com, Jun 23, 2011
Affected Version:

2.1.7

steps to reproduce:

 /net/opt/java/jdk1.6.0-latest/bin/java -jar gerrit-2.2.1.war init -d review_site 

What is the expected output? What do you see instead?

after going through various config questions (generally accepting defaults as I don't intend to change anything), process fails at this point:

Upgrading database schema from version 52 to 53 ...
Exception in thread "main" java.lang.NullPointerException

attaching full transcript of upgrade session including full stacktrace.

Please provide any additional information below.

Jun 23, 2011
#1 thirsty...@gmail.com
(No comment was entered for this change.)
gerrit_upgrade.txt
3.1 KB   View   Download
Jun 23, 2011
#2 sop@google.com
Somehow you deleted the batch users group from your database.

You should still be able to start the server with 2.1.7. Create a new group. Shutdown the server and manually perform this update on system_config:

  UPDATE system_config SET batch_users_groupId = YOUR_NEW_GROUP_ID

Then restart the upgrade process. This aborted really early in the upgrade, so it has a good chance of being able to pick up and try again.
Status: AwaitingInformation
Labels: -Priority-Minor Priority-Blocker
Jun 24, 2011
#3 thirsty...@gmail.com
thanks!  that did the trick!   though I'm a little unsure what this "batch users" group is for and how it might've gotten deleted in the first place.   I guess I'll assume for now it was a case of user-error ... now corrected :)
Jun 24, 2011
#4 sop@google.com
(No comment was entered for this change.)
Status: WontFix
Sign in to add a comment

Powered by Google Project Hosting