upgrade gerrit from 2.14.x to the latest 3.9.1

207 views
Skip to first unread message

Jing Jiang

unread,
Feb 6, 2024, 2:36:56 AM2/6/24
to Repo and Gerrit Discussion
I would like to upgrade our gerrit from 2.14.x release to the latest 3.9.1 release. What is the best upgrade path?

Thanks,
Jing

Matthias Sohn

unread,
Feb 6, 2024, 3:23:47 AM2/6/24
to Jing Jiang, Repo and Gerrit Discussion
On Tue, Feb 6, 2024 at 8:36 AM Jing Jiang <jjia...@gmail.com> wrote:
I would like to upgrade our gerrit from 2.14.x release to the latest 3.9.1 release. What is the best upgrade path?

In general read the release notes of all the releases in between to make yourself familiar with the changes.
At least look at the "Important Notes" section.
Nasser recently shared the upgrade path they used for upgrading from 2.7 to 3.5 in

-Matthias
 
Thanks,
Jing

--
--
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/c8b4e111-38ad-4cdb-a0d9-3dd2e0d01d31n%40googlegroups.com.

Kenyon Ralph

unread,
Feb 6, 2024, 4:22:17 PM2/6/24
to Repo and Gerrit Discussion
On Monday, February 5, 2024 at 11:36:56 PM UTC-8 Jing Jiang wrote:
I would like to upgrade our gerrit from 2.14.x release to the latest 3.9.1 release. What is the best upgrade path?

It's a big process. I wrote an Ansible playbook to upgrade two servers that were on Gerrit 2.12.7 to 3.5.1. Took me about a year, not 100% dedicated to this task though. There are so many steps, and you need to test and restart your whole process so many times, that it's not really feasible to do it by hand.

Your old Gerrit is probably also on an old operating system. Mine were on Ubuntu 12.04 (I was working on this in 2021 and 2022) and using MySQL. I had to use mysqldump to copy the database and bring up Gerrit 2.16 on new machines, since you can't really do anything with such an old OS.

Let us know if you need any specific advice. Good luck.
Reply all
Reply to author
Forward
0 new messages