Failed to start Jenkins Continuous Integration Server

Hi All,

I tried to upgrade the SSH-Slave plugin to latest version to connect the master node with the worker node. When I clicked on restart Jenkins after the installation, the Jenkins stopped but did not start from the web. I went into terminal to start jenkins by ‘sudo systemctl start jenkins’ and Access Denied error came.

After that I took a backup of the Jenkins and tried to install the new Jenkins version for my redhat server. I followed the guide (Linux & Redhat Jenkins Packages) to install Jenkins. I tried installing multiple java versions, but journalctl -xe throwed error jenkins: invalid Java version:openjdk version “11” .

Some how the above invalid java error is now gone as I installed the java version from the organization provider and tried to install the Jenkins again.

Currently below error are coming -

[root@bnzcicd01 lib]# sudo systemctl status jenkins

jenkins.service - Jenkins Continuous Integration Server

Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; vendor preset: disabled)

Active: failed (Result: exit-code) since Wed 2023-06-28 18:15:01 CST; 10s ago

Process: 2149530 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)

Main PID: 2149530 (code=exited, status=1/FAILURE)

Jun 28 18:15:01 testserver systemd[1]: jenkins.service: Main process exited, code=exited, status=1/FAILURE

Jun 28 18:15:01 testserver systemd[1]: jenkins.service: Failed with result ‘exit-code’.

Jun 28 18:15:01 testserver systemd[1]: Failed to start Jenkins Continuous Integration Server.

Jun 28 18:15:01 testserver systemd[1]: jenkins.service: Service RestartSec=100ms expired, scheduling restart.

Jun 28 18:15:01 testserver systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 5.

Jun 28 18:15:01 testserver systemd[1]: Stopped Jenkins Continuous Integration Server.

Jun 28 18:15:01 testserver systemd[1]: jenkins.service: Start request repeated too quickly.

Jun 28 18:15:01 testserver systemd[1]: jenkins.service: Failed with result ‘exit-code’.

Jun 28 18:15:01 testserver systemd[1]: Failed to start Jenkins Continuous Integration Server.

journalctl -xe
– Subject: Unit failed

– Defined-By: systemd

– The unit jenkins.service has entered the ‘failed’ state with result ‘exit-code’.

Jun 28 18:15:01 testserver systemd[1]: Failed to start Jenkins Continuous Integration Server.

– Subject: Unit jenkins.service has failed

– Defined-By: systemd

– Unit jenkins.service has failed.

– The result is failed.

Jun 28 18:15:11 testserver sudo[2149557]: root : TTY=pts/2 ; PWD=/var/lib ; USER=root ; COMMAND=/bin/systemctl status jenkins

Jun 28 18:15:11 testserver sudo[2149557]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice

Jun 28 18:15:11 testserver sudo[2149557]: pam_unix(sudo:session): session opened for user root by root(uid=0)

Jun 28 18:15:11 testserver sudo[2149557]: pam_unix(sudo:session): session closed for user root

Jun 28 18:15:21 testserver sshd[2149569]: Accepted password for root from 9.125.75.30 port 57558 ssh2

Jun 28 18:15:21 testserver systemd[1]: Started Session 186 of user root.

– Subject: Unit session-186.scope has finished start-up

– Defined-By: systemd

– Unit session-186.scope has finished starting up.

– The start-up result is done.

Jun 28 18:15:21 testserver systemd-logind[1169]: New session 186 of user root.

– Subject: A new session 186 has been created for user root

– Defined-By: systemd

– A new session with the ID 186 has been created for the user root.

– The leading process of the session is 2149569.

Jun 28 18:15:21 testserver sshd[2149569]: pam_unix(sshd:session): session opened for user root by (uid=0)

Jun 28 18:15:22 testserver sshd[2149574]: Received disconnect from 9.125.75.30 port 57558:11: disconnected by user

Jun 28 18:15:22 testserver sshd[2149574]: Disconnected from user root 9.125.75.30 port 57558

Jun 28 18:15:22 testserver sshd[2149569]: pam_unix(sshd:session): session closed for user root

Jun 28 18:15:22 testserver systemd[1]: session-186.scope: Succeeded.

– Subject: Unit succeeded

– Defined-By: systemd

– The unit session-186.scope has successfully entered the ‘dead’ state.

Jun 28 18:15:22 testserver systemd-logind[1169]: Session 186 logged out. Waiting for processes to exit.

Jun 28 18:15:22 testserver systemd-logind[1169]: Removed session 186.

– Subject: Session 186 has been terminated

– Defined-By: systemd

– A session with the ID 186 has been terminated.

[root@bnzcicd01 lib]# systemctl restart jenkins

Job for jenkins.service failed because the control process exited with error code.

See “systemctl status jenkins.service” and “journalctl -xe” for details.

[root@bnzcicd01 lib]# java -version

java version “11.0.19” 2023-04-18

IBM Semeru Runtime Certified Edition 11.0.19.0 (build 11.0.19+7)

Eclipse OpenJ9 VM 11.0.19.0 (build openj9-0.38.0, JRE 11 Linux amd64-64-Bit Compressed References 20230519_626 (JIT enabled, AOT enabled)

OpenJ9 - d57d05932

OMR - 855813495

JCL - 61e8703a10 based on jdk-11.0.19+7)

Please look into the logs and let me know if anyone have the solution

The Jenkins platform SIG stopped all efforts with the OpenJ9 virtual machine (IBM Semeru) about 2 years ago. We didn’t have active contributors that were willing to test it or maintain it.

The hotspot virtual machine is available from Eclipse Temurin for Java 11 on amd64, aarch64, s390x, and ppc64le. The hotspot virtual machine is regularly tested with Jenkins on multiple architectures.
Use the hotspot virtual machine, not the OpenJ9 virtual machine.

1 Like

I tried by installing open JDK from official website, same issue persisted.
Currently I installed java version 17 from IBM Developer .

The issue is still occurring .

The current java version I am using

Blockquote
[root@bnzcicd01 ~]# java -version
java version “17.0.7” 2023-04-18
IBM Semeru Runtime Certified Edition 17.0.7.0 (build 17.0.7+7)
Eclipse OpenJ9 VM 17.0.7.0 (build openj9-0.38.0, JRE 17 Linux amd64-64-Bit Compressed References 20230418_417 (JIT enabled, AOT enabled)
OpenJ9 - d57d05932
OMR - 855813495
JCL - 7a1e0864e99 based on jdk-17.0.7+7)

[root@bnzcicd01 ~]# journalctl -xe

– Subject: Unit succeeded

– Defined-By: systemd

– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal

– The unit sysstat-collect.service has successfully entered the ‘dead’ state.

Jun 29 01:20:09 bnzcicd01.cn.ibm.com systemd[1]: Started system activity accounting tool.

– Subject: Unit sysstat-collect.service has finished start-up

– Defined-By: systemd

– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal

– Unit sysstat-collect.service has finished starting up.

– The start-up result is done.

Jun 29 01:25:00 bnzcicd01.cn.ibm.com systemd[1]: Starting Check pmlogger instances are running…

– Subject: Unit pmlogger_check.service has begun start-up

– Defined-By: systemd

– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal

– Unit pmlogger_check.service has begun starting up.

Jun 29 01:25:00 bnzcicd01.cn.ibm.com systemd[1]: Started Check pmlogger instances are running.

– Subject: Unit pmlogger_check.service has finished start-up

– Defined-By: systemd

– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal

– Unit pmlogger_check.service has finished starting up.

– The start-up result is done.

Jun 29 01:25:01 bnzcicd01.cn.ibm.com systemd[1]: pmlogger_check.service: Succeeded.

– Subject: Unit succeeded

– Defined-By: systemd

– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal

– The unit pmlogger_check.service has successfully entered the ‘dead’ state.

Jun 29 01:25:20 bnzcicd01.cn.ibm.com systemd[1]: Starting Check and migrate non-primary pmlogger farm instances…

– Subject: Unit pmlogger_farm_check.service has begun start-up

– Defined-By: systemd

– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal

– Unit pmlogger_farm_check.service has begun starting up.

Jun 29 01:25:20 bnzcicd01.cn.ibm.com systemd[1]: Started Check and migrate non-primary pmlogger farm instances.

– Subject: Unit pmlogger_farm_check.service has finished start-up

– Defined-By: systemd

– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal

– Unit pmlogger_farm_check.service has finished starting up.

– The start-up result is done.

Jun 29 01:25:20 bnzcicd01.cn.ibm.com systemd[1]: pmlogger_farm_check.service: Succeeded.

– Subject: Unit succeeded

– Defined-By: systemd

– Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal

– The unit pmlogger_farm_check.service has successfully entered the ‘dead’ state.

That’s the Eclipse OpenJ9 virtual machine. The Jenkins project does not test with the Eclipse OpenJ9 virtual machine. We test with the Eclipse Temurin hotspot virtual machine.

Hi,
I am unable to run Jenkins on Linux please check below log

Click here to expand
------------------------linux version--------------------------------------
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
------------------java version---------------------------------------
openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment (build 17.0.8.1+1-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 17.0.8.1+1-Ubuntu-0ubuntu120.04, mixed mode, sharing)
----------------------------------------error log-------------------------------------------
Sep 14 04:29:37 mentorox jenkins[2438]: Running from: /usr/share/java/jenkins.war
Sep 14 04:29:37 mentorox jenkins[2438]: 2023-09-14 04:29:37.847+0000 [id=1]        INFO        winstone.Logger#logInternal: Beginning extraction from war file
Sep 14 04:29:37 mentorox jenkins[2438]: 2023-09-14 04:29:37.969+0000 [id=1]        WARNING        o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
Sep 14 04:29:38 mentorox jenkins[2438]: 2023-09-14 04:29:38.049+0000 [id=1]        INFO        org.eclipse.jetty.server.Server#doStart: jetty-10.0.15; built: 2023-04-11T17:25:14.480Z; git: 68017dbd00236bb7e187330d7585a059610f661d; jvm 17.0.8.1+1-Ubuntu-0ubuntu120.04
Sep 14 04:29:38 mentorox jenkins[2438]: 2023-09-14 04:29:38.215+0000 [id=1]        SEVERE        o.e.jetty.xml.XmlParser$Handler#fatalError: Fatal SAX Parse Issue @null line:1 col:1 : org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
Sep 14 04:29:38 mentorox jenkins[2438]: 2023-09-14 04:29:38.216+0000 [id=1]        WARNING        o.e.jetty.webapp.WebAppContext#doStart: Failed startup of context w.@67d48005{/,file:///var/cache/jenkins/war/,STOPPED}{/var/cache/jenkins/war}
Sep 14 04:29:38 mentorox jenkins[2438]: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1465)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1013)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:542)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:889)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:326)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:202)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:251)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:41)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:243)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.MetaData.setWebDescriptor(MetaData.java:224)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:62)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.Configurations.preConfigure(Configurations.java:496)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:509)
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.HostConfiguration$1.preConfigure(HostConfiguration.java:164)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:531)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.server.Server.start(Server.java:470)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.server.Server.doStart(Server.java:415)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.Launcher.(Launcher.java:205)
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.Launcher.main(Launcher.java:496)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/java.lang.reflect.Method.invoke(Method.java:568)
Sep 14 04:29:38 mentorox jenkins[2438]:         at executable.Main.main(Main.java:347)
Sep 14 04:29:38 mentorox jenkins[2438]: 2023-09-14 04:29:38.229+0000 [id=1]        INFO        org.eclipse.jetty.server.Server#doStop: Stopped Server@7ff2a664{STOPPING}[10.0.15,sto=0]
Sep 14 04:29:38 mentorox jenkins[2438]: 2023-09-14 04:29:38.230+0000 [id=1]        INFO        o.e.j.s.handler.ContextHandler#doStop: Stopped w.@67d48005{/,null,STOPPED}{/var/cache/jenkins/war}
Sep 14 04:29:38 mentorox jenkins[2438]: 2023-09-14 04:29:38.231+0000 [id=1]        INFO        winstone.Logger#logInternal: Jetty shutdown successfully
Sep 14 04:29:38 mentorox jenkins[2438]: java.io.IOException: Failed to start Jetty
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.Launcher.(Launcher.java:209)
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.Launcher.main(Launcher.java:496)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/java.lang.reflect.Method.invoke(Method.java:568)
Sep 14 04:29:38 mentorox jenkins[2438]:         at executable.Main.main(Main.java:347)
Sep 14 04:29:38 mentorox jenkins[2438]: Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1465)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1013)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:542)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:889)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:326)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:202)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:251)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:41)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:243)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.MetaData.setWebDescriptor(MetaData.java:224)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:62)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.Configurations.preConfigure(Configurations.java:496)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:509)
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.HostConfiguration$1.preConfigure(HostConfiguration.java:164)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:531)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.server.Server.start(Server.java:470)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.server.Server.doStart(Server.java:415)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.Launcher.(Launcher.java:205)
Sep 14 04:29:38 mentorox jenkins[2438]:         ... 6 more
Sep 14 04:29:38 mentorox jenkins[2438]: 2023-09-14 04:29:38.233+0000 [id=1]        SEVERE        winstone.Logger#logInternal: Container startup failed
Sep 14 04:29:38 mentorox jenkins[2438]: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1465)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1013)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:542)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:889)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:326)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:202)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:251)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:41)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:243)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.MetaData.setWebDescriptor(MetaData.java:224)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:62)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.Configurations.preConfigure(Configurations.java:496)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:509)
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.HostConfiguration$1.preConfigure(HostConfiguration.java:164)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:531)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.server.Server.start(Server.java:470)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.server.Server.doStart(Server.java:415)
Sep 14 04:29:38 mentorox jenkins[2438]:         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.Launcher.(Launcher.java:205)
Sep 14 04:29:38 mentorox jenkins[2438]: Caused: java.io.IOException: Failed to start Jetty
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.Launcher.(Launcher.java:209)
Sep 14 04:29:38 mentorox jenkins[2438]:         at winstone.Launcher.main(Launcher.java:496)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Sep 14 04:29:38 mentorox jenkins[2438]:         at java.base/java.lang.reflect.Method.invoke(Method.java:568)
Sep 14 04:29:38 mentorox jenkins[2438]:         at executable.Main.main(Main.java:347)
Sep 14 04:29:38 mentorox systemd[1]: jenkins.service: Main process exited, code=exited, status=1/FAILURE
------------------------------------------------------------------------------------------------------

Hello and welcome to this community, @adeelahmed11. :wave:

How did you install Jenkins on your machine? What is the version of Jenkins you’re running?
Could you please download the latest LTS war and try it on the command line with java -jar jenkins.war ?
Can you install the Temurin JDK and see if it gives a different output?
You can have several JDKs installed at the same time on your machine, I give a few hints about it in this blog post: A glimpse of the future .

1 Like

Hi,
Thanks for the replay i can run on CLI with the java command and it runs successfully.
I have only one java installed openjdk version “17.0.8.1” 2023-08-24
I am using the latest Version 2.414.1
but its not starting as a service/startup

Regards,

1 Like

Hi
I just had same issue and was able to solve it by changing the http adress to download the STABLE debian version of Jenkins.

  1. Weekly Release (unstable):
    https://pkg.jenkins.io/debian
  2. Stable Release:
    https://pkg.jenkins.io/debian-stable
    follow these instructions Debian Jenkins Packages

Thanks for the tip, @713thadler ! :+1: