You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the opentelemetry-plugin and now Jenkins seems to no longer able to restart itself (see log output below). I suspect this is partly caused by the fact that my Opentelemetry config being broken (the server returns an error).
What Operating System are you using (both controller, and any agents involved in the problem)?
Docker image jenkins/jenkins:2.479.3-lts-jdk21
Reproduction steps
Install a plugin
Click "Restart Jenkins after plugin install"
Wait forever
Expected Results
Jenkins restarts normally
Actual Results
2025-02-05 13:05:34.552+0000 [id=179] INFO jenkins.model.Jenkins#_cleanUpShutdownPluginManager: Stopping plugin manager
2025-02-05 13:05:34.597+0000 [id=179] INFO jenkins.model.Jenkins#_cleanUpPersistQueue: Persisting build queue
2025-02-05 13:05:34.607+0000 [id=179] INFO jenkins.model.Jenkins#_cleanUpAwaitDisconnects: Waiting for node disconnection completion
2025-02-05 13:05:34.608+0000 [id=179] SEVERE jenkins.model.Jenkins#_cleanUpPluginServletFilters: Failed to stop filters
java.lang.ClassNotFoundException: org.jenkinsci.plugins.ssegateway.SubscriptionConfigQueue$SubscriptionConfig
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:64)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
Caused: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/ssegateway/SubscriptionConfigQueue$SubscriptionConfig
at PluginClassLoader for sse-gateway//org.jenkinsci.plugins.ssegateway.SubscriptionConfigQueue.stop(SubscriptionConfigQueue.java:106)
at PluginClassLoader for sse-gateway//org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.destroy(Endpoint.java:253)
at io.jenkins.servlet.FilterWrapper$1.destroy(FilterWrapper.java:59)
at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:232)
at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:4020)
at jenkins.model.Jenkins.cleanUp(Jenkins.java:3717)
at hudson.lifecycle.ExitLifecycle.restart(ExitLifecycle.java:68)
at jenkins.model.Jenkins$20.run(Jenkins.java:4774)
2025-02-05 13:05:34.612+0000 [id=179] SEVERE hudson.lifecycle.ExitLifecycle#restart: Failed to clean up. Restart will continue.
java.lang.ClassNotFoundException: io.opentelemetry.semconv.ExceptionAttributes
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:64)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
Caused: java.lang.NoClassDefFoundError: io/opentelemetry/semconv/ExceptionAttributes
at PluginClassLoader for opentelemetry//io.jenkins.plugins.opentelemetry.init.OtelJulHandler.publish(OtelJulHandler.java:107)
at java.logging/java.util.logging.Logger.log(Unknown Source)
at java.logging/java.util.logging.Logger.doLog(Unknown Source)
at java.logging/java.util.logging.Logger.log(Unknown Source)
at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:4025)
at jenkins.model.Jenkins.cleanUp(Jenkins.java:3717)
at hudson.lifecycle.ExitLifecycle.restart(ExitLifecycle.java:68)
at jenkins.model.Jenkins$20.run(Jenkins.java:4774)
2025-02-05 13:05:34.613+0000 [id=179] WARNING jenkins.model.Jenkins$20#run: Failed to restart Jenkins
java.lang.ClassNotFoundException: io.opentelemetry.semconv.ExceptionAttributes
Caused: java.lang.NoClassDefFoundError: io/opentelemetry/semconv/ExceptionAttributes
at PluginClassLoader for opentelemetry//io.jenkins.plugins.opentelemetry.init.OtelJulHandler.publish(OtelJulHandler.java:107)
at java.logging/java.util.logging.Logger.log(Unknown Source)
at java.logging/java.util.logging.Logger.doLog(Unknown Source)
at java.logging/java.util.logging.Logger.log(Unknown Source)
at hudson.lifecycle.ExitLifecycle.restart(ExitLifecycle.java:71)
at jenkins.model.Jenkins$20.run(Jenkins.java:4774)
2025-02-05 13:05:34.613+0000 [id=179] SEVERE h.i.i.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler#uncaughtException: A thread (safe-restart thread/179) died unexpectedly due to an uncaught exception. This may leave your server corrupted and usually indicates a software bug.
java.lang.ClassNotFoundException: io.opentelemetry.semconv.ExceptionAttributes
Caused: java.lang.NoClassDefFoundError: io/opentelemetry/semconv/ExceptionAttributes
at PluginClassLoader for opentelemetry//io.jenkins.plugins.opentelemetry.init.OtelJulHandler.publish(OtelJulHandler.java:107)
at java.logging/java.util.logging.Logger.log(Unknown Source)
at java.logging/java.util.logging.Logger.doLog(Unknown Source)
at java.logging/java.util.logging.Logger.log(Unknown Source)
at jenkins.model.Jenkins$20.run(Jenkins.java:4779)
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "safe-restart thread"
2025-02-05 13:05:35.401+0000 [id=85] WARNING i.o.s.internal.ThrottlingLogger#doLog: Failed to export logs. Server responded with gRPC status code 2. Error message: Not Found
2025-02-05 13:05:52.193+0000 [id=76] WARNING i.o.s.internal.ThrottlingLogger#doLog: An exception occurred invoking callback for CallbackRegistration{instrumentDescriptors=[InstrumentDescriptor{name=jenkins.executor.online, description=Online executors, unit=${executors}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}, InstrumentDescriptor{name=jenkins.executor.available, description=Available executors, unit=${executors}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}, InstrumentDescriptor{name=jenkins.executor.total, description=Total executors, unit=${executors}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}, InstrumentDescriptor{name=jenkins.executor.busy, description=Busy executors, unit=${executors}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}, InstrumentDescriptor{name=jenkins.executor.queue, description=Executors queue items, unit=${items}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}, InstrumentDescriptor{name=jenkins.executor.idle, description=Idle executors, unit=${executors}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}, InstrumentDescriptor{name=jenkins.node, description=Nodes, unit=${nodes}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}, InstrumentDescriptor{name=jenkins.executor.defined, description=Defined executors, unit=${executors}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}, InstrumentDescriptor{name=jenkins.executor.connecting, description=Connecting executors, unit=${executors}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}, InstrumentDescriptor{name=jenkins.executor, description=Per label executors, unit=${executors}, type=OBSERVABLE_GAUGE, valueType=LONG, advice=Advice{explicitBucketBoundaries=null, attributes=null}}]}.
java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
Anything else?
No response
Are you interested in contributing a fix?
Unfortunately I can't.
The text was updated successfully, but these errors were encountered:
io.jenkins.plugins.opentelemetry.init.OtelJulHandler registers itself as a j.u.l.Handler at initialization (@PostConstruct), it should unregister itself when the plugin unloads.
Jenkins and plugins versions report
I installed the opentelemetry-plugin and now Jenkins seems to no longer able to restart itself (see log output below). I suspect this is partly caused by the fact that my Opentelemetry config being broken (the server returns an error).
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Docker image jenkins/jenkins:2.479.3-lts-jdk21
Reproduction steps
Expected Results
Jenkins restarts normally
Actual Results
Anything else?
No response
Are you interested in contributing a fix?
Unfortunately I can't.
The text was updated successfully, but these errors were encountered: