Jenkins is stopped, but the PID file remains
The process ID management file is normally deleted when the process stops.
However, if you do something careless—like restarting the server itself while restarting Jenkins—Jenkins-ojisan gets angry.
Workaround 1
If the PID is simply left behind,
delete the Jenkins PID file.
1 | sudo rm /var/run/jenkins.pid |
Workaround 2
If the PID does not exist, it is likely a case where
you do not have access permissions to the following directories:
- /var/log/jenkins
- /var/cache/jenkins
Use chown / chmod to change the owner and permissions so that they become accessible.

