Hi @MarkEWaite, I’m facing a similar issue as @gulbrain but don’t easily have the option to yum upgrade, mainly because the available version via yum for me is still 2.235.3-1.1 - which is the version I sought to upgrade from.
I’m running on RHEL 7.9 Maipo.
I’d read it was okay to use either yum or manually install the war. I guess this is no longer the case
I went from 2.235.3-1.1 (java 8/java-1.8.0-openjdk-1.8.0.322.b06-1.el7_9.x86_64) to 2.361.1 (java 11/Red_Hat-11.0.16.0.8-1.el7_9) and had some issues with plugins (matrix security and LDAP) that I eventually seem to have resolved. In the process I downgraded to 2.263.1, then back to the original 2.235.3-1.1, with no luck, and finally got 2.361.1 working after trying a bunch of things like deleting authentication strategies from config.xml and allowing anonymous access, to be able to access the UI and fix the plugin issues.
Currently, it’s LDAP protected, 2.361.1, plugins are all up to date (and so far at least one of my jobs is working correctly, I haven’t extensively tested), but I face the same issue, where systemctl start jenkins
times out, and systemctl stop jenkins
fails to do anything.
The java process looks different too, before I believe it ran as a single process as the jenkins user, now there are 3 java processes, one running as root, and 2 as jenkins.
There seem to be some other issues, systemctl status jenkins
mentions a problem with org.codehaus.groovy.vmplugin.v7.Java7$1
I don’t have the option to switch the port as there is a loadbalancer in front expecting to connect on 8080.
Is there an idea of what might be going on? I’m wondering what the yum install might be doing that the manual war install doesn’t do, or breaks? Maybe something to do with the jenkins user?
My install seems to be using system.d, I believe the timeout is 5 mins, which is when the systemctl start jenkins
command prompt returns with a failure notice, though the java process(es) continue to run, and jenkins appears to be working, though systemctl stop jenkins
will not stop it (pkill java
does)
Thanks for any additional info!
[root@localhost:~]$ systemctl status jenkins
● jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Drop-In: /etc/systemd/system/jenkins.service.d
└─override.conf
Active: failed (Result: timeout) since Thu 2022-09-08 21:54:26 EDT; 34min ago
Docs: man:systemd-sysv-generator(8)
Process: 10975 ExecStart=/etc/rc.d/init.d/jenkins start (code=killed, signal=TERM)
CGroup: /system.slice/jenkins.service
├─10980 runuser -s /bin/bash jenkins -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/lib/jvm/jre-11/bin/java -Djava.awt.headless=true -Djava.io.tmpdir=/var/lib/jenkins/tmp -DJENKINS_HOME=/var/lib/jenkin...
├─10981 bash -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/lib/jvm/jre-11/bin/java -Djava.awt.headless=true -Djava.io.tmpdir=/var/lib/jenkins/tmp -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/...
└─10982 /usr/lib/jvm/jre-11/bin/java -Djava.awt.headless=true -Djava.io.tmpdir=/var/lib/jenkins/tmp -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/je...
Sep 08 21:49:26 localhost runuser[10980]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)
Sep 08 21:49:33 localhost jenkins[10975]: Starting Jenkins WARNING: An illegal reflective access operation has occurred
Sep 08 21:49:33 localhost jenkins[10975]: WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/var/cache/jenkins/war/WEB-INF/lib/groovy-all-2....g.Class,int)
Sep 08 21:49:33 localhost jenkins[10975]: WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
Sep 08 21:49:33 localhost jenkins[10975]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Sep 08 21:49:33 localhost jenkins[10975]: WARNING: All illegal access operations will be denied in a future release
Sep 08 21:54:26 localhost systemd[1]: jenkins.service start operation timed out. Terminating.
Sep 08 21:54:26 localhost systemd[1]: Failed to start LSB: Jenkins Automation Server.
Sep 08 21:54:26 localhost systemd[1]: Unit jenkins.service entered failed state.
Sep 08 21:54:26 localhost systemd[1]: jenkins.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
root 10980 1 0 21:49 ? 00:00:00 runuser -s /bin/bash jenkins -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/lib/jvm/jre-11/bin/java -Djava.awt.headless=true -Djava.io.tmpdir=/var/lib/jenkins/tmp -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
jenkins 10981 10980 0 21:49 ? 00:00:00 bash -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/lib/jvm/jre-11/bin/java -Djava.awt.headless=true -Djava.io.tmpdir=/var/lib/jenkins/tmp -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
jenkins 10982 10981 3 21:49 ? 00:01:43 /usr/lib/jvm/jre-11/bin/java -Djava.awt.headless=true -Djava.io.tmpdir=/var/lib/jenkins/tmp -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20