MOTOSHARE 🚗🏍️

Rent Bikes & Cars Directly from Owners

Motoshare connects vehicle owners with people who need bikes and cars on rent. Owners earn from idle vehicles, and renters get flexible ride options.

Visit Motoshare

Jenkins Error: Failed to start LSB: Jenkins Automation Server

Uncategorized

Error

-- Unit jenkins.service has begun starting up.
Aug 04 20:02:19 ip-10-157-160-63.ec2.internal runuser[14657]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)
Aug 04 20:02:22 ip-10-157-160-63.ec2.internal runuser[14657]: pam_unix(runuser:session): session closed for user jenkins
Aug 04 20:02:22 ip-10-157-160-63.ec2.internal jenkins[14652]: Starting Jenkins [FAILED]
Aug 04 20:02:22 ip-10-157-160-63.ec2.internal systemd[1]: jenkins.service: control process exited, code=exited status=1
Aug 04 20:02:22 ip-10-157-160-63.ec2.internal systemd[1]: Failed to start LSB: Jenkins Automation 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.

Solution

To fix the issue manually install Java Runtime Environment:

JDK version 9:

sudo apt install openjdk-9-jre
JDK version 8:

sudo apt install openjdk-8-jre
Open Jenkins configuration file:

sudo vi /etc/init.d/jenkins
Finally, append path to the new java executable (line 16):

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/lib/jvm/java-8-openjdk-amd64/bin/
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x