I am following this instruction on centos in lab to install jenkins and also updating port but i am getting some issue or unable to start jenkin service
I am getting error upon starting the service
Job for jenkins.service failed because the control process exited with error code. See âsystemctl status jenkins.serviceâ and âjournalctl -xeâ for details.
This definitely does not work with the official instructions in the lab environment. I was able to get past the issue by installing the Jenkins Docker container.
Output of systemctl start jenkins is below
Mar 12 18:11:01 centos-host systemd[1]: jenkins.service: main process exited, code=exited, status=1/FAILURE
Mar 12 18:11:01 centos-host systemd[1]: Failed to start Jenkins Continuous Integration Server.
-- Subject: Unit jenkins.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit jenkins.service has failed.
--
-- The result is failed.
Mar 12 18:11:01 centos-host systemd[1]: Unit jenkins.service entered failed state.
Mar 12 18:11:01 centos-host systemd[1]: jenkins.service failed.
Mar 12 18:11:02 centos-host systemd[1]: jenkins.service holdoff time over, scheduling restart.
Mar 12 18:11:02 centos-host systemd[1]: Stopped Jenkins Continuous Integration Server.
-- Subject: Unit jenkins.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit jenkins.service has finished shutting down.
Mar 12 18:11:02 centos-host systemd[1]: Starting Jenkins Continuous Integration Server...
-- Subject: Unit jenkins.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit jenkins.service has begun starting up.
Mar 12 18:11:02 centos-host systemd[1]: systemd-journald.service: Couldn't add fd to fd store: Operation not permitted
Mar 12 18:11:02 centos-host jenkins[3257]: Running from: /usr/share/java/jenkins.war
Mar 12 18:11:02 centos-host jenkins[3257]: 2022-03-12 18:11:02.539+0000 [id=1] INFO org.eclipse.jetty.util.log.Log#initialized: Logging initialized @385ms to org.eclipse.jetty.util.log.JavaUtilLog
@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.
I am struggling with the same error message, I have changed the PORT to 8090 but still getting same error message on Jenkins installation.
â Unit jenkins.service has begun starting up.
Jun 12 20:37:21 centos-host systemd[1]: jenkins.service: main process exited, code=exited, status=1/FAILURE
Jun 12 20:37:21 centos-host systemd[1]: Failed to start Jenkins Continuous Integration Server.
â Subject: Unit jenkins.service has failed
â Defined-By: systemd
â Support: systemd-devel Info Page
â Unit jenkins.service has failed.
[bob@centos-host packages]$ sudo cat /usr/lib/systemd/system/jenkins.service | grep -i Jenkins_port
Environment=âJENKINS_PORT=8090â
[bob@centos-host packages]$ 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.
[bob@centos-host packages]$
I have tried the same steps told by you⌠but same error
â jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2023-08-24 00:27:41 UTC; 13s ago
Process: 8376 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
Main PID: 8376 (code=exited, status=1/FAILURE)