I installed jenkins with java 11 and everything seemed to be set fine but when starting jenkins service the process fails with the following log that I got when I ran
"systemctl status jenkins-service"
What I get when I start jenkins : "systemctl start jenkins.service
[root#localhost ~]# 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.
This is the status I get when running "systemctl jenkins.service" :
[root#localhost ~]# 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 Wed 2022-11-09 23:41:16 UTC; 9s ago
Process: 2605 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
Main PID: 2605 (code=exited, status=1/FAILURE)
Nov 09 23:41:16 localhost.localdomain systemd[1]: jenkins.service: main process exited, code=exited, status=1/FAILURE
Nov 09 23:41:16 localhost.localdomain systemd[1]: Failed to start Jenkins Continuous Integration Server.
Nov 09 23:41:16 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Nov 09 23:41:16 localhost.localdomain systemd[1]: jenkins.service failed.
Nov 09 23:41:16 localhost.localdomain systemd[1]: jenkins.service holdoff time over, scheduling restart.
Nov 09 23:41:16 localhost.localdomain systemd[1]: Stopped Jenkins Continuous Integration Server.
Nov 09 23:41:16 localhost.localdomain systemd[1]: start request repeated too quickly for jenkins.service
Nov 09 23:41:16 localhost.localdomain systemd[1]: Failed to start Jenkins Continuous Integration Server.
Nov 09 23:41:16 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Nov 09 23:41:16 localhost.localdomain systemd[1]: jenkins.service failed.
Also I get this error log when i run "journalctl -xe"
[root#localhost ~]# journalctl -xe
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.lang.reflect.Method.invoke(Method.java:566)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at executable.Main._main(Main.java:334)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at executable.Main.main(Main.java:116)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: 2022-11-10 00:09:52.467+0000 [id=1] WARNING winst
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: 2022-11-10 00:09:52.564+0000 [id=1] INFO winstone
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: java.io.FileNotFoundException: %C/jenkins/war/META-INF/MANIFEST
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.io.FileOutputStream.open0(Native Method)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.io.FileOutputStream.open(FileOutputStream.jav
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.io.FileOutputStream.<init>(FileOutputStream.j
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.io.FileOutputStream.<init>(FileOutputStream.j
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.HostConfiguration.getWebRoot(HostConfiguration.java
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.HostConfiguration.<init>(HostConfiguration.java:85)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.HostGroup.initHost(HostGroup.java:65)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.HostGroup.<init>(HostGroup.java:44)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.Launcher.<init>(Launcher.java:182)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.Launcher.main(Launcher.java:403)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.lang.reflect.Method.invoke(Method.java:566)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at executable.Main._main(Main.java:334)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at executable.Main.main(Main.java:116)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: 2022-11-10 00:09:52.565+0000 [id=1] SEVERE winsto
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: java.io.FileNotFoundException: %C/jenkins/war/META-INF/MANIFEST
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.io.FileOutputStream.open0(Native Method)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.io.FileOutputStream.open(FileOutputStream.jav
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.io.FileOutputStream.<init>(FileOutputStream.j
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.io.FileOutputStream.<init>(FileOutputStream.j
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.HostConfiguration.getWebRoot(HostConfiguration.java
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.HostConfiguration.<init>(HostConfiguration.java:85)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.HostGroup.initHost(HostGroup.java:65)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.HostGroup.<init>(HostGroup.java:44)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.Launcher.<init>(Launcher.java:182)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at winstone.Launcher.main(Launcher.java:403)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at java.base/java.lang.reflect.Method.invoke(Method.java:566)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at executable.Main._main(Main.java:334)
Nov 10 00:09:52 localhost.localdomain jenkins[16798]: at executable.Main.main(Main.java:116)
Nov 10 00:09:52 localhost.localdomain systemd[1]: jenkins.service: main process exited, code=exited, status=1/FAILURE
Nov 10 00:09:52 localhost.localdomain 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.
Nov 10 00:09:52 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Nov 10 00:09:52 localhost.localdomain systemd[1]: jenkins.service failed.
Nov 10 00:09:52 localhost.localdomain systemd[1]: jenkins.service holdoff time over, scheduling restart.
Nov 10 00:09:52 localhost.localdomain 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.
Nov 10 00:09:52 localhost.localdomain 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.
Related
I was trying to install jenkins in ec2 ubuntu and amazon-linux but I am getting this error
jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-11-27 16:29:54 UTC; 1h 8min ago
Process: 18706 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
Main PID: 18706 (code=exited, status=1/FAILURE)
Nov 27 16:29:54 ip-172-31-19-156 systemd[1]: jenkins.service: Main process exited, code=exited, status=1/FAILURE
Nov 27 16:29:54 ip-172-31-19-156 systemd[1]: jenkins.service: Failed with result 'exit-code'.
Nov 27 16:29:54 ip-172-31-19-156 systemd[1]: Failed to start Jenkins Continuous Integration Server.
Nov 27 16:29:54 ip-172-31-19-156 systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 5.
Nov 27 16:29:54 ip-172-31-19-156 systemd[1]: Stopped Jenkins Continuous Integration Server.
Nov 27 16:29:54 ip-172-31-19-156 systemd[1]: jenkins.service: Start request repeated too quickly.
Nov 27 16:29:54 ip-172-31-19-156 systemd[1]: jenkins.service: Failed with result 'exit-code'.
Nov 27 16:29:54 ip-172-31-19-156 systemd[1]: Failed to start Jenkins Continuous Integration Server.
root#ip-172-31-19-156:~# cd /car/usr
First I installed jenkins and was interrupted in between that I changed the ec2 volume for reset my ec2, after this I'm unable to install jenkins in ec2
I had changed my nodes' runtime into containerd. But now i would like to use docker tool instead. I try refresh the dockerd service config as follow:
[Service]
......
ExecStart=/usr/bin/dockerd --selinux-enabled=false --insecure-registry=127.0.0.1 -H fd:// --containerd=/var/run/containerd/containerd.sock --cri-containerd --debug
......
And it doesn t work unexpected.
$ systemctl status docker.service
● docker.service
Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/docker.service.d
└─http-proxy.conf
Active: failed (Result: start-limit) since Mon 2022-11-07 16:10:51 CST; 10s ago
Docs: https://docs.docker.com
Process: 4872 ExecStart=/usr/bin/dockerd --selinux-enabled=false --insecure-registry=127.0.0.1 -H fd:// --containerd=/var/run/containerd/containerd.sock --cri-containerd --debug (code=exited, status=1/FAILURE)
Main PID: 4872 (code=exited, status=1/FAILURE)
Nov 07 16:10:51 master systemd[1]: Failed to start docker.service.
Nov 07 16:10:51 master systemd[1]: Unit docker.service entered failed state.
Nov 07 16:10:51 master systemd[1]: docker.service failed.
Nov 07 16:10:51 master systemd[1]: docker.service holdoff time over, scheduling restart.
Nov 07 16:10:51 master systemd[1]: Stopped docker.service.
Nov 07 16:10:51 master systemd[1]: start request repeated too quickly for docker.service
Nov 07 16:10:51 master systemd[1]: Failed to start docker.service.
Nov 07 16:10:51 master systemd[1]: Unit docker.service entered failed state.
Nov 07 16:10:51 master systemd[1]: docker.service failed.
I suppose it is easy before. Please tell me the right config.
I expect it will work easily.
After installing Java and Jenkins on my CentOS 7 server. I tried to start the Jenkins, and I am getting the below error message.
Job for jenkins.service failed. See "systemctl status jenkins.service"
and "journalctl -xe" for details.
When I run "systemctl status jenkins.service" to see what the issue is, I get the below output
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Thu 2022-08-18 14:23:02 UTC; 20s ago
Process: 8847 ExecStart=/usr/bin/jenkins (code=exited, status=0/SUCCESS)
Main PID: 8847 (code=exited, status=0/SUCCESS)
Aug 18 14:23:02 localhost.localdomain systemd[1]: Failed to start Jenkins Continuous Integration Server.
Aug 18 14:23:02 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Aug 18 14:23:02 localhost.localdomain systemd[1]: jenkins.service failed.
Aug 18 14:23:02 localhost.localdomain systemd[1]: jenkins.service holdoff time over, scheduling restart.
Aug 18 14:23:02 localhost.localdomain systemd[1]: Stopped Jenkins Continuous Integration Server.
Aug 18 14:23:02 localhost.localdomain systemd[1]: start request repeated too quickly for jenkins.service
Aug 18 14:23:02 localhost.localdomain systemd[1]: Failed to start Jenkins Continuous Integration Server.
Aug 18 14:23:02 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Aug 18 14:23:02 localhost.localdomain systemd[1]: jenkins.service failed.
Not quite sure how to fix this. Anybody with a solution? Thanks
can you please use journalctl -xe for more detailed logs.
also can you run Jenkins in interactive mode to see why its failing to start like -
java -jar jenkins.war
you can get command details in /usr/bin/jenkins file.
We have installed docker 17.12 in our Centos 7.x and after the installation is complete, am facing an error while trying to start the docker service. Initially, I tried for systemctl docker start then for more output on this when I tried journalctl it says docker.service entered failed state.
More details below:
Docker :
17.12.1-ce , build 7390fc6
Command tried:
sudo systemctl start docker
journalctl -u docker.service
Expected Output:
Docker service should be started successfully
Actual output:
Mar 26 23:51:19 docker[16420]: See 'docker --help'
Mar 26 23:51:19 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 26 23:51:19 systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:51:19 systemd[1]: Unit docker.service entered failed state.
Mar 26 23:51:19 docker.service failed.
Mar 26 23:51:21 systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 26 23:51:21 systemd[1]: start request repeated too quickly for docker.service
Mar 26 23:51:21 systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:51:21 systemd[1]: Unit docker.service entered failed state.
Mar 26 23:51:21 systemd[1]: docker.service failed.
Mar 26 23:52:22 systemd[1]: Starting Docker Application Container Engine...
Mar 26 23:52:22 docker[16582]: docker: 'daemon' is not a docker command.
Mar 26 23:52:22 docker[16582]: See 'docker --help'
Mar 26 23:52:22 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 26 23:52:22 systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:52:22 systemd[1]: Unit docker.service entered failed state.
Mar 26 23:52:22 systemd[1]: docker.service failed.
Mar 26 23:52:24 systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 26 23:52:24 systemd[1]: Starting Docker Application Container Engine...
Mar 26 23:52:25 docker[16601]: docker: 'daemon' is not a docker command.
Mar 26 23:52:25 docker[16601]: See 'docker --help'
Mar 26 23:52:25 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 26 23:52:25 systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:52:25 systemd[1]: Unit docker.service entered failed state.
Mar 26 23:52:25 systemd[1]: docker.service failed.
Mar 26 23:52:27 systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 26 23:52:27 systemd[1]: Starting Docker Application Container Engine...
Mar 26 23:52:27 docker[16619]: docker: 'daemon' is not a docker command.
Mar 26 23:52:27 docker[16619]: See 'docker --help'
Mar 26 23:52:27 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 26 23:52:27 systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:52:27 systemd[1]: Unit docker.service entered failed state.
Mar 26 23:52:27 systemd[1]: docker.service failed.
Mar 26 23:52:29 systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 26 23:52:29 systemd[1]: start request repeated too quickly for docker.service
Mar 26 23:52:29 systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:52:29 systemd[1]: Unit docker.service entered failed state.
Mar 26 23:52:29 systemd[1]: docker.service failed.
Please check on this issue and help us resolve the docker start issue.
no evidence in your log.
Would you just reinstall with the official way ?
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sh get-docker.sh
Check if there's another issue with:
sudo dockerd --debug
In my situation I had invalid config in the daemon.json.
I install docker on CentOS7(Linux version 3.10.0-327.el7.x86_64) with command yum install -y docker, but when I try to start docker with systemctl start docker, the docker failed to start, below is the error message
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-03-15 16:38:37 CST; 10s ago
Docs: http://docs.docker.com
Process: 5166 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
Main PID: 5166 (code=exited, status=1/FAILURE)
Mar 15 16:38:36 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
Mar 15 16:38:36 localhost.localdomain dockerd-current[5166]: time="2018-03-15T16:38:36.570661801+08:00" level=info msg="libcontainerd... 5171"
Mar 15 16:38:37 localhost.localdomain dockerd-current[5166]: time="2018-03-15T16:38:37.585565695+08:00" level=warning msg="overlay2: the ba...
Mar 15 16:38:37 localhost.localdomain dockerd-current[5166]: Error starting daemon: SELinux is not supported with the overlay2 graph ...false)
Mar 15 16:38:37 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 15 16:38:37 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Mar 15 16:38:37 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Mar 15 16:38:37 localhost.localdomain systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
How to solve this issue?