Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Gerrit Upgrade from 2.14 to 3.X (Need Support)

91 views
Skip to first unread message

Raghu Hegde

unread,
Apr 8, 2025, 2:48:51 AMApr 8
to Repo and Gerrit Discussion

We have Gerrit version 2.14.19 and are planning to upgrade to version 3.x. The initial plan is to upgrade to 2.15, then to 2.16, followed by 3.x, and finally to the latest version.

We plan to follow the steps below—please let me know if anything is missing:

  1. Stop Gerrit.

  2. Download the gerrit-2.15.war file.

  3. Run java -jar gerrit-2.15.war init -d <site_path>.

  4. Re-index the data.

Thanks.

Michael Nazzareno Trimarchi

unread,
Apr 8, 2025, 2:57:49 AMApr 8
to Raghu Hegde, Repo and Gerrit Discussion
Hi Raghu

0. Backup your data

Anyway I think that you should take a look at the documentation and follow it as it is. I did not found in the past problems but
my use case is only 1200 repos

Michael
 
Thanks.

--
--
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 visit https://groups.google.com/d/msgid/repo-discuss/46c459c1-9bb8-4220-962a-91152c17f92dn%40googlegroups.com.


--
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
mic...@amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
in...@amarulasolutions.com
www.amarulasolutions.com

Ewout Maertens

unread,
Apr 8, 2025, 3:00:16 AMApr 8
to Repo and Gerrit Discussion
Hi Raghu,

Have a look at the question at https://groups.google.com/g/repo-discuss/c/Ntm93BsO_4c/m/etSvIt0ZAwAJ. This is pretty much the exact situation.

Good luck!

Kind regards,
Ewout

Luca Milanesio

unread,
Apr 8, 2025, 3:24:37 AMApr 8
to Repo and Gerrit Discussion, Luca Milanesio
Hi Raghu,

I believe your upgrade path is *very significant* and there are *a lot of steps* missing.

I would recommend to go through the presentations we’ve made over the past years and captured in the GerritForge’s YouTube playlist about migrations [1].
The Gerrit community is happy to support the non-EOL versions (see the General Support policy at [2]) and for EOL versions, you can either rely on a best-effort answers on the mailing list, or refer to the Enterprise Support policy at [3].

Lastly, migrations require carefully planning and testing, as also witnessed in the recent talk by Qualcomm at [4] in their multi-year migration effort.

HTH

Luca.

Raghu Hegde

unread,
Apr 10, 2025, 5:31:07 AMApr 10
to Repo and Gerrit Discussion

While upgrading Gerrit 2.16.28 (java -jar gerrit-2.16.28.war init -d /gerrit_site_path), we encountered the following error when trying to connect using the URL: (We are using MySQL 5.7) and Ubuntu 22.04 


fatal: DbInjector failed
fatal: Unable to determine SqlDialect
fatal:   caused by java.sql.SQLException: The connection property 'nullNamePatternMatchesAll' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value 'true?nullNamePatternMatchesAll=true' is not in this set.


added the below line while adding DB name


reviewdb_test?useSSL=false&allowPublicKeyRetrieval=true&nullNamePatternMatchesAll=true

Reply all
Reply to author
Forward
0 new messages