[aws-gerrit HA setup] NoClassDefFoundError: com/gerritforge/gerrit/globalrefdb/ExtendedGlobalRefDatabase

86 views
Skip to first unread message

ishan

unread,
Jun 17, 2024, 1:57:58 AMJun 17
to Repo and Gerrit Discussion
Hi,

I am trying to setup a dual-primary AWS gerrit stack (master branch) with the following config - 

# Gerrit version
GERRIT_VERSION=3.8
GERRIT_PATCH=2
GLOBALREFDB_LIB_VER=3.8.1

However, in the cloudwatch logs of primary stack I see the following error - 

java.lang.NoClassDefFoundError: com/gerritforge/gerrit/globalrefdb/ExtendedGlobalRefDatabase
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:420)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
at java.base/java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:872)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
at com.googlesource.gerrit.plugins.validation.dfsrefdb.dynamodb.Module.configure(Module.java:33)
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.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:244)
at com.google.gerrit.server.plugins.ServerPlugin.startPlugin(ServerPlugin.java:213)
at com.google.gerrit.server.plugins.ServerPlugin.start(ServerPlugin.java:183)
at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:513)
at com.google.gerrit.server.plugins.PluginLoader.rescan(PluginLoader.java:427)
at com.google.gerrit.server.plugins.PluginLoader.start(PluginLoader.java:332)
at com.google.gerrit.lifecycle.LifecycleManager.start(LifecycleManager.java:95)
at com.google.gerrit.pgm.Daemon.start(Daemon.java:399)
at com.google.gerrit.pgm.Daemon.run(Daemon.java:292)
at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:62)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:252)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:148)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:93)
at Main.main(Main.java:30)


What could be the cause of this issue? 

Thanks,
Ishan.

Sven Selberg

unread,
Jun 17, 2024, 2:42:54 AMJun 17
to Repo and Gerrit Discussion
On Monday, June 17, 2024 at 7:57:58 AM UTC+2 ishan wrote:
Hi,

I am trying to setup a dual-primary AWS gerrit stack (master branch) with the following config - 

# Gerrit version
GERRIT_VERSION=3.8
GERRIT_PATCH=2
GLOBALREFDB_LIB_VER=3.8.1

However, in the cloudwatch logs of primary stack I see the following error - 

java.lang.NoClassDefFoundError: com/gerritforge/gerrit/globalrefdb/ExtendedGlobalRefDatabase

Have you added the [global-ref-db](https://gerrit.googlesource.com/modules/global-refdb/+/refs/heads/stable-3.8/) lib module to the $GERRIT_SITE/lib/ folder?

synt...@gmail.com

unread,
Jun 17, 2024, 7:16:42 AMJun 17
to Repo and Gerrit Discussion
The issue is caused by the `aws-dynamodb-refdb` not loading correctly due to the latest global-refdb library [1] being outdated.

@ishan, would you mind creatring an issue at [2]?

Thanks,

Tony



 

Thanks,
Ishan.

ishan

unread,
Jun 18, 2024, 7:57:50 AMJun 18
to synt...@gmail.com, Repo and Gerrit Discussion
I will create an issue today.
Thanks for looking into this. 

--
--
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 a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/epyZ2irXVYg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/92ceaec0-01b2-4489-a4fb-3a38040790e6n%40googlegroups.com.

ishan

unread,
Jun 19, 2024, 3:25:08 AM (14 days ago) Jun 19
to Repo and Gerrit Discussion
I have created the issue. 

What could be an ETA for this fix? Or is there any workaround that I can do for the time being?

Luca Milanesio

unread,
Jun 19, 2024, 4:43:43 AM (14 days ago) Jun 19
to Repo and Gerrit Discussion, Luca Milanesio

On 19 Jun 2024, at 08:25, ishan <isha...@gmail.com> wrote:

I have created the issue. 

What could be an ETA for this fix? Or is there any workaround that I can do for the time being?

The ETA for Community Support are at [1] and for Enterprise Support are at [2].

HTH

Luca.


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/742df0e8-ece2-4e58-924a-a7c2457c5d95n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages