Service failed to startup due to timeout

I also experience the same issue on Rocky Linux 8. I followed the steps in Jenkins page for Redhat/CentOS.

So I tried to increase the timeout setting as suggested, from 90s to 300s to 600s but still jenkins wont complete to start and the status is still activating.

~# systemctl show jenkins | grep ^Timeout
TimeoutStartUSec=1min 30s
TimeoutStopUSec=1min 30s
~#
~# systemctl edit jenkins
~# systemctl show jenkins | grep ^Timeout
TimeoutStartUSec=5min
TimeoutStopUSec=1min 30s
~#
~# time systemctl start jenkins
Job for jenkins.service failed because a timeout was exceeded.
See “systemctl status jenkins.service” and “journalctl -xe” for details.

real 5m0.603s
user 0m0.010s
sys 0m0.010s
~#
~# systemctl edit jenkins
~# systemctl show jenkins | grep ^Timeout
TimeoutStartUSec=10min
TimeoutStopUSec=1min 30s
~#
~# time systemctl start jenkins
Job for jenkins.service failed because a timeout was exceeded.
See “systemctl status jenkins.service” and “journalctl -xe” for details.

real 10m0.510s
user 0m0.012s
sys 0m0.010s
~#

Have anyone solved this issue or can point me what else to check?

Thanks!

You have not provided the information that is mentioned in Job for jenkins.service failed because a timeout was exceeded - #4 by MarkEWaite . It points you to a blog post that outlines how to provide enough information so that others may be able to help you.

Since the user CPU time in your case is so low, I doubt that it is a performance related issue. However, without the details that are noted in that blog post, all you’re likely to get are guesses.

To add more information…

These are the commands I ran:

wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum upgrade -y
reboot
yum install java-11-openjdk java-11-openjdk-devel -y
yum install jenkins -y
systemctl daemon-reload
systemctl start jenkins

Rocky Linux version:

[test-vm-01 ~]# uname -a
Linux test-vm-01 4.18.0-425.3.1.el8.x86_64 #1 SMP Wed Nov 9 20:13:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[test-vm-01 ~]#
[test-vm-01 ~]# grep -v URL /etc/os-release
NAME=“Rocky Linux”
VERSION=“8.7 (Green Obsidian)”
ID=“rocky”
ID_LIKE=“rhel centos fedora”
VERSION_ID=“8.7”
PLATFORM_ID=“platform:el8”
PRETTY_NAME=“Rocky Linux 8.7 (Green Obsidian)”
ANSI_COLOR=“0;32”
LOGO=“fedora-logo-icon”
CPE_NAME=“cpe:/o:rocky:rocky:8:GA”
ROCKY_SUPPORT_PRODUCT=“Rocky-Linux-8”
ROCKY_SUPPORT_PRODUCT_VERSION=“8.7”
REDHAT_SUPPORT_PRODUCT=“Rocky Linux”
REDHAT_SUPPORT_PRODUCT_VERSION=“8.7”
[test-vm-01 ~]#

Jenkins version:

[test-vm-01 ~]# rpm -q jenkins
jenkins-2.375.1-1.1.noarch
[test-vm-01 ~]#

Java version:

[test-vm-01 ~]# java -version
openjdk version “11.0.17” 2022-10-18 LTS
OpenJDK Runtime Environment (Red_Hat-11.0.17.0.8-2.el8_6) (build 11.0.17+8-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.17.0.8-2.el8_6) (build 11.0.17+8-LTS, mixed mode, sharing)
[test-vm-01 ~]#

Jenkins systemd files:

[test-vm-01 ~]# ls -l /etc/{default,sysconfig}/jenkins
ls: cannot access ‘/etc/default/jenkins’: No such file or directory
-rw-------. 1 root root 4037 Nov 30 10:32 /etc/sysconfig/jenkins
[test-vm-01 ~]# egrep -v “^#|^$” /etc/sysconfig/jenkins
JENKINS_HOME=“/var/lib/jenkins”
JENKINS_JAVA_CMD=“”
JENKINS_USER=“jenkins”
JENKINS_JAVA_OPTIONS=“-Djava.awt.headless=true”
JENKINS_PORT=“8080”
JENKINS_LISTEN_ADDRESS=“”
JENKINS_HTTPS_PORT=“”
JENKINS_HTTPS_KEYSTORE=“”
JENKINS_HTTPS_KEYSTORE_PASSWORD=“”
JENKINS_HTTPS_LISTEN_ADDRESS=“”
JENKINS_HTTP2_PORT=“”
JENKINS_HTTP2_LISTEN_ADDRESS=“”
JENKINS_DEBUG_LEVEL=“5”
JENKINS_ENABLE_ACCESS_LOG=“no”
JENKINS_HANDLER_MAX=“100”
JENKINS_HANDLER_IDLE=“20”
JENKINS_EXTRA_LIB_FOLDER=“”
JENKINS_ARGS=“”
[test-vm-01 ~]# cat /etc/systemd/system/jenkins.service.d/override.conf
[Service]
TimeoutStartSec=600
[test-vm-01 ~]#

Jenkins service status:

[test-vm-01 ~]# systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/jenkins.service.d
└─override.conf
Active: activating (start) since Fri 2023-01-06 07:14:20 GMT; 5min ago
Main PID: 7497 (java)
Tasks: 51 (limit: 11357)
Memory: 224.1M
CGroup: /system.slice/jenkins.service
└─7497 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/je>

Jan 06 07:14:23 test-vm-01 jenkins[7497]: WARNING: Please consider reporting this to the maintainers of >
Jan 06 07:14:23 test-vm-01 jenkins[7497]: WARNING: Use --illegal-access=warn to enable warnings of furth>
Jan 06 07:14:23 test-vm-01 jenkins[7497]: WARNING: All illegal access operations will be denied in a fut>
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.702+0000 [id=28] INFO jenkin>
Jan 06 07:14:23 test-vm-01 jenkins[7497]: *************************************************************
Jan 06 07:14:23 test-vm-01 jenkins[7497]: Jenkins initial setup is required. An admin user has been crea>
Jan 06 07:14:23 test-vm-01 jenkins[7497]: Please use the following password to proceed to installation:
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 075c5b9cc3fc43e48bc6b69feec66394
Jan 06 07:14:23 test-vm-01 jenkins[7497]: This may also be found at: /var/lib/jenkins/secrets/initialAdm>
Jan 06 07:14:23 test-vm-01 jenkins[7497]: *************************************************************
[test-vm-01 ~]#

Jenkins system logs(journalctl -u jenkins):

– Logs begin at Fri 2023-01-06 06:34:55 GMT, end at Fri 2023-01-06 07:24:24 GMT. –
Jan 06 06:51:37 test-vm-01 systemd[1]: /etc/systemd/system/jenkins.service.d/override.conf:2: Unknown lvalue ‘TimeoutStartUSec’ in section ‘Service’
Jan 06 06:51:47 test-vm-01 systemd[1]: /etc/systemd/system/jenkins.service.d/override.conf:2: Unknown lvalue ‘TimeoutStartUSec’ in section ‘Service’
Jan 06 06:51:47 test-vm-01 systemd[1]: /etc/systemd/system/jenkins.service.d/override.conf:2: Unknown lvalue ‘TimeoutStartUSec’ in section ‘Service’
Jan 06 06:53:28 test-vm-01 systemd[1]: /etc/systemd/system/jenkins.service.d/override.conf:2: Unknown lvalue ‘TimeoutStartUSec’ in section ‘Service’
Jan 06 06:53:34 test-vm-01 systemd[1]: /etc/systemd/system/jenkins.service.d/override.conf:2: Unknown lvalue ‘TimeoutStartUSec’ in section ‘Service’
Jan 06 06:53:34 test-vm-01 systemd[1]: /etc/systemd/system/jenkins.service.d/override.conf:2: Unknown lvalue ‘TimeoutStartUSec’ in section ‘Service’
Jan 06 06:54:18 test-vm-01 systemd[1]: Starting Jenkins Continuous Integration Server…
Jan 06 06:54:18 test-vm-01 jenkins[7164]: Running from: /usr/share/java/jenkins.war
Jan 06 06:54:18 test-vm-01 jenkins[7164]: 2023-01-06 06:54:18.972+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
Jan 06 06:54:20 test-vm-01 jenkins[7164]: 2023-01-06 06:54:20.163+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
Jan 06 06:54:20 test-vm-01 jenkins[7164]: 2023-01-06 06:54:20.210+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-10.0.12; built: 2022-09-14T01:54:40.076Z; git: 408d0139887e27a57b54ed52e2d92a36731a7e88; jvm 11.0.17+8-LTS
Jan 06 06:54:20 test-vm-01 jenkins[7164]: 2023-01-06 06:54:20.481+0000 [id=1] INFO o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jan 06 06:54:20 test-vm-01 jenkins[7164]: 2023-01-06 06:54:20.527+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: Session workerName=node0
Jan 06 06:54:20 test-vm-01 jenkins[7164]: 2023-01-06 06:54:20.876+0000 [id=1] INFO hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get(“JENKINS_HOME”)
Jan 06 06:54:21 test-vm-01 jenkins[7164]: 2023-01-06 06:54:21.259+0000 [id=1] INFO o.e.j.s.handler.ContextHandler#doStart: Started w.@ 75e710b{Jenkins v2.375.1,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Jan 06 06:54:21 test-vm-01 jenkins[7164]: 2023-01-06 06:54:21.276+0000 [id=1] INFO o.e.j.server.AbstractConnector#doStart: Started ServerConnector@ 18e36d14{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Jan 06 06:54:21 test-vm-01 jenkins[7164]: 2023-01-06 06:54:21.288+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: Started Server@ 1838ccb8{STARTING}[10.0.12,sto=0] @ 2798ms
Jan 06 06:54:21 test-vm-01 jenkins[7164]: 2023-01-06 06:54:21.294+0000 [id=23] INFO winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
Jan 06 06:54:21 test-vm-01 jenkins[7164]: 2023-01-06 06:54:21.872+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
Jan 06 06:54:21 test-vm-01 jenkins[7164]: 2023-01-06 06:54:21.884+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
Jan 06 06:54:22 test-vm-01 jenkins[7164]: 2023-01-06 06:54:22.575+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
Jan 06 06:54:22 test-vm-01 jenkins[7164]: 2023-01-06 06:54:22.579+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
Jan 06 06:54:22 test-vm-01 jenkins[7164]: 2023-01-06 06:54:22.588+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
Jan 06 06:54:22 test-vm-01 jenkins[7164]: 2023-01-06 06:54:22.843+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
Jan 06 06:54:22 test-vm-01 jenkins[7164]: 2023-01-06 06:54:22.843+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
Jan 06 06:54:22 test-vm-01 jenkins[7164]: 2023-01-06 06:54:22.844+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
Jan 06 06:54:22 test-vm-01 jenkins[7164]: 2023-01-06 06:54:22.845+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
Jan 06 06:54:22 test-vm-01 jenkins[7164]: 2023-01-06 06:54:22.915+0000 [id=47] INFO hudson.util.Retrier#start: Attempt #1 to do the action check updates server
Jan 06 06:54:23 test-vm-01 jenkins[7164]: WARNING: An illegal reflective access operation has occurred
Jan 06 06:54:23 test-vm-01 jenkins[7164]: WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/var/cache/jenkins/war/WEB-INF/lib/groovy-all-2.4.21.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
Jan 06 06:54:23 test-vm-01 jenkins[7164]: WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
Jan 06 06:54:23 test-vm-01 jenkins[7164]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Jan 06 06:54:23 test-vm-01 jenkins[7164]: WARNING: All illegal access operations will be denied in a future release
Jan 06 06:54:23 test-vm-01 jenkins[7164]: 2023-01-06 06:54:23.417+0000 [id=30] INFO jenkins.install.SetupWizard#init:
Jan 06 06:54:23 test-vm-01 jenkins[7164]: *************************************************************
Jan 06 06:54:23 test-vm-01 jenkins[7164]: Jenkins initial setup is required. An admin user has been created and a password generated.
Jan 06 06:54:23 test-vm-01 jenkins[7164]: Please use the following password to proceed to installation:
Jan 06 06:54:23 test-vm-01 jenkins[7164]: 075c5b9cc3fc43e48bc6b69feec66394
Jan 06 06:54:23 test-vm-01 jenkins[7164]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
Jan 06 06:54:23 test-vm-01 jenkins[7164]: *************************************************************
Jan 06 07:04:18 test-vm-01 systemd[1]: jenkins.service: start operation timed out. Terminating.
Jan 06 07:04:18 test-vm-01 jenkins[7164]: 2023-01-06 07:04:18.504+0000 [id=24] INFO winstone.Logger#logInternal: JVM is terminating. Shutting down Jetty
Jan 06 07:04:18 test-vm-01 jenkins[7164]: 2023-01-06 07:04:18.505+0000 [id=24] INFO org.eclipse.jetty.server.Server#doStop: Stopped Server@ 1838ccb8{STOPPING}[10.0.12,sto=0]
Jan 06 07:04:18 test-vm-01 jenkins[7164]: 2023-01-06 07:04:18.510+0000 [id=24] INFO o.e.j.server.AbstractConnector#doStop: Stopped ServerConnector@ 18e36d14{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Jan 06 07:04:18 test-vm-01 systemd[1]: jenkins.service: Failed with result ‘timeout’.
Jan 06 07:04:18 test-vm-01 systemd[1]: Failed to start Jenkins Continuous Integration Server.
Jan 06 07:04:19 test-vm-01 systemd[1]: jenkins.service: Service RestartSec=100ms expired, scheduling restart.
Jan 06 07:04:19 test-vm-01 systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 1.
Jan 06 07:04:19 test-vm-01 systemd[1]: Stopped Jenkins Continuous Integration Server.
Jan 06 07:04:19 test-vm-01 systemd[1]: Starting Jenkins Continuous Integration Server…
Jan 06 07:04:19 test-vm-01 jenkins[7379]: Running from: /usr/share/java/jenkins.war
Jan 06 07:04:19 test-vm-01 jenkins[7379]: 2023-01-06 07:04:19.928+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
Jan 06 07:04:19 test-vm-01 jenkins[7379]: 2023-01-06 07:04:19.973+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
Jan 06 07:04:20 test-vm-01 jenkins[7379]: 2023-01-06 07:04:20.030+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-10.0.12; built: 2022-09-14T01:54:40.076Z; git: 408d0139887e27a57b54ed52e2d92a36731a7e88; jvm 11.0.17+8-LTS
Jan 06 07:04:20 test-vm-01 jenkins[7379]: 2023-01-06 07:04:20.396+0000 [id=1] INFO o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jan 06 07:04:20 test-vm-01 jenkins[7379]: 2023-01-06 07:04:20.457+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: Session workerName=node0
Jan 06 07:04:20 test-vm-01 jenkins[7379]: 2023-01-06 07:04:20.813+0000 [id=1] INFO hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get(“JENKINS_HOME”)
Jan 06 07:04:21 test-vm-01 jenkins[7379]: 2023-01-06 07:04:21.166+0000 [id=1] INFO o.e.j.s.handler.ContextHandler#doStart: Started w.@ fac80{Jenkins v2.375.1,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Jan 06 07:04:21 test-vm-01 jenkins[7379]: 2023-01-06 07:04:21.204+0000 [id=1] INFO o.e.j.server.AbstractConnector#doStart: Started ServerConnector@ 517cd4b{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Jan 06 07:04:21 test-vm-01 jenkins[7379]: 2023-01-06 07:04:21.213+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: Started Server@ b7f23d9{STARTING}[10.0.12,sto=0] @ 1859ms
Jan 06 07:04:21 test-vm-01 jenkins[7379]: 2023-01-06 07:04:21.226+0000 [id=23] INFO winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
Jan 06 07:04:21 test-vm-01 jenkins[7379]: 2023-01-06 07:04:21.539+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
Jan 06 07:04:21 test-vm-01 jenkins[7379]: 2023-01-06 07:04:21.557+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 2023-01-06 07:04:22.242+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 2023-01-06 07:04:22.245+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 2023-01-06 07:04:22.254+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 2023-01-06 07:04:22.572+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 2023-01-06 07:04:22.573+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 2023-01-06 07:04:22.573+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 2023-01-06 07:04:22.574+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 2023-01-06 07:04:22.628+0000 [id=46] INFO hudson.util.Retrier#start: Attempt #1 to do the action check updates server
Jan 06 07:04:22 test-vm-01 jenkins[7379]: WARNING: An illegal reflective access operation has occurred
Jan 06 07:04:22 test-vm-01 jenkins[7379]: WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/var/cache/jenkins/war/WEB-INF/lib/groovy-all-2.4.21.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
Jan 06 07:04:22 test-vm-01 jenkins[7379]: WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
Jan 06 07:04:22 test-vm-01 jenkins[7379]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Jan 06 07:04:22 test-vm-01 jenkins[7379]: WARNING: All illegal access operations will be denied in a future release
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 2023-01-06 07:04:22.841+0000 [id=28] INFO jenkins.install.SetupWizard#init:
Jan 06 07:04:22 test-vm-01 jenkins[7379]: *************************************************************
Jan 06 07:04:22 test-vm-01 jenkins[7379]: Jenkins initial setup is required. An admin user has been created and a password generated.
Jan 06 07:04:22 test-vm-01 jenkins[7379]: Please use the following password to proceed to installation:
Jan 06 07:04:22 test-vm-01 jenkins[7379]: 075c5b9cc3fc43e48bc6b69feec66394
Jan 06 07:04:22 test-vm-01 jenkins[7379]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
Jan 06 07:04:22 test-vm-01 jenkins[7379]: *************************************************************
Jan 06 07:14:19 test-vm-01 systemd[1]: jenkins.service: start operation timed out. Terminating.
Jan 06 07:14:19 test-vm-01 jenkins[7379]: 2023-01-06 07:14:19.502+0000 [id=24] INFO winstone.Logger#logInternal: JVM is terminating. Shutting down Jetty
Jan 06 07:14:19 test-vm-01 jenkins[7379]: 2023-01-06 07:14:19.502+0000 [id=24] INFO org.eclipse.jetty.server.Server#doStop: Stopped Server@ b7f23d9{STOPPING}[10.0.12,sto=0]
Jan 06 07:14:19 test-vm-01 systemd[1]: jenkins.service: Failed with result ‘timeout’.
Jan 06 07:14:19 test-vm-01 systemd[1]: Failed to start Jenkins Continuous Integration Server.
Jan 06 07:14:20 test-vm-01 systemd[1]: jenkins.service: Service RestartSec=100ms expired, scheduling restart.
Jan 06 07:14:20 test-vm-01 systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 2.
Jan 06 07:14:20 test-vm-01 systemd[1]: Stopped Jenkins Continuous Integration Server.
Jan 06 07:14:20 test-vm-01 systemd[1]: Starting Jenkins Continuous Integration Server…
Jan 06 07:14:20 test-vm-01 jenkins[7497]: Running from: /usr/share/java/jenkins.war
Jan 06 07:14:20 test-vm-01 jenkins[7497]: 2023-01-06 07:14:20.856+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
Jan 06 07:14:20 test-vm-01 jenkins[7497]: 2023-01-06 07:14:20.896+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
Jan 06 07:14:20 test-vm-01 jenkins[7497]: 2023-01-06 07:14:20.947+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-10.0.12; built: 2022-09-14T01:54:40.076Z; git: 408d0139887e27a57b54ed52e2d92a36731a7e88; jvm 11.0.17+8-LTS
Jan 06 07:14:21 test-vm-01 jenkins[7497]: 2023-01-06 07:14:21.292+0000 [id=1] INFO o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jan 06 07:14:21 test-vm-01 jenkins[7497]: 2023-01-06 07:14:21.345+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: Session workerName=node0
Jan 06 07:14:21 test-vm-01 jenkins[7497]: 2023-01-06 07:14:21.704+0000 [id=1] INFO hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get(“JENKINS_HOME”)
Jan 06 07:14:22 test-vm-01 jenkins[7497]: 2023-01-06 07:14:22.081+0000 [id=1] INFO o.e.j.s.handler.ContextHandler#doStart: Started w.@ fac80{Jenkins v2.375.1,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Jan 06 07:14:22 test-vm-01 jenkins[7497]: 2023-01-06 07:14:22.098+0000 [id=1] INFO o.e.j.server.AbstractConnector#doStart: Started ServerConnector@ 517cd4b{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Jan 06 07:14:22 test-vm-01 jenkins[7497]: 2023-01-06 07:14:22.104+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: Started Server@ b7f23d9{STARTING}[10.0.12,sto=0] @ 1770ms
Jan 06 07:14:22 test-vm-01 jenkins[7497]: 2023-01-06 07:14:22.118+0000 [id=23] INFO winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
Jan 06 07:14:22 test-vm-01 jenkins[7497]: 2023-01-06 07:14:22.449+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
Jan 06 07:14:22 test-vm-01 jenkins[7497]: 2023-01-06 07:14:22.463+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.117+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.121+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.129+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.395+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.396+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.396+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.397+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.452+0000 [id=46] INFO hudson.util.Retrier#start: Attempt #1 to do the action check updates server
Jan 06 07:14:23 test-vm-01 jenkins[7497]: WARNING: An illegal reflective access operation has occurred
Jan 06 07:14:23 test-vm-01 jenkins[7497]: WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/var/cache/jenkins/war/WEB-INF/lib/groovy-all-2.4.21.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
Jan 06 07:14:23 test-vm-01 jenkins[7497]: WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
Jan 06 07:14:23 test-vm-01 jenkins[7497]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Jan 06 07:14:23 test-vm-01 jenkins[7497]: WARNING: All illegal access operations will be denied in a future release
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 2023-01-06 07:14:23.702+0000 [id=28] INFO jenkins.install.SetupWizard#init:
Jan 06 07:14:23 test-vm-01 jenkins[7497]: *************************************************************
Jan 06 07:14:23 test-vm-01 jenkins[7497]: Jenkins initial setup is required. An admin user has been created and a password generated.
Jan 06 07:14:23 test-vm-01 jenkins[7497]: Please use the following password to proceed to installation:
Jan 06 07:14:23 test-vm-01 jenkins[7497]: 075c5b9cc3fc43e48bc6b69feec66394
Jan 06 07:14:23 test-vm-01 jenkins[7497]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
Jan 06 07:14:23 test-vm-01 jenkins[7497]: *************************************************************
Jan 06 07:24:20 test-vm-01 systemd[1]: jenkins.service: start operation timed out. Terminating.
Jan 06 07:24:20 test-vm-01 systemd[1]: jenkins.service: Failed with result ‘timeout’.
Jan 06 07:24:20 test-vm-01 systemd[1]: Failed to start Jenkins Continuous Integration Server.
Jan 06 07:24:21 test-vm-01 systemd[1]: jenkins.service: Service RestartSec=100ms expired, scheduling restart.
Jan 06 07:24:21 test-vm-01 systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 3.
Jan 06 07:24:21 test-vm-01 systemd[1]: Stopped Jenkins Continuous Integration Server.
Jan 06 07:24:21 test-vm-01 systemd[1]: Starting Jenkins Continuous Integration Server…
Jan 06 07:24:21 test-vm-01 jenkins[7627]: Running from: /usr/share/java/jenkins.war
Jan 06 07:24:21 test-vm-01 jenkins[7627]: 2023-01-06 07:24:21.800+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
Jan 06 07:24:21 test-vm-01 jenkins[7627]: 2023-01-06 07:24:21.840+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
Jan 06 07:24:21 test-vm-01 jenkins[7627]: 2023-01-06 07:24:21.891+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-10.0.12; built: 2022-09-14T01:54:40.076Z; git: 408d0139887e27a57b54ed52e2d92a36731a7e88; jvm 11.0.17+8-LTS
Jan 06 07:24:22 test-vm-01 jenkins[7627]: 2023-01-06 07:24:22.213+0000 [id=1] INFO o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jan 06 07:24:22 test-vm-01 jenkins[7627]: 2023-01-06 07:24:22.277+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: Session workerName=node0
Jan 06 07:24:22 test-vm-01 jenkins[7627]: 2023-01-06 07:24:22.699+0000 [id=1] INFO hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get(“JENKINS_HOME”)
Jan 06 07:24:23 test-vm-01 jenkins[7627]: 2023-01-06 07:24:23.063+0000 [id=1] INFO o.e.j.s.handler.ContextHandler#doStart: Started w.@ fac80{Jenkins v2.375.1,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Jan 06 07:24:23 test-vm-01 jenkins[7627]: 2023-01-06 07:24:23.104+0000 [id=1] INFO o.e.j.server.AbstractConnector#doStart: Started ServerConnector@ 517cd4b{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Jan 06 07:24:23 test-vm-01 jenkins[7627]: 2023-01-06 07:24:23.132+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: Started Server@ b7f23d9{STARTING}[10.0.12,sto=0] @ 1818ms
Jan 06 07:24:23 test-vm-01 jenkins[7627]: 2023-01-06 07:24:23.142+0000 [id=23] INFO winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
Jan 06 07:24:23 test-vm-01 jenkins[7627]: 2023-01-06 07:24:23.418+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
Jan 06 07:24:23 test-vm-01 jenkins[7627]: 2023-01-06 07:24:23.432+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 2023-01-06 07:24:24.095+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 2023-01-06 07:24:24.098+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 2023-01-06 07:24:24.102+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 2023-01-06 07:24:24.374+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 2023-01-06 07:24:24.375+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 2023-01-06 07:24:24.375+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 2023-01-06 07:24:24.376+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 2023-01-06 07:24:24.460+0000 [id=46] INFO hudson.util.Retrier#start: Attempt #1 to do the action check updates server
Jan 06 07:24:24 test-vm-01 jenkins[7627]: WARNING: An illegal reflective access operation has occurred
Jan 06 07:24:24 test-vm-01 jenkins[7627]: WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/var/cache/jenkins/war/WEB-INF/lib/groovy-all-2.4.21.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
Jan 06 07:24:24 test-vm-01 jenkins[7627]: WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
Jan 06 07:24:24 test-vm-01 jenkins[7627]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Jan 06 07:24:24 test-vm-01 jenkins[7627]: WARNING: All illegal access operations will be denied in a future release
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 2023-01-06 07:24:24.596+0000 [id=28] INFO jenkins.install.SetupWizard#init:
Jan 06 07:24:24 test-vm-01 jenkins[7627]: *************************************************************
Jan 06 07:24:24 test-vm-01 jenkins[7627]: Jenkins initial setup is required. An admin user has been created and a password generated.
Jan 06 07:24:24 test-vm-01 jenkins[7627]: Please use the following password to proceed to installation:
Jan 06 07:24:24 test-vm-01 jenkins[7627]: 075c5b9cc3fc43e48bc6b69feec66394
Jan 06 07:24:24 test-vm-01 jenkins[7627]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
Jan 06 07:24:24 test-vm-01 jenkins[7627]: *************************************************************

Thanks!

That log content is quite surprising for a Jenkins controller that has already been configured. That is the log content that is output for a brand new Jenkins controller that has just been installed with no previous configuration. The controller starts, gives the randomly generated initial password, then waits for you to enter that password from your web browser to continue the initial configuration of Jenkins. After 10 minutes idle time, Jenkins reports that it is terminating because it is not making progress in startup.

If this is a first time installation, then you need to connect to the controller with your web browser and complete its configuration.

If this is not a first time installation, then you’ve probably got a configuration error that is causing the Jenkins controller to believe that the JENKINS_HOME directory is in a different location than you expect it is.

@MarkEWaite Thanks for your reply.

IT is indeed a new install. I have tried to access the web console of jenkins :8080 while in activating state but it shows:

“Please wait while Jenkins is getting ready to work
Your browser will reload automatically when Jenkins is ready.”

In a good install, jenkins service should be in started state before I can access the webconsole to activate it.

Thanks!

You might check that there is nothing in the Jenkins home directory that is causing an issue. Something like:

$ mkdir /tmp/jenkins-home-test
$ JENKINS_HOME=/tmp/jenkins-home-test java -jar /usr/share/java/jenkins.war

There is also an article from CloudBees that might offer ideas:

Thanks!

I tried changing the JENKINS_HOME as you suggested, but the result is still the same.

I will check the link you provided.

Thanks again.