Jenkins fails to restart

40 views
Skip to first unread message

Josh Santangelo

unread,
Nov 12, 2016, 1:17:05 PM11/12/16
to Jenkins Users
Whenever I upgrade Jenkins or plugins and attempt to restart, it fails. I believe what's happening is it's not cleanly releasing its port when it shuts down, so it's already taken when it comes back up.

Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at winstone.Launcher.<init>(Launcher.java:152)
... 7 more


This is Jenkins 2.3 running as a service under Windows 7.

Baptiste Mathus

unread,
Nov 13, 2016, 9:37:14 AM11/13/16
to jenkins...@googlegroups.com
You're probably going to have to kill it manually. But also have a look at the logs as to why it didn't stop.

Also, you most probably do NOT want to use a weekly release. Better use an LTS for stability, and documented upgrade path (see https://wiki.jenkins-ci.org/display/JENKINS/Removing+and+disabling+plugins).

LTS is the Long Term Support release line, more here: https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3636d81e-dbab-4cd2-85ac-50e35ac39838%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages