Failed to start Jenkins Continuous Integration Server [code=exited, status=217/USER]

Hello,

Everything was working fine until I updated a plugin (apache-httpcomponents-client) and ticked the box to restart jenkins. In a different tab I was doing some quick refreshes, I get 502 Bad gateway. I checked the status on the server and tried to restart the systemd service manually. On the server, Jenkins fails to start the service. I get code=exited, status=217/USER. Any idea on how to resolve this issue? Thank you very much for your time.

[root@devops ~]$ systemctl start jenkins.service
Job for jenkins.service failed because the control process exited with error code.
See "systemctl status jenkins.service" and "journalctl -xe" for details.
[root@devops ~]$ systemctl --full status jenkins
● jenkins.service - Jenkins Continuous Integration Server
   Loaded: loaded (/etc/systemd/system/jenkins.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2024-09-20 18:14:27 EEST; 6min ago
  Process: 15045 ExecStart=/usr/bin/jenkins (**code=exited, status=217/USER**)
 Main PID: 15045 (code=exited, status=217/USER)

Sep 20 18:14:27 devops.XXX.net systemd[1]: jenkins.service: Service RestartSec=100ms expired, scheduling restart.
Sep 20 18:14:27 devops.XXX.net systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 5.
Sep 20 18:14:27 devops.XXX.net systemd[1]: Stopped Jenkins Continuous Integration Server.
Sep 20 18:14:27 devops.XXX.net systemd[1]: jenkins.service: Start request repeated too quickly.
Sep 20 18:14:27 devops.XXX.net systemd[1]: jenkins.service: Failed with result 'exit-code'.
Sep 20 18:14:27 devops.XXX.net systemd[1]: Failed to start Jenkins Continuous Integration Server.

Journalctl snippet is below

[root@devops ~]$ journalctl -u jenkins
Sep 20 18:23:28 devops.XXX.net systemd[1]: Failed to start Jenkins Continuous Integration Server.
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Service RestartSec=100ms expired, scheduling restart.
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 2.
Sep 20 18:23:28 devops.XXX.net systemd[1]: Stopped Jenkins Continuous Integration Server.
Sep 20 18:23:28 devops.XXX.net systemd[1]: Starting Jenkins Continuous Integration Server...
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Main process exited, code=exited, status=217/USER
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Failed with result 'exit-code'.
Sep 20 18:23:28 devops.XXX.net systemd[1]: Failed to start Jenkins Continuous Integration Server.
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Service RestartSec=100ms expired, scheduling restart.
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 3.
Sep 20 18:23:28 devops.XXX.net systemd[1]: Stopped Jenkins Continuous Integration Server.
Sep 20 18:23:28 devops.XXX.net systemd[1]: Starting Jenkins Continuous Integration Server...
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Main process exited, code=exited, status=217/USER
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Failed with result 'exit-code'.
Sep 20 18:23:28 devops.XXX.net systemd[1]: Failed to start Jenkins Continuous Integration Server.
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Service RestartSec=100ms expired, scheduling restart.
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 4.
Sep 20 18:23:28 devops.XXX.net systemd[1]: Stopped Jenkins Continuous Integration Server.
Sep 20 18:23:28 devops.XXX.net systemd[1]: Starting Jenkins Continuous Integration Server...
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Main process exited, code=exited, status=217/USER
Sep 20 18:23:28 devops.XXX.net systemd[1]: jenkins.service: Failed with result 'exit-code'.
Sep 20 18:23:28 devops.XXX.net systemd[1]: Failed to start Jenkins Continuous Integration Server.
Sep 20 18:23:29 devops.XXX.net systemd[1]: jenkins.service: Service RestartSec=100ms expired, scheduling restart.
Sep 20 18:23:29 devops.XXX.net systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 5.
Sep 20 18:23:29 devops.XXX.net systemd[1]: Stopped Jenkins Continuous Integration Server.
Sep 20 18:23:29 devops.XXX.net systemd[1]: jenkins.service: Start request repeated too quickly.
Sep 20 18:23:29 devops.XXX.net systemd[1]: jenkins.service: Failed with result 'exit-code'.
Sep 20 18:23:29 devops.XXX.net systemd[1]: Failed to start Jenkins Continuous Integration Server.

Jenkins setup:

[root@devops ~]$ java --version
openjdk 21.0.3 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing)
[root@-devops ~]$ jenkins --version
2.462.2

[root@devops ~]$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.10 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.10 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.10"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.10"

We would need Jenkins logs to know more about the root cause.