.
[[email protected] ~]$ systemctl status jenkins.service
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sun 2022-03-13 11:53:07 UTC; 2min 49s ago
Process: 2234 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
Main PID: 2234 (code=exited, status=1/FAILURE)
[[email protected] ~]$ sudo systemctl start jenkins
Job for jenkins.service failed because the control process exited with error code. See “systemctl status jenkins.service” and “journalctl -xe” for details
Any one faced same issue ? how to resolve it ?
Ayman
March 13, 2022, 12:08pm
#2
@Dheeraj1232
Thanks for reporting, we will check it ASAP.
Hello, @Dheeraj1232
As an update, One of our team members is working on it.
If you are interested to troubleshoot and fix that issues then please check the below thread -
@kishlay-raj
In case, If you wanna troubleshoot and fix this issue please follow the below instructions -
sudo journalctl -xe -u jenkins
You will see the error that it’s happening due to a failed to bind port.
sudo systemctl status jenkins
you will see the unit file of this jenkins.
sudo vi /usr/lib/systemd/system/jenkins.service
change the JENKINS_PORT=“8080” to “8090”
then reload the daemon because we made some changes in the unit files and then restart the jenkins service.
sudo syste…
2 Likes
Yes I faced the same Error . checked the Network Service In Centos is down . Could not get it up because of not knowing the internal network Config .
IT HAS Worked !!! , Many Many Thanks for this help . So Very Nice of you @kishlay-raj .
Please post the commands you used , i am a new bee to jenkins
Hello @kumarmishra651
Commands are available in the Hint/Solution section.
Regards,
KodeKloud Support
1 Like
java version issue by default java comming with 1.8 but you need jdk11
sudo journalctl -xe -u jenkins
[email protected] ~]# sudo journalctl -xe -u jenkins
– The result is failed.
Sep 23 19:12:35 devsecops jenkins[38205]: Sep 23, 2022 7:12:35 PM executable.Main verifyJavaVersion
Sep 23 19:12:35 devsecops jenkins[38205]: SEVERE: Running with Java class version 52, which is old>
Sep 23 19:12:35 devsecops jenkins[38205]: java.lang.UnsupportedClassVersionError: 52.0
Sep 23 19:12:35 devsecops jenkins[38205]: at executable.Main.verifyJavaVersion(Main.java:1>
Sep 23 19:12:35 devsecops jenkins[38205]: at executable.Main.main(Main.java:109)
Sep 23 19:12:35 devsecops jenkins[38205]: Jenkins requires Java versions [17, 11] but you are runn>
Sep 23 19:12:35 devsecops jenkins[38205]: java.lang.UnsupportedClassVersionError: 52.0
Sep 23 19:12:35 devsecops jenkins[38205]: at executable.Main.verifyJavaVersion(Main.java:1>
Sep 23 19:12:35 devsecops jenkins[38205]: at executable.Main.main(Main.java:109)
Sep 23 19:12:35 devsecops systemd[1]: Failed to start Jenkins Continuous Integration Server.
– Subject: Unit jenkins.service has failed
– Defined-By: systemd
– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
– Unit jenkins.service has failed.
– The result is failed.
Sep 23 19:12:35 devsecops systemd[1]: Failed to start Jenkins Continuous Integration Server.
– Subject: Unit jenkins.service has failed
– Defined-By: systemd
– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
– Unit jenkins.service has failed.
– The result is failed.
Hi @adepuajay ,
Thanks for sharing the tips.