HI Team
Getting below error when we start the Jenkins.service
Jenkins.service is updated to auto start when server reboots, so after server reboot, not able to start the service, keep getting error msg.
udo systemctl start jenkins.service
Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.
[user@server opt]$ sudo journalctl -xe
Jan 31 08:46:56 server jenkins[13231]: at winstone.Launcher.main(Launcher.java:405)
Jan 31 08:46:56 server jenkins[13231]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Jan 31 08:46:56 server jenkins[13231]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:6
Jan 31 08:46:56 server jenkins[13231]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
Jan 31 08:46:56 server jenkins[13231]: at java.base/java.lang.reflect.Method.invoke(Method.java:566)
Jan 31 08:46:56 server jenkins[13231]: at executable.Main._main(Main.java:334)
Jan 31 08:46:56 server jenkins[13231]: at executable.Main.main(Main.java:116)
Jan 31 08:46:58 server systemd[1]: jenkins.service: main process exited, code=exited, status=1/FAILURE
Jan 31 08:46:58 server systemd[1]: Failed to start LSB: Jenkins Automation Server.
-- Subject: Unit jenkins.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit jenkins.service has failed.
journalctl -xe logs
Jan 30 19:12:54 server jenkins[30877]: 2023-01-31 01:12:54.340+0000 [id=1] SEVERE winstone.Logger#logInternal: Container startup failed
Jan 30 19:12:54 server jenkins[30877]: winstone.WinstoneException: Please set --httpsKeyStore
Jan 30 19:12:54 server jenkins[30877]: at winstone.AbstractSecuredConnectorFactory.configureSsl(AbstractSecuredConnectorFactory.java:88)
Jan 30 19:12:54 server jenkins[30877]: at winstone.HttpsConnectorFactory.start(HttpsConnectorFactory.java:54)
Jan 30 19:12:54 server jenkins[30877]: at winstone.Launcher.spawnListener(Launcher.java:255)
Jan 30 19:12:54 server jenkins[30877]: Caused: java.io.IOException: Failed to start a listener: winstone.HttpsConnectorFactory
Jan 30 19:12:54 server jenkins[30877]: at winstone.Launcher.spawnListener(Launcher.java:261)
Jan 30 19:12:54 server jenkins[30877]: at winstone.Launcher.<init>(Launcher.java:190)
Jan 30 19:12:54 server jenkins[30877]: at winstone.Launcher.main(Launcher.java:405)
Jan 30 19:12:54 server jenkins[30877]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Jan 30 19:12:54 server jenkins[30877]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Jan 30 19:12:54 server jenkins[30877]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Jan 30 19:12:54 server jenkins[30877]: at java.base/java.lang.reflect.Method.invoke(Method.java:566)
Jan 30 19:12:54 server jenkins[30877]: at executable.Main._main(Main.java:334)
Jan 30 19:12:54 server jenkins[30877]: at executable.Main.main(Main.java:116)
Jan 30 19:12:55 server sudo[30606]: pam_unix(sudo:session): session closed for user root
Jan 30 19:12:56 server systemd[1]: jenkins.service: main process exited, code=exited, status=1/FAILURE
Jan 30 19:12:56 server systemd[1]: Failed to start LSB: Jenkins Automation Server.
-- Subject: Unit jenkins.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit jenkins.service has failed.
--
-- The result is failed.
Jan 30 19:12:56 server systemd[1]: Unit jenkins.service entered failed state.
Jan 30 19:12:56 server systemd[1]: jenkins.service failed.
Jan 30 19:12:56 server systemd[1]: jenkins.service holdoff time over, scheduling restart.
Thanks and appreciate any help on this.