Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!
1. Describe your incident:
While upgrading the graylog image from 5.0.8 to 6.0.3, getting below error.
at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:267) [graylog.jar:?]
at org.graylog2.bootstrap.Main.main(Main.java:55) [graylog.jar:?]
Caused by: java.lang.ClassNotFoundException: javax.inject.Provider
at java.base/java.net.URLClassLoader.findClass(Unknown Source) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at java.base/java.net.FactoryURLClassLoader.loadClass(Unknown Source) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
... 26 more
Exception in thread "main" java.lang.NoClassDefFoundError: javax/inject/Provider
2. Describe your environment:
we are using docker image from docker hub graylog/graylog:6.0.3
-
OS Information:
-
its docker
-
Package Version:
-
6.0.3
-
Service logs, configurations, and environment variables:
2024-06-25 12:36:12,450 INFO [Version] - HV000001: Hibernate Validator null - {}
2024-06-25 12:36:14,887 ERROR [CmdLineTool] - Startup error: - {}
java.lang.NoClassDefFoundError: javax/inject/Provider
at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.base/java.lang.ClassLoader.defineClass(Unknown Source) ~[?:?]
at java.base/java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:?]
at java.base/java.net.URLClassLoader.defineClass(Unknown Source) ~[?:?]
at java.base/java.net.URLClassLoader$1.run(Unknown Source) ~[?:?]
at java.base/java.net.URLClassLoader$1.run(Unknown Source) ~[?:?]
at java.base/java.security.AccessController.doPrivileged(Unknown Source) ~[?:?]
at java.base/java.net.URLClassLoader.findClass(Unknown Source) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at java.base/java.net.FactoryURLClassLoader.loadClass(Unknown Source) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at org.graylog.plugins.metrics.prometheus.MetricsPrometheusReporterModule.configure(MetricsPrometheusReporterModule.java:43) ~[?:?]
at com.google.inject.AbstractModule.configure(AbstractModule.java:64) ~[graylog.jar:?]
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:426) ~[graylog.jar:?]
at org.graylog2.shared.bindings.PluginBindings.configure(PluginBindings.java:57) ~[graylog.jar:?]
at com.google.inject.AbstractModule.configure(AbstractModule.java:64) ~[graylog.jar:?]
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:426) ~[graylog.jar:?]
at com.google.inject.spi.Elements.getElements(Elements.java:113) ~[graylog.jar:?]
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:160) ~[graylog.jar:?]
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107) ~[graylog.jar:?]
at com.google.inject.Guice.createInjector(Guice.java:87) ~[graylog.jar:?]
at org.graylog2.shared.bindings.GuiceInjectorHolder.createInjector(GuiceInjectorHolder.java:34) ~[graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.setupInjector(CmdLineTool.java:530) ~[graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.doRun(CmdLineTool.java:317) ~[graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:267) [graylog.jar:?]
at org.graylog2.bootstrap.Main.main(Main.java:55) [graylog.jar:?]
Caused by: java.lang.ClassNotFoundException: javax.inject.Provider
at java.base/java.net.URLClassLoader.findClass(Unknown Source) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at java.base/java.net.FactoryURLClassLoader.loadClass(Unknown Source) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
... 26 more
Exception in thread "main" java.lang.NoClassDefFoundError: javax/inject/Provider
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
3. What steps have you already taken to try and solve the problem?
4. How can the community help?
please provide the proper steps to avoid this issue and successful upgrade.
Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]