On Thursday, September 27, 2012 21:42:28 Shawn Pearce wrote:
> > So, I have 2.1.8 (which is later than 2.1.7), but then it says "If you are
> > upgrading from 2.2.x.x or newer..." What about releases between 2.1.7 and
> > 2.2.x.x? Can I upgrade directly from 2.1.8 to 2.5?
>
> Yes. What is missing is the ability to do 2.1.5 -> 2.2.x for example.
> We deleted those ancient upgrade paths in 2.2.0.
Thanks. It might be clearer if it said something along the lines of:
To upgrade to 2.5, gerrit must be at version 2.1.7 or later. If your Gerrit
version is older than 2.1.7, please upgrade to 2.1.7 first, then to 2.5.
> If you pass --batch it won't prompt, it will just do the upgrade. At
> the end you will be given a block of SQL you have to run by hand to
> clean up the database. If you omit --batch (as you did above) you will
> be shown this block of SQL and asked if you want Gerrit to run it
> immediately.
>
> This does seem to be a problem. Can the user you ran the init command
> as actually read the file at
> /path/to/existing/install/etc/gerrit.config ? It seems like maybe not
> if the prompts aren't describing current settings.
I ran the following (as 'gerrit', the user as which gerrit runs):
$ ls -l /opt/local/gerrit/
review.whamcloud.com/etc/gerrit.config
-rw-r--r-- 1 gerrit root 1362 Jun 7 17:14
/opt/local/gerrit/
review.domain.com/etc/gerrit.config
java -jar gerrit-full-2.5-rc0.war init -d /opt/local/gerrit/
review.domain.com
And I get this:
$ java -jar gerrit-full-2.5-rc0.war init -d
/opt/local/gerrit/
review.whamcloud.com
*** Gerrit Code Review 2.5-rc0
***
*** Git Repositories
***
Location of Git repositories [/srv/source/git]:
*** SQL Database
***
Database server type [H2/?]:
It gets the first one right (based on past preferences) but then doesn't
default to MySQL (the currently used DB).
If i do this:
$ java -jar gerrit-full-2.5-rc0.war init --batch -d
/opt/local/gerrit/
review.domain.com
Upgrading database schema from version 52 to 53 ...
Exception in thread "main" com.google.gwtorm.server.OrmException: Cannot
create repository -- All Projects --
(I'll attach the full traceback)
So, as of right now, I'm stuck.
Ideas?