multi-site: errors with latest version

169 views
Skip to first unread message

Björn Pedersen

unread,
Jun 30, 2022, 4:13:30 AM6/30/22
to Repo and Gerrit Discussion
Hi,

during the upgrade to 3.6  gerrit did not  start with the latest multi-site jar, going back to multi-site from may 6 gerrit starts again.

setup used: 

  - multi-size
- events-kafka

in gerrit.config:
 
    installModule = com.gerritforge.gerrit.eventbroker.BrokerApiModule # events-broker module to setup BrokerApi dynamic item
    installDbModule = com.googlesource.gerrit.plugins.multisite.GitModule
    installModule = com.googlesource.gerrit.plugins.multisite.Module

  Errors encountered
    [2022-06-30 09:41:37,061] [main] ERROR com.google.gerrit.pgm.Daemon : Thread main threw exception
java.lang.NoClassDefFoundError: com/gerritforge/gerrit/eventbroker/publisher/StreamEventPublisherConfig
    at com.googlesource.gerrit.plugins.multisite.event.EventModule.configure(EventModule.java:39)
    at com.google.inject.AbstractModule.configure(AbstractModule.java:64)
    at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:409)
    at com.google.inject.AbstractModule.install(AbstractModule.java:106)
    at com.googlesource.gerrit.plugins.multisite.Module.configure(Module.java:57)
    at com.google.inject.AbstractModule.configure(AbstractModule.java:64)
    at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:409)
    at com.google.inject.spi.Elements.getElements(Elements.java:108)
    at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:160)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
    at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:239)
    at com.google.gerrit.pgm.Daemon.createSysInjector(Daemon.java:535)
    at com.google.gerrit.pgm.Daemon.start(Daemon.java:371)
    at com.google.gerrit.pgm.Daemon.run(Daemon.java:285)
    at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:61)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:224)
    at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:120)
    at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:65)
    at Main.main(Main.java:29)
Caused by: java.lang.ClassNotFoundException: com.gerritforge.gerrit.eventbroker.publisher.StreamEventPublisherConfig
    at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
    at java.base/java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:904)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    ... 23 more

Björn Pedersen

unread,
Jun 30, 2022, 5:10:53 AM6/30/22
to Repo and Gerrit Discussion
Björn Pedersen schrieb am Donnerstag, 30. Juni 2022 um 10:13:30 UTC+2:
Hi,

during the upgrade to 3.6  gerrit did not  start with the latest multi-site jar, going back to multi-site from may 6 gerrit starts again.

setup used: 

  - multi-size
- events-kafka

in gerrit.config:
 
    installModule = com.gerritforge.gerrit.eventbroker.BrokerApiModule # events-broker module to setup BrokerApi dynamic item
    installDbModule = com.googlesource.gerrit.plugins.multisite.GitModule
    installModule = com.googlesource.gerrit.plugins.multisite.Module

  Errors encountered
    [2022-06-30 09:41:37,061] [main] ERROR com.google.gerrit.pgm.Daemon : Thread main threw exception


Luca Milanesio

unread,
Jun 30, 2022, 9:37:58 AM6/30/22
to Repo and Gerrit Discussion, Luca Milanesio, Björn Pedersen

On 30 Jun 2022, at 09:13, 'Björn Pedersen' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:

Hi,

during the upgrade to 3.6  gerrit did not  start with the latest multi-site jar, going back to multi-site from may 6 gerrit starts again.

setup used: 

  - multi-size
- events-kafka

in gerrit.config:
 
    installModule = com.gerritforge.gerrit.eventbroker.BrokerApiModule # events-broker module to setup BrokerApi dynamic item
    installDbModule = com.googlesource.gerrit.plugins.multisite.GitModule
    installModule = com.googlesource.gerrit.plugins.multisite.Module

  Errors encountered
    [2022-06-30 09:41:37,061] [main] ERROR com.google.gerrit.pgm.Daemon : Thread main threw exception
java.lang.NoClassDefFoundError: com/gerritforge/gerrit/eventbroker/publisher/StreamEventPublisherConfig

That class was introduced around 1 year ago in [1].

Do you have the latest event-broker.jar in the $GERRIT_SITE/lib directory?

Luca.


--
--
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/cf7a2143-2c8f-40f3-89ed-7703bedf360cn%40googlegroups.com.

Björn Pedersen

unread,
Jul 1, 2022, 3:08:45 AM7/1/22
to Repo and Gerrit Discussion
lucamilanesio schrieb am Donnerstag, 30. Juni 2022 um 15:37:58 UTC+2:
On 30 Jun 2022, at 09:13, 'Björn Pedersen' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:

Hi,

  Errors encountered
    [2022-06-30 09:41:37,061] [main] ERROR com.google.gerrit.pgm.Daemon : Thread main threw exception
java.lang.NoClassDefFoundError: com/gerritforge/gerrit/eventbroker/publisher/StreamEventPublisherConfig
That class was introduced around 1 year ago in [1].

Do you have the latest event-broker.jar in the $GERRIT_SITE/lib directory?



Thanks, that was the problem. I still had version 3.4.0.4 lying around. Should  I use 3.5.1 or 3.6.0-rc5 for a gerrit 3.6 installation?
 

Fabio Ponciroli

unread,
Jul 1, 2022, 3:50:49 AM7/1/22
to Björn Pedersen, Repo and Gerrit Discussion
Hi Björn,


Il giorno ven 1 lug 2022 alle ore 09:08 'Björn Pedersen' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> ha scritto:


lucamilanesio schrieb am Donnerstag, 30. Juni 2022 um 15:37:58 UTC+2:

On 30 Jun 2022, at 09:13, 'Björn Pedersen' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:

Hi,

  Errors encountered
    [2022-06-30 09:41:37,061] [main] ERROR com.google.gerrit.pgm.Daemon : Thread main threw exception
java.lang.NoClassDefFoundError: com/gerritforge/gerrit/eventbroker/publisher/StreamEventPublisherConfig


That class was introduced around 1 year ago in [1].

Do you have the latest event-broker.jar in the $GERRIT_SITE/lib directory?



Thanks, that was the problem. I still had version 3.4.0.4 lying around. Should  I use 3.5.1 or 3.6.0-rc5 for a gerrit 3.6 installation?

--
--
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.
Reply all
Reply to author
Forward
0 new messages