Refering to course : DevSecOps - Kubernetes DevOps & Security
The Jenkins does not start when “systemctl start jenkins” and provide error:
Nov 17 06:48:13 devsecops-cloud systemd[1]: jenkins.service: Start request repeated too quickly.
Nov 17 06:48:13 devsecops-cloud systemd[1]: jenkins.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit jenkins.service has entered the 'failed' state with result 'exit-code'.
Nov 17 06:48:13 devsecops-cloud systemd[1]: Failed to start Jenkins Continuous Integration Server.
░░ Subject: A start job for unit jenkins.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit jenkins.service has finished with a failure.
░░
░░ The job identifier is 29803 and the job result is failed.
I have modified the jenkins.service file from /usr/lib/systemd/system based on link.
I still get the same error
Kindly help.
Thank you,
Shrinidhi.
Here you want to look at the log file for jenkins, to see what’s up. Here’s what I see:
[bob@devsecops ~]$ journalctl -xeu jenkins.service
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
Pass -q to turn off this notice.
No journal files were opened due to insufficient permissions.
[bob@devsecops ~]$ sudo journalctl -xeu jenkins.service
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit jenkins.service has finished with a failure.
░░
░░ The job identifier is 1852 and the job result is failed.
Nov 17 21:10:37 devsecops jenkins[5941]: Running with Java 11 from /usr/lib/jvm/>
Nov 17 21:10:37 devsecops jenkins[5941]: Supported Java versions are: [17, 21]
Nov 17 21:10:37 devsecops jenkins[5941]: See https://jenkins.io/redirect/java-su>
Nov 17 21:10:37 devsecops systemd[1]: Failed to start Jenkins Continuous Integra>
░░ Subject: A start job for unit jenkins.service has failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit jenkins.service has finished with a failure.
░░
░░ The job identifier is 1919 and the job result is failed.
Nov 17 21:10:37 devsecops systemd[1]: Failed to start Jenkins Continuous Integra>
░░ Subject: A start job for unit jenkins.service has failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit jenkins.service has finished with a failure.
░░
░░ The job identifier is 1986 and the job result is failed.
So we’re running JDK 11 and not JDK 17 or 21. Not sure why; I’ve tried to install JDK 17, and systemd simply ignores it. I’m passing this to the lab team to figure out WTF is up with this lab.
I’ve gotten a reply from one of our engineers; he’s updated the solutions tab which will hopefully solve your issue. Please try it again, and tell me if you can get it to work now.