How to fix: jenkins dead but pid file exists

In the log /var/log/jenkins/jenkins.log, it shows:

SEVERE: Container startup failed Failed to start a listener: winstone.HttpsConnectorFactory
at winstone.Launcher.spawnListener(
at winstone.Launcher.<init>(
at winstone.Launcher.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at Main._main(
at Main.main(
Caused by: java.lang.NoClassDefFoundError: sun/security/x509/CertAndKeyGen
at winstone.HttpsConnectorFactory.start(
at winstone.Launcher.spawnListener(
... 8 more
Caused by: java.lang.ClassNotFoundException:
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 10 more

If you switch to JDK 7, the problem disappears.

Check the status of this issue: Jenkins 1.586 not starting up using Java8


System requirement
Jenkins requires Java7 or above to function. Java8 is recommended. Jenkins requires a fair amount of memory to operate well. Smaller installations should start around 256MB-1GB.

You can choose to run Jenkins on http, and then connect to Jenkins by SSH tunnel.


Popular posts from this blog

Check MySQL query history from command line