Jenkins -How to resolve “Shutting down a Jenkins instance that was still starting up” on windows machine
up vote
0
down vote
favorite
Getting Error while running Jenkins on command prompt using command: Java -jar jenkis.war .. Tried several approaches but did not workout. Could you please help me on this.
Error: Shutting down a Jenkins instance that was still starting up
===========================================================================
INFO: Shutting down a Jenkins instance that was still starting up
java.lang.Throwable: reason
at hudson.WebAppMain.contextDestroyed(WebAppMain.java:388)
at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:898)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:545)
at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:873)
at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:355)
at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1521)
at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1485)
at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:927)
at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:271)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:569)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:144)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:124)
at org.eclipse.jetty.server.Server.doStop(Server.java:489)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at winstone.Launcher.shutdown(Launcher.java:307)
at winstone.Launcher.<init>(Launcher.java:167)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:312)
at Main.main(Main.java:136)
Apr 20, 2018 12:30:08 PM org.eclipse.jetty.server.handler.ContextHandler doStop
INFO: Stopped w.@7807ac2c{/,null,UNAVAILABLE}{C:UsersQA Team.jenkinswar}
Exception in thread "Jenkins initialization thread"
jenkins
add a comment |
up vote
0
down vote
favorite
Getting Error while running Jenkins on command prompt using command: Java -jar jenkis.war .. Tried several approaches but did not workout. Could you please help me on this.
Error: Shutting down a Jenkins instance that was still starting up
===========================================================================
INFO: Shutting down a Jenkins instance that was still starting up
java.lang.Throwable: reason
at hudson.WebAppMain.contextDestroyed(WebAppMain.java:388)
at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:898)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:545)
at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:873)
at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:355)
at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1521)
at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1485)
at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:927)
at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:271)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:569)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:144)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:124)
at org.eclipse.jetty.server.Server.doStop(Server.java:489)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at winstone.Launcher.shutdown(Launcher.java:307)
at winstone.Launcher.<init>(Launcher.java:167)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:312)
at Main.main(Main.java:136)
Apr 20, 2018 12:30:08 PM org.eclipse.jetty.server.handler.ContextHandler doStop
INFO: Stopped w.@7807ac2c{/,null,UNAVAILABLE}{C:UsersQA Team.jenkinswar}
Exception in thread "Jenkins initialization thread"
jenkins
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Getting Error while running Jenkins on command prompt using command: Java -jar jenkis.war .. Tried several approaches but did not workout. Could you please help me on this.
Error: Shutting down a Jenkins instance that was still starting up
===========================================================================
INFO: Shutting down a Jenkins instance that was still starting up
java.lang.Throwable: reason
at hudson.WebAppMain.contextDestroyed(WebAppMain.java:388)
at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:898)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:545)
at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:873)
at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:355)
at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1521)
at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1485)
at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:927)
at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:271)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:569)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:144)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:124)
at org.eclipse.jetty.server.Server.doStop(Server.java:489)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at winstone.Launcher.shutdown(Launcher.java:307)
at winstone.Launcher.<init>(Launcher.java:167)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:312)
at Main.main(Main.java:136)
Apr 20, 2018 12:30:08 PM org.eclipse.jetty.server.handler.ContextHandler doStop
INFO: Stopped w.@7807ac2c{/,null,UNAVAILABLE}{C:UsersQA Team.jenkinswar}
Exception in thread "Jenkins initialization thread"
jenkins
Getting Error while running Jenkins on command prompt using command: Java -jar jenkis.war .. Tried several approaches but did not workout. Could you please help me on this.
Error: Shutting down a Jenkins instance that was still starting up
===========================================================================
INFO: Shutting down a Jenkins instance that was still starting up
java.lang.Throwable: reason
at hudson.WebAppMain.contextDestroyed(WebAppMain.java:388)
at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:898)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:545)
at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:873)
at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:355)
at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1521)
at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1485)
at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:927)
at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:271)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:569)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:144)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:124)
at org.eclipse.jetty.server.Server.doStop(Server.java:489)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at winstone.Launcher.shutdown(Launcher.java:307)
at winstone.Launcher.<init>(Launcher.java:167)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:312)
at Main.main(Main.java:136)
Apr 20, 2018 12:30:08 PM org.eclipse.jetty.server.handler.ContextHandler doStop
INFO: Stopped w.@7807ac2c{/,null,UNAVAILABLE}{C:UsersQA Team.jenkinswar}
Exception in thread "Jenkins initialization thread"
jenkins
jenkins
edited Apr 20 at 8:10
Peter Haddad
19.2k83752
19.2k83752
asked Apr 20 at 7:32
Sanjeev
111
111
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
0
down vote
To resolve this issue, Please follow the below steps.
- Reach out to install folder of Jenkins: C:Program Files (x86)Jenkins
- Open jenkins.xml file in note pad.
- To change the port -Search-> --httpPort=8080 and change 8080 to 8383.
- Open command prompt and run find your system IPv4 Address. (E.g.- 172.161.46.173)
- Paste IP along with jenkins port into browser (E.g.- 172.161.46.173/8383) and hit Enter.
- It ask for Administration password:
Get that password from: C:Program Files (x86)JenkinssecretsinitialAdminPassword file - Again It asked for plugin installation. Select the default.
- Once installation done - Click on continue.
- Now, Set username and password - Here, You are good to go and use jenkins.

I am doung the Guided Tour and have no dictionary named "C:Program Files (x86)Jenkins"
– Jens
Oct 19 at 9:28
add a comment |
up vote
0
down vote
The root cause is that the requested http port is used by a different application if you started jenkins with command line: java -jar jenkins.war --httpPort=8080 change it to e.g.: java -jar jenkins.war --httpPort=8383
add a comment |
up vote
0
down vote
the root cause is default port 8080 is already being used, so in order to use it again, you need to kill PID used by that port, and then you can run again.
C:Program FilesJavajdk1.8.0_191bin>netstat -ano|find "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 5256
TCP [::]:8080 [::]:0 LISTENING 5256
C:Program FilesJavajdk1.8.0_191bin>taskkill /PID 5256 /F
SUCCESS: The process with PID 5256 has been terminated.
then you can start again
New contributor
Rahul Modi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
To resolve this issue, Please follow the below steps.
- Reach out to install folder of Jenkins: C:Program Files (x86)Jenkins
- Open jenkins.xml file in note pad.
- To change the port -Search-> --httpPort=8080 and change 8080 to 8383.
- Open command prompt and run find your system IPv4 Address. (E.g.- 172.161.46.173)
- Paste IP along with jenkins port into browser (E.g.- 172.161.46.173/8383) and hit Enter.
- It ask for Administration password:
Get that password from: C:Program Files (x86)JenkinssecretsinitialAdminPassword file - Again It asked for plugin installation. Select the default.
- Once installation done - Click on continue.
- Now, Set username and password - Here, You are good to go and use jenkins.

I am doung the Guided Tour and have no dictionary named "C:Program Files (x86)Jenkins"
– Jens
Oct 19 at 9:28
add a comment |
up vote
0
down vote
To resolve this issue, Please follow the below steps.
- Reach out to install folder of Jenkins: C:Program Files (x86)Jenkins
- Open jenkins.xml file in note pad.
- To change the port -Search-> --httpPort=8080 and change 8080 to 8383.
- Open command prompt and run find your system IPv4 Address. (E.g.- 172.161.46.173)
- Paste IP along with jenkins port into browser (E.g.- 172.161.46.173/8383) and hit Enter.
- It ask for Administration password:
Get that password from: C:Program Files (x86)JenkinssecretsinitialAdminPassword file - Again It asked for plugin installation. Select the default.
- Once installation done - Click on continue.
- Now, Set username and password - Here, You are good to go and use jenkins.

I am doung the Guided Tour and have no dictionary named "C:Program Files (x86)Jenkins"
– Jens
Oct 19 at 9:28
add a comment |
up vote
0
down vote
up vote
0
down vote
To resolve this issue, Please follow the below steps.
- Reach out to install folder of Jenkins: C:Program Files (x86)Jenkins
- Open jenkins.xml file in note pad.
- To change the port -Search-> --httpPort=8080 and change 8080 to 8383.
- Open command prompt and run find your system IPv4 Address. (E.g.- 172.161.46.173)
- Paste IP along with jenkins port into browser (E.g.- 172.161.46.173/8383) and hit Enter.
- It ask for Administration password:
Get that password from: C:Program Files (x86)JenkinssecretsinitialAdminPassword file - Again It asked for plugin installation. Select the default.
- Once installation done - Click on continue.
- Now, Set username and password - Here, You are good to go and use jenkins.

To resolve this issue, Please follow the below steps.
- Reach out to install folder of Jenkins: C:Program Files (x86)Jenkins
- Open jenkins.xml file in note pad.
- To change the port -Search-> --httpPort=8080 and change 8080 to 8383.
- Open command prompt and run find your system IPv4 Address. (E.g.- 172.161.46.173)
- Paste IP along with jenkins port into browser (E.g.- 172.161.46.173/8383) and hit Enter.
- It ask for Administration password:
Get that password from: C:Program Files (x86)JenkinssecretsinitialAdminPassword file - Again It asked for plugin installation. Select the default.
- Once installation done - Click on continue.
- Now, Set username and password - Here, You are good to go and use jenkins.

edited Apr 20 at 11:59
Ivan
3,38392240
3,38392240
answered Apr 20 at 7:42
Sanjeev
111
111
I am doung the Guided Tour and have no dictionary named "C:Program Files (x86)Jenkins"
– Jens
Oct 19 at 9:28
add a comment |
I am doung the Guided Tour and have no dictionary named "C:Program Files (x86)Jenkins"
– Jens
Oct 19 at 9:28
I am doung the Guided Tour and have no dictionary named "C:Program Files (x86)Jenkins"
– Jens
Oct 19 at 9:28
I am doung the Guided Tour and have no dictionary named "C:Program Files (x86)Jenkins"
– Jens
Oct 19 at 9:28
add a comment |
up vote
0
down vote
The root cause is that the requested http port is used by a different application if you started jenkins with command line: java -jar jenkins.war --httpPort=8080 change it to e.g.: java -jar jenkins.war --httpPort=8383
add a comment |
up vote
0
down vote
The root cause is that the requested http port is used by a different application if you started jenkins with command line: java -jar jenkins.war --httpPort=8080 change it to e.g.: java -jar jenkins.war --httpPort=8383
add a comment |
up vote
0
down vote
up vote
0
down vote
The root cause is that the requested http port is used by a different application if you started jenkins with command line: java -jar jenkins.war --httpPort=8080 change it to e.g.: java -jar jenkins.war --httpPort=8383
The root cause is that the requested http port is used by a different application if you started jenkins with command line: java -jar jenkins.war --httpPort=8080 change it to e.g.: java -jar jenkins.war --httpPort=8383
answered Oct 19 at 10:13
Jens
804816
804816
add a comment |
add a comment |
up vote
0
down vote
the root cause is default port 8080 is already being used, so in order to use it again, you need to kill PID used by that port, and then you can run again.
C:Program FilesJavajdk1.8.0_191bin>netstat -ano|find "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 5256
TCP [::]:8080 [::]:0 LISTENING 5256
C:Program FilesJavajdk1.8.0_191bin>taskkill /PID 5256 /F
SUCCESS: The process with PID 5256 has been terminated.
then you can start again
New contributor
Rahul Modi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
the root cause is default port 8080 is already being used, so in order to use it again, you need to kill PID used by that port, and then you can run again.
C:Program FilesJavajdk1.8.0_191bin>netstat -ano|find "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 5256
TCP [::]:8080 [::]:0 LISTENING 5256
C:Program FilesJavajdk1.8.0_191bin>taskkill /PID 5256 /F
SUCCESS: The process with PID 5256 has been terminated.
then you can start again
New contributor
Rahul Modi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
up vote
0
down vote
the root cause is default port 8080 is already being used, so in order to use it again, you need to kill PID used by that port, and then you can run again.
C:Program FilesJavajdk1.8.0_191bin>netstat -ano|find "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 5256
TCP [::]:8080 [::]:0 LISTENING 5256
C:Program FilesJavajdk1.8.0_191bin>taskkill /PID 5256 /F
SUCCESS: The process with PID 5256 has been terminated.
then you can start again
New contributor
Rahul Modi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
the root cause is default port 8080 is already being used, so in order to use it again, you need to kill PID used by that port, and then you can run again.
C:Program FilesJavajdk1.8.0_191bin>netstat -ano|find "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 5256
TCP [::]:8080 [::]:0 LISTENING 5256
C:Program FilesJavajdk1.8.0_191bin>taskkill /PID 5256 /F
SUCCESS: The process with PID 5256 has been terminated.
then you can start again
New contributor
Rahul Modi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 days ago
Raoslaw Szamszur
58414
58414
New contributor
Rahul Modi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 days ago
Rahul Modi
1
1
New contributor
Rahul Modi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Rahul Modi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Rahul Modi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49936385%2fjenkins-how-to-resolve-shutting-down-a-jenkins-instance-that-was-still-startin%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password