Job for jenkins.service failed because the control process exited with error code.

root@xiakaibi-PC:~# service jenkins restart
Job for jenkins.service failed because the control process exited with error code.
See "systemctl status jenkins.service" and "journalctl -xe" for details.

 

root@xiakaibi-PC:~# systemctl status jenkins.service
● jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-09-17 16:52:59 CST; 1min 32s ago
Docs: man:systemd-sysv-generator(8)
Process: 28888 ExecStart=/etc/init.d/jenkins start (code=exited, status=1/FAILURE)

Sep 17 16:52:59 xiakaibi-PC systemd[1]: Starting LSB: Start Jenkins at boot time...
Sep 17 16:52:59 xiakaibi-PC jenkins[28888]: ERROR: No Java executable found in current PATH: /bin:/usr/bin:/sbin:/usr/sbi
Sep 17 16:52:59 xiakaibi-PC jenkins[28888]: If you actually have java installed on the system make sure the executable is
September 17 16:52:59 xiakaibi-PC systemd[1]: jenkins.service: Control process exited, code=exited status=1
September 17 16:52:59 xiakaibi-PC systemd[1]: Failed to start LSB: Start Jenkins at boot time.
September 17 16:52:59 xiakaibi-PC systemd[1]: jenkins.service: Unit entered failed state.
September 17 16:52:59 xiakaibi-PC systemd[1]: jenkins.service: Failed with result'exit-code'.

 

Solution
It means that the java file is not found, you need to copy the java file address by yourself

Open the etc/init.d/jenkins file, you can see that the path specified in the header does not include java_home. It should be the first time that the system reads the path when jdk is not installed. Modify the configuration and try again

 

 

Restart jenkins:

sudo service jenkins restart

 

Reprinted at: https://www.cnblogs.com/python-xiakaibi/p/11535926.html

Intelligent Recommendation

Job for mysqld.service failed because the control process exited with error code

I encountered a problem during the startup mysql today.Job for mysqld.service failed because the control process exited with error codeThe error is recorded as follows. premise Before starting, in/etc...

Job for named.service failed because the control process exited with error code.

Install and configure the bind server: yum install bind-chroot           -y Three key files: Main configuration file (/etc/named.conf) Regional configuration file (/etc/n...

Job for network.service failed because the control process exited with error code

Job for network.service failed because the control process exited with error code background Open a centOS7 in vmware, it can be used at the beginning. After two days, turn on the virtual machine and ...

Job for httpd.service failed because the control process exited with error code.

Description Installed Ambari + HDP (CentOS 8, Alibaba Cloud Server), made a local yum source, after installing httpd, an error is reported Job for httpd.service failed because the control process exit...

Job for nginx.service failed because the control process exited with error code

Starting nginx package error "Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for de...

More Recommendation

Job for docker.service failed because the control process exited with error code...

Restarting docker after modifying the /etc/docker/daemon.json file raises the following exception At the time, my /etc/docker/daemon.json file was as follows solution: Delete the comment, and then res...

Job for nginx.service failed because the control process exited with error code. Solution

The error message is as follows Obviously this means that port 80 has been occupied, indicating that there is a corresponding process running, just find the process and close it! In the above picture,...

Dockers Job for docker.service failed because the control process exited with error code

Zero, problem description Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for detai...

[Mysql] -Job for mysqld.service failed Because The Control Process EXITED with ERROR CODE.

problem Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details. The above is t...

Job for mysqld.service failed because the control process exited with error code...

Order: All is very busy, just make it clear. systemctl start mysqld Start an error Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.s...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top