Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed jenkins via sudo apt-get install jenkins. However, it doesn't start up. Tried to start it manually using sudo /etc/init.d/jenkins start. But it says this message when I try to start it that way:

start: Rejected send message, 1 matched rules; type="method_call", sender=":1.67" (uid=1000 pid=7970 comm="start jenkins ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")"

init.d method just says starting, but never starts...

How do I fix this / get jenkins to start up?

share|improve this question
add comment

2 Answers

Check the jenkins upstart configuration file /etc/init/jenkins.conf.

Verify that the path for JAVA_HOME is correct. On a fresh install, it may look like /usr/lib/jvm/java-default (or default-java), however, if you've used apt-get to install the java 6 jre, the directory is actually /usr/lib/jvm/java-6-sun

share|improve this answer
add comment

If you change JAVA_HOME to /usr in /etc/init/jenkins.conf then you can use whichever Java implementation you like.

You can see your altenative installations of java with (as root - add sudo if need be):

update-alternatives --list java

You can set your java alternative with:

update-alternatives --config java
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.