3ck 3ck - 1 year ago 1088
Linux Question

Jenkins dead but pid file exists

I am running into an issue where a fresh install of Jenkins is not accessible. This is the error and OS details: Upon starting jenkins results in "OK" status message however if I run status-all | grep jenkins it results in:

jenkins dead but pid file exists

Running on Red Hat Enterprise Linux Server release 6.2 (Santiago) with Yum as package manager.

rpm -qa | grep java


Permissions are:

ls -la /var/lib/jenkins/
total 8
drwxr-xr-x 2 jenkins jenkins 4096 Aug 27 00:21 .
drwxr-xr-x. 29 root root 4096 Aug 27 14:47 ..

Has anyone resolved this before?

Answer Source

Change JENKINS_AJP_PORT="8009" (OR whatever value) to JENKINS_AJP_PORT="-1"

It will work for sure.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download