Jenkins won't start on a fresh Oneiric install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jenkins (Ubuntu) |
Fix Released
|
Low
|
James Page |
Bug Description
I installed jenkins - it didn't start.
/var/log/
No messages in syslog related to jenkins
The service is stuck in stop/waiting state:
root@Ivy:~# service jenkins status
jenkins stop/waiting
root@Ivy:~# service jenkins stop
stop: Unknown instance:
root@Ivy:~# service jenkins start
jenkins start/running, process 2052
root@Ivy:~# service jenkins stop
stop: Unknown instance:
root@Ivy:~# service jenkins status
jenkins stop/waiting
I thought perhaps it was a java dependency that wasn't correctly defined, so I installed openjre, there was no change
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: jenkins 1.409.1-0ubuntu4.1
ProcVersionSign
Uname: Linux 3.0.0-13-
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Thu Dec 8 12:15:57 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: jenkins
UpgradeStatus: No upgrade log present (probably fresh install)
I found a fix, although not the root cause.
Apparently there is a problem with install order of jenkins and the java packages, or with the dependencies.
The problem was that in /etc/init/ jenkins. conf:
env JAVA_HOME= "/usr/lib/ jvm/default- java"
But the default-java symlink wasn't there.
To solve the problem I did the following (as root):
cd /usr/lib/jvm
ln -s java-6-openjdk default-java