Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7293

multiple hudson instances on one port

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • core
    • 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!

            Unassigned Unassigned
            axelheider Axel Heider
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: