-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
CentOS Linux release 7.9.2009 (Core)
java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.x86_64
javapackages-tools-3.4.1-11.el7.noarch
java-1.8.0-openjdk-headless-1.8.0.292.b10-1.el7_9.x86_64
Upgrading to the latest release of the Jenkins RPM jenkins-2.306-1.1.noarch appears to be broken on my CentOS 7 server.
I get the error below in my jenkins.log file.
when I use yum to downgrade to the previous release jenkins-2.305-1.1.noarch then all is fine.
Please can you investigate?
CentOS Linux release 7.9.2009 (Core)
java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.x86_64
javapackages-tools-3.4.1-11.el7.noarch
java-1.8.0-openjdk-headless-1.8.0.292.b10-1.el7_9.x86_64
```
java.io.IOException: Failed to start a listener: winstone.HttpsConnectorFactory
at winstone.Launcher.spawnListener(Launcher.java:226)
at winstone.Launcher.<init>(Launcher.java:180)
at winstone.Launcher.main(Launcher.java:369)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at Main._main(Main.java:375)
at Main.main(Main.java:151)
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:792)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:57)
at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:71)
at java.security.KeyStore.load(KeyStore.java:1445)
at winstone.AbstractSecuredConnectorFactory.configureSsl(AbstractSecuredConnectorFactory.java:73)
at winstone.HttpsConnectorFactory.start(HttpsConnectorFactory.java:53)
at winstone.Launcher.spawnListener(Launcher.java:220)
... 8 more
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:790)
... 15 more
2021-08-13 08:58:00.102+0000 [id=1] SEVERE winstone.Logger#logInternal: Container startup failed
java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:790)
Caused: java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:792)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:57)
at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:71)
at java.security.KeyStore.load(KeyStore.java:1445)
at winstone.AbstractSecuredConnectorFactory.configureSsl(AbstractSecuredConnectorFactory.java:73)
at winstone.HttpsConnectorFactory.start(HttpsConnectorFactory.java:53)
at winstone.Launcher.spawnListener(Launcher.java:220)
Caused: java.io.IOException: Failed to start a listener: winstone.HttpsConnectorFactory
at winstone.Launcher.spawnListener(Launcher.java:226)
at winstone.Launcher.<init>(Launcher.java:180)
at winstone.Launcher.main(Launcher.java:369)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at Main._main(Main.java:375)
at Main.main(Main.java:151)
Running from: /usr/lib/jenkins/jenkins.war
```
- duplicates
-
JENKINS-66347 Keystore not working
-
- Resolved
-
The stack trace seems to indicate that a configuration setting that was being used in 2.305 is not being used in 2.306.
The Jenkins 2.306 rpm packaging has been simplified to be more like the packaging of the Debian distribution, using the program daemonize to place the java process in the background and detach it from the controlling terminal. I wonder if some setting in /etc/default/jenkins is no longer being passed to the Java process with the new changes. Special thanks to basil for that improvement.
Are there any settings in your system configuration that control access to a Java keystore or provide a password for a Java keystore?