we have upgraded the jenkines from 2.263.1to 2.345 after upgrading the jenkins service i snot starting up its showing the below error.
Starting LSB: Jenkins Automation Server…
pam_unix(runuser:session): session opened for user jenkins by (uid=0)
Starting Jenkins Exception in thread “Attach Listener” Agent failed to start!
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:…ss,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vm…Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective …rations
WARNING: All illegal access operations will be denied in a future release
If you have not found a solution by the end of reading the blog post, then you need to provide the information that is listed in the reporting issues section of the blog post
I am curious why you decided to upgrade from an outdated long term support release to an outdated weekly release. The Jenkins project supports the most current long term support release (currently 2.332.3) and the most current weekly release (currently 2.347). Usually, you would update from an outdated long term support release to a newer long term support release.
Be sure that you performed the upgrade using the operating system package manager that installed Jenkins originally. For example, that might be yum update jenkins or apt update jenkins. Do not replace the jenkins.war file with a newer copy of that file, since that skips all the upgrade logic that is included in the operating system package installer.
You saved my bacon! Someone at our company installed Jenkins on Rocky Linux and then left the company. When I used yum to upgrade to 2.346.2 the instance wouldn’t start anymore. Thanks to the blog post you linked, I was able to see that the override.conf file had a blank --httpPort setting. Here is the error message for posterity:
java.lang.NumberFormatException: For input string: “”
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:662)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at winstone.cmdline.Option.intArg(Option.java:308)
at winstone.cmdline.Option$OInt.get(Option.java:220)
at winstone.HttpConnectorFactory.start(HttpConnectorFactory.java:28)
at winstone.Launcher.spawnListener(Launcher.java:255)
Caused: java.io.IOException: Failed to start a listener: winstone.HttpConnectorFactory
at winstone.Launcher.spawnListener(Launcher.java:261)
at winstone.Launcher.(Launcher.java:188)
at winstone.Launcher.main(Launcher.java:405)
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 Main._main(Main.java:342)
at Main.main(Main.java:117)