In this post, I will be sharing a solution of error which is very common while starting up Jenkins.
Aug 03, 2018 1:41:25 AM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.IOException: Failed to start Jetty
at winstone.Launcher.<init>(Launcher.java:156)
at winstone.Launcher.main(Launcher.java:354)
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:312)
at Main.main(Main.java:136)
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:334)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:302)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:238)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:397)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at winstone.Launcher.<init>(Launcher.java:154)
... 7 more
Command used to start Jenkins :-
- Open Console.
- Go to the folder containing jenkins war.
- Run this command java -jar jenkins.war
- This will run Jenkins on local host with default port i.e. 8080
- Check by hitting the browser with this URL localhost:8080
Solution:-
- This is an issue of using same address again while running Jenkins, should be solved by changing the port from the one already in use. For this one can use httpPort as an argument while deploying Jenkins war on the machine, like this:-
java -jar jenkins.war --httpPort=8081
- Another way can be by killing the Jenkins server which is already running and start a new one.
Command- ps -ef | grep jenkins
kill -9 “Instance id”
Or CTRL+ SPACE to kill already running console.
Check the browser once again by hitting localhost:8080
cool.
LikeLike
Excellent beat ! I wish to apprentice while you amend your site, how can i subscribe for a weblog site?
LikeLike
Thank you so much for the great article, it was fluent and to the point. Cheers.
LikeLike
enjoyed you article. Thanks mate.
LikeLike
I have read so many posts on the topic of the blogger lovers however this post is really a pleasant piece of writing, keep it up.
LikeLike
I have read so many posts on the topic of the blogger lovers however this post is really a pleasant piece of writing, keep it up.
LikeLike
Excellent beat ! I wish to apprentice while you amend your site, how can i subscribe for a weblog site?
LikeLike
A precise & well-wrtitten post. Thanks heaps for sharing it.
LikeLike
I do not even know how I ended up here, but I thought this post was good. I don’t know who you are but certainly you’re going to a famous blogger if you aren’t already 😉 Cheers!
LikeLike
I visit each day a few sites and blogs to read content, but this blog offers quality based writing. I like the valuable information you provide in your articles. I’ll bookmark your weblog and check again here frequently. I’m quite certain I will learn lots of new stuff right here! Best of luck for the next!
LikeLike
I visit each day a few sites and blogs to read content, but this blog offers quality based writing. I like the valuable information you provide in your articles. I’ll bookmark your weblog and check again here frequently. I’m quite certain I will learn lots of new stuff right here! Best of luck for the next!
LikeLike
I have read so many posts on the topic of the blogger lovers however this post is really a pleasant piece of writing, keep it up.
LikeLike