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
$ dnf info jenkins
Oracle Linux 8 x86_64 Latest ...
Jenkins-stable 179 kB/s | 29 kB 00:00
Installed Packages
Name : jenkins
Version : 2.452.2
Release : 1.1
Architecture : noarch
Size : 89 M
Source : jenkins-2.452.2-1.1.src.rpm
Repository : @System
From repo : jenkins
Summary : Jenkins Automation Server
URL : https://www.jenkins.io/
License : MIT/X License, GPL/CDDL, ASL2
Description : Jenkins is the leading open source automation server supported by a large and growing community of developers, testers, designers and other people interested in continuous integration, continuous delivery and modern software delivery practices. Built on
: the Java Virtual Machine (JVM), it provides more than 1,800 plugins that extend Jenkins to automate with practically any technology software delivery teams use. In 2022, Jenkins reached 300,000 known installations making it the most widely deployed
: automation server.
:
: For more information, see https://www.jenkins.io.
Reproduction steps
I installed OpenTelemetry using Manage Jenkins > Plugins > Available Plugins page and searched for the OpenTelemetry plugin.
Expected Results
After installing the OpenTelemetry plugin, I expected that Jenkins would restart without failure.
Actual Results
After installing the OpenTelemetry plugin, Jenkins crashes with the following error in the logs
$ journalctl -u jenkins
...
java.lang.NullPointerException: service.name can't be null
at java.base/java.util.Objects.requireNonNull(Objects.java:235)
at io.jenkins.plugins.opentelemetry.JenkinsOpenTelemetryPluginConfiguration.resolveLogStorageRetriever(JenkinsOpenTelemetryPluginConf>
at io.jenkins.plugins.opentelemetry.JenkinsOpenTelemetryPluginConfiguration.initializeOpenTelemetry(JenkinsOpenTelemetryPluginConfigu>
Caused: java.lang.reflect.InvocationTargetException
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 hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
Caused: java.lang.Error
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:115)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1175)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused: org.jvnet.hudson.reactor.ReactorException
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:290)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:49)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1210)
at jenkins.model.Jenkins.<init>(Jenkins.java:997)
at hudson.model.Hudson.<init>(Hudson.java:86)
at hudson.model.Hudson.<init>(Hudson.java:82)
at hudson.WebAppMain$3.run(WebAppMain.java:248)
Caused: hudson.util.HudsonFailedToLoad
at hudson.WebAppMain$3.run(WebAppMain.java:273)
Anything else?
I should point out that I had the following values in my jenkins.service file each time I tried to install the OpenTelemetry plugin, as you can see I had an OTEL_SERVICE_NAME environmental variable as well as a otel.service.name Java system property. Neither of which were observed by OpenTelemetry plugin for the serivce.name value.
Once I was able to get Jenkins to deploy again, I downloaded the opentelemetry source code for the version (I think I was using before) based on the release notes
Once the build finished succesuflly, I installed the .hpi file via the Manage Jenkins > Plugins > Advanced settings page. This installed successfully, and I was able to start Jenkins without failure.
Are you interested in contributing a fix?
I'm not sure if the problem is with the plugin or the OpenTelemetry code that resolves the environmental variables for the client configuration. I can contribute a fix once I have more time to look into the issue.
The text was updated successfully, but these errors were encountered:
craigtmoore
changed the title
Cannot install latest version of OpenTelemetry ver 3.1320.v2eededb_d909e on Jenkins ver 2.452.2 - service.name cannot be null
Cannot install latest version of OpenTelemetry ver 3.1320.v2eededb_d909e on Jenkins ver 2.452.2 - service.name can't be null
Jul 26, 2024
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
I installed Jenkins on Oracle Linux Server 8.5
I installed Jenkins via the dnf installer
The command installed this version
Reproduction steps
I installed OpenTelemetry using Manage Jenkins > Plugins > Available Plugins page and searched for the OpenTelemetry plugin.
Expected Results
After installing the OpenTelemetry plugin, I expected that Jenkins would restart without failure.
Actual Results
After installing the OpenTelemetry plugin, Jenkins crashes with the following error in the logs
Anything else?
I should point out that I had the following values in my jenkins.service file each time I tried to install the OpenTelemetry plugin, as you can see I had an OTEL_SERVICE_NAME environmental variable as well as a otel.service.name Java system property. Neither of which were observed by OpenTelemetry plugin for the serivce.name value.
To resolve the issue I had to uninstall the OpenTelemetry plugin so that I could get Jenkins running again.
Once I was able to get Jenkins to deploy again, I downloaded the opentelemetry source code for the version (I think I was using before) based on the release notes
I then built the code using
Once the build finished succesuflly, I installed the .hpi file via the Manage Jenkins > Plugins > Advanced settings page. This installed successfully, and I was able to start Jenkins without failure.
Are you interested in contributing a fix?
I'm not sure if the problem is with the plugin or the OpenTelemetry code that resolves the environmental variables for the client configuration. I can contribute a fix once I have more time to look into the issue.
The text was updated successfully, but these errors were encountered: