I am planning to upgrade gerrit from version 2.11.7 to 2.14.2 , it is possible to upgrade directly ? I want to use online reindexing too . It looks like i have to first upgrade to 2.12.X version then 2.13.x version and finally 2.14.2 inorder to user online reindexing?
To use online reindexing for the changes secondary index when upgrading to 2.13.x, the server must first be upgraded to 2.8 (or 2.9) and then through 2.10, 2.11 and 2.12. Skipping a version will prevent the online reindexer from working.
Can you please provide the steps to upgrade the gerrit from one version to another version.
I am planning to upgrade gerrit from version 2.11.7 to 2.14.2 , it is possible to upgrade directly ? I want to use online reindexing too . It looks like i have to first upgrade to 2.12.X version then 2.13.x version and finally 2.14.2 inorder to user online reindexing?
On 23 Jan 2020, at 08:20, abhishek das <abhi.da...@gmail.com> wrote:
On Tuesday, August 1, 2017 at 9:59:58 AM UTC+1, devops wrote:I am planning to upgrade gerrit from version 2.11.7 to 2.14.2 , it is possible to upgrade directly ? I want to use online reindexing too . It looks like i have to first upgrade to 2.12.X version then 2.13.x version and finally 2.14.2 inorder to user online reindexing?I am getting error while upgrading from 2.12.9 -> 2.13 or 2.12.9 -> 2.13.14Error details below. Any help or suggestion, please appreciated:# java -jar gerrit-war-2.13.war init --batch -d /site/gerrit
# java -jar gerrit-war-2.13.war init --batch -d /site/gerrit
Upgrading schema to 119 ...
Upgrading schema to 120 ...
Upgrading schema to 121 ...
Upgrading schema to 122 ...
Upgrading schema to 123 ...
Upgrading schema to 124 ...
Upgrading schema to 125 ...
Upgrading schema to 126 ...
Upgrading schema to 128 ...
Upgrading schema to 129 ...
Migrating data to schema 119 ...
Exception in thread "main" java.lang.IllegalArgumentException: No enum constant com.google.gerrit.extensions.client.GeneralPreferencesInfo.DownloadCommand.
at java.lang.Enum.valueOf(Enum.java:238)
at com.google.gerrit.extensions.client.GeneralPreferencesInfo$DownloadCommand.valueOf(GeneralPreferencesInfo.java:30)
at com.google.gerrit.server.schema.Schema_119.toDownloadCommand(Schema_119.java:181)
at com.google.gerrit.server.schema.Schema_119.migrateData(Schema_119.java:127)
at com.google.gerrit.server.schema.SchemaVersion.migrateData(SchemaVersion.java:142)
at com.google.gerrit.server.schema.SchemaVersion.upgradeFrom(SchemaVersion.java:81)
at com.google.gerrit.server.schema.SchemaVersion.check(SchemaVersion.java:72)
at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:109)
at com.google.gerrit.pgm.init.BaseInit$SiteRun.upgradeSchema(BaseInit.java:361)
at com.google.gerrit.pgm.init.BaseInit.run(BaseInit.java:129)
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: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:161)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:102)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:59)
at Main.main(Main.java:25)
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/794c3d26-8909-4f34-b111-6585216df0d3%40googlegroups.com.
On 23 Jan 2020, at 08:20, abhishek das <abhi.da...@gmail.com> wrote:
On Tuesday, August 1, 2017 at 9:59:58 AM UTC+1, devops wrote:I am planning to upgrade gerrit from version 2.11.7 to 2.14.2 , it is possible to upgrade directly ? I want to use online reindexing too . It looks like i have to first upgrade to 2.12.X version then 2.13.x version and finally 2.14.2 inorder to user online reindexing?I am getting error while upgrading from 2.12.9 -> 2.13 or 2.12.9 -> 2.13.14Error details below. Any help or suggestion, please appreciated:# java -jar gerrit-war-2.13.war init --batch -d /site/gerrit
# java -jar gerrit-war-2.13.war init --batch -d /site/gerrit
Upgrading schema to 119 ...
Upgrading schema to 120 ...
Upgrading schema to 121 ...
Upgrading schema to 122 ...
Upgrading schema to 123 ...
Upgrading schema to 124 ...
Upgrading schema to 125 ...
Upgrading schema to 126 ...
Upgrading schema to 128 ...
Upgrading schema to 129 ...
Migrating data to schema 119 ...
Exception in thread "main" java.lang.IllegalArgumentException: No enum constant com.google.gerrit.extensions.client.GeneralPreferencesInfo.DownloadCommand.
public static enum DownloadCommand { |
REPO_DOWNLOAD, PULL, CHECKOUT, CHERRY_PICK, FORMAT_PATCH |
} |
On Tuesday, August 1, 2017 at 9:59:58 AM UTC+1, devops wrote:I am planning to upgrade gerrit from version 2.11.7 to 2.14.2 , it is possible to upgrade directly ? I want to use online reindexing too . It looks like i have to first upgrade to 2.12.X version then 2.13.x version and finally 2.14.2 inorder to user online reindexing?I am getting error while upgrading from 2.12.9 -> 2.13 or 2.12.9 -> 2.13.14Error details below. Any help or suggestion, please appreciated:# java -jar gerrit-war-2.13.war init --batch -d /site/gerrit
# java -jar gerrit-war-2.13.war init --batch -d /site/gerrit
Upgrading schema to 119 ...
Upgrading schema to 120 ...
Upgrading schema to 121 ...
Upgrading schema to 122 ...
Upgrading schema to 123 ...
Upgrading schema to 124 ...
Upgrading schema to 125 ...
Upgrading schema to 126 ...
Upgrading schema to 128 ...
Upgrading schema to 129 ...
Migrating data to schema 119 ...
Exception in thread "main" java.lang.IllegalArgumentException: No enum constant com.google.gerrit.extensions.client.GeneralPreferencesInfo.DownloadCommand.
HiThanks for getting back.I understood what you were saying but in the gerrit.config, there is no download section being defined.Just for the sake of it, I put in the download section as per the documentation (https://gerrit-documentation.storage.googleapis.com/Documentation/2.12.9/config-gerrit.html#download), rerun the init command and still get the same error.Any idea?