Setting up high-availabilty plugin

73 views
Skip to first unread message

Cobin Bluth

unread,
Aug 15, 2025, 6:02:45 AMAug 15
to Repo and Gerrit Discussion
Hi Gerrit Team,

I'm struggling to set up gerrit high-availabilty with the plugin, and I'm hoping someone can help.

My project is migrating a singleton Gerrit instance version 3.11.3 to a dual instance with high-availabilty. I'm using global-refdb.jar marked stable-3.11/lastSuccessfulBuild from gerrit-ci Jenkins, and putting it in the /lib dir, I'm also grabbing high-availabilty.jar stable-3.11/lastSuccessfulBuild from the same place and putting it in the /plugins dir, and I'm giving it a very basic config; main.sharedDirectory = $sharedDir ; peerInfo.strategy = "static" ; ref-database.enabled = "true" ; peerInfo.static.url = $peer2 .

The error I'm facing is that the logs show WARN : Cannot load plugin high-availabilty : Unable to create injector : [Guice/MissingConstructor]: No injectable constructor for type SharedRefDbConfiguration class does not have @Inject annotated constructor or a no-arg constructor

I'm wondering if the plugins/modules are not the right version for Gerrit, should I be trying to use Gerrit version 3.11.4 or 3.11.5?
Any pointers or ideas?

Thanks,
-Cobin

Matthias Sohn

unread,
Aug 15, 2025, 12:07:45 PMAug 15
to Cobin Bluth, Repo and Gerrit Discussion
I'd try the latest 3.11.5 release, if that fails with the same error try your own build of the stable-3.11 branch.
 

Thanks,
-Cobin

--
--
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/2145739d-ef7f-4c1e-b5cd-7f5cc6861ccdn%40googlegroups.com.

Luca Milanesio

unread,
Aug 15, 2025, 2:09:58 PMAug 15
to Repo and Gerrit Discussion, Luca Milanesio


> On 15 Aug 2025, at 18:07, Matthias Sohn <matthi...@gmail.com> wrote:
>
> On Fri, Aug 15, 2025 at 12:02 PM Cobin Bluth <cbl...@gmail.com> wrote:
> Hi Gerrit Team,
>
> I'm struggling to set up gerrit high-availabilty with the plugin, and I'm hoping someone can help.
>
> My project is migrating a singleton Gerrit instance version 3.11.3 to a dual instance with high-availabilty. I'm using global-refdb.jar marked stable-3.11/lastSuccessfulBuild from gerrit-ci Jenkins, and putting it in the /lib dir, I'm also grabbing high-availabilty.jar stable-3.11/lastSuccessfulBuild from the same place and putting it in the /plugins dir, and I'm giving it a very basic config; main.sharedDirectory = $sharedDir ; peerInfo.strategy = "static" ; ref-database.enabled = "true" ; peerInfo.static.url = $peer2 .
>
> The error I'm facing is that the logs show WARN : Cannot load plugin high-availabilty : Unable to create injector : [Guice/MissingConstructor]: No injectable constructor for type SharedRefDbConfiguration class does not have @Inject annotated constructor or a no-arg constructor


Can you share the full stack trace and the full configuration?
Have you checked if your configuration looks like the sample one at [1]?

HTH

Luca.

[1] https://gerrit.googlesource.com/plugins/high-availability/+/refs/heads/stable-3.11/src/test/docker/

>
> I'm wondering if the plugins/modules are not the right version for Gerrit, should I be trying to use Gerrit version 3.11.4 or 3.11.5?
> Any pointers or ideas?
>
> I'd try the latest 3.11.5 release, if that fails with the same error try your own build of the stable-3.11 branch.
>
> Thanks,
> -Cobin
>
> --
> --
> 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/2145739d-ef7f-4c1e-b5cd-7f5cc6861ccdn%40googlegroups.com.
>
> --
> --
> 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/CAKSZd3Q6Nk5K_hRaOPUmMBvD5JpnO7BxZzU56m%3DhTQoOF%2BRFyA%40mail.gmail.com.


Cobin Bluth

unread,
Aug 15, 2025, 7:09:02 PMAug 15
to Repo and Gerrit Discussion
Actually, I think im missing a refdb configuration, as seen here near the bottom: https://gerrit.googlesource.com/plugins/high-availability/+/HEAD/src/main/resources/Documentation/about.md

I will setup zookeeper to see if that's what it wants.

--
Reply all
Reply to author
Forward
0 new messages