-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
Windows, V1.373
When the hudosn service is started twice (can happen accidently) using "net start Hudson", binding the second Hudson to thr same port failes. However, the second Hudson does not get terminated, but keeps running in "head-less" mode. Could this be changed that the second Hudson terminates itslef, except if it is explicitly configured to run without any web interface?
hudson.out.log:
Running from: X:\hudson\hudson.war
[Winstone 2010/08/23 23:13:07] - Beginning extraction from war file
hudson home directory: X:\hudson
Using one-time self-signed certificate
[Winstone 2010/08/23 23:13:10] - AJP13 Listener started: port=8009
[Winstone 2010/08/23 23:13:10] - HTTP Listener started: port=8080
[Winstone 2010/08/23 23:13:10] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled
Green Balls!
Running from: X:\hudson\hudson.war
[Winstone 2010/08/24 23:14:28] - Beginning extraction from war file
hudson home directory: X:\hudson
[Winstone 2010/08/24 23:14:33] - Error during HTTP listener init or shutdown
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at winstone.HttpListener.getServerSocket(HttpListener.java:102)
at winstone.HttpListener.run(HttpListener.java:116)
at java.lang.Thread.run(Unknown Source)
[Winstone 2010/08/24 23:14:33] - HTTP Listener shutdown successfully
[Winstone 2010/08/24 23:14:33] - Error during AJP13 listener init or shutdown
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at winstone.ajp13.Ajp13Listener.run(Ajp13Listener.java:99)
at java.lang.Thread.run(Unknown Source)
[Winstone 2010/08/24 23:14:33] - AJP13 Listener shutdown successfully
Using one-time self-signed certificate
[Winstone 2010/08/24 23:14:33] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled
Green Balls!
- duplicates
-
JENKINS-5699 Terminate when HTTP port bind fails
- Resolved