hudson.util.IOException2: Failed to wait for the Hub launch to complete

Jenkins JIRA | fbaboschi | 6 years ago
  1. 0

    I have 2 independent Hudson servers on the same machine, in different folders, using different ports (3128 and 3129), and I want to launch them both. When I launch the first, everything works ok. When I launch the second, after about 1 minute of "Please wait until Hudson initializes" messages, I get this error instead of having it initialized. I tried starting them alternatively, it's always when the other Hudson is started that this happens. hudson.util.IOException2: Failed to wait for the Hub launch to complete at hudson.plugins.selenium.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:103) at hudson.model.Hudson.(Hudson.java:631) at hudson.model.Hudson.(Hudson.java:541) at hudson.WebAppMain$2.run(WebAppMain.java:222) Caused by: java.util.concurrent.ExecutionException: java.net.BindException: Address already in use: JVM_Bind at hudson.remoting.Channel$1.adapt(Channel.java:584) at hudson.remoting.Channel$1.adapt(Channel.java:579) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.plugins.selenium.PluginImpl.waitForHubLaunch(PluginImpl.java:106) at hudson.plugins.selenium.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:101) ... 3 more Caused by: 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.(Unknown Source) at java.net.ServerSocket.(Unknown Source) at org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketConnector.java:78) at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:72) at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:251) at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:145) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.Server.doStart(Server.java:239) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at hudson.plugins.selenium.HubLauncher.start(HubLauncher.java:70) at hudson.plugins.selenium.HubLauncher.call(HubLauncher.java:45) at hudson.plugins.selenium.HubLauncher.call(HubLauncher.java:25) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) It started happening since around build 1.350 (but I don't remember exactly which).

    Jenkins JIRA | 6 years ago | fbaboschi
    hudson.util.IOException2: Failed to wait for the Hub launch to complete
  2. 0

    I have 2 independent Hudson servers on the same machine, in different folders, using different ports (3128 and 3129), and I want to launch them both. When I launch the first, everything works ok. When I launch the second, after about 1 minute of "Please wait until Hudson initializes" messages, I get this error instead of having it initialized. I tried starting them alternatively, it's always when the other Hudson is started that this happens. hudson.util.IOException2: Failed to wait for the Hub launch to complete at hudson.plugins.selenium.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:103) at hudson.model.Hudson.(Hudson.java:631) at hudson.model.Hudson.(Hudson.java:541) at hudson.WebAppMain$2.run(WebAppMain.java:222) Caused by: java.util.concurrent.ExecutionException: java.net.BindException: Address already in use: JVM_Bind at hudson.remoting.Channel$1.adapt(Channel.java:584) at hudson.remoting.Channel$1.adapt(Channel.java:579) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.plugins.selenium.PluginImpl.waitForHubLaunch(PluginImpl.java:106) at hudson.plugins.selenium.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:101) ... 3 more Caused by: 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.(Unknown Source) at java.net.ServerSocket.(Unknown Source) at org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketConnector.java:78) at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:72) at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:251) at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:145) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.Server.doStart(Server.java:239) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at hudson.plugins.selenium.HubLauncher.start(HubLauncher.java:70) at hudson.plugins.selenium.HubLauncher.call(HubLauncher.java:45) at hudson.plugins.selenium.HubLauncher.call(HubLauncher.java:25) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) It started happening since around build 1.350 (but I don't remember exactly which).

    Jenkins JIRA | 6 years ago | fbaboschi
    hudson.util.IOException2: Failed to wait for the Hub launch to complete
  3. 0

    Open Build CI Server for Stable Release

    adempiere | 5 years ago | red1
    hudson.util.IOException2: Failed to wait for the Hub launch to complete
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why doesn't the selenium grid hub free up it's port on exit?

    Google Groups | 7 years ago | tom ketchup
    java.net.BindException: Address already in use: JVM_Bind
  6. 0

    Youtube Data API v3 oAuth2 failing to change permissions

    Stack Overflow | 1 year ago | BossLetsPlays
    java.io.IOException: java.net.BindException: Address already in use: JVM_Bind

  1. iridic 1 times, last 2 weeks ago
  2. linxiaolong 1 times, last 3 months ago
  3. jedcua 1 times, last 3 months ago
  4. Justin 2 times, last 4 months ago
26 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.BindException

    Address already in use: JVM_Bind

    at java.net.PlainSocketImpl.socketBind()
  2. Java RT
    ServerSocket.<init>
    1. java.net.PlainSocketImpl.socketBind(Native Method)
    2. java.net.PlainSocketImpl.bind(Unknown Source)
    3. java.net.ServerSocket.bind(Unknown Source)
    4. java.net.ServerSocket.<init>(Unknown Source)
    5. java.net.ServerSocket.<init>(Unknown Source)
    5 frames
  3. Jetty Server
    SocketConnector.doStart
    1. org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketConnector.java:78)
    2. org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:72)
    3. org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:251)
    4. org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:145)
    4 frames
  4. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    1 frame
  5. Jetty Server
    Server.doStart
    1. org.mortbay.jetty.Server.doStart(Server.java:239)
    1 frame
  6. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    1 frame
  7. hudson.plugins.selenium
    HubLauncher.call
    1. hudson.plugins.selenium.HubLauncher.start(HubLauncher.java:70)
    2. hudson.plugins.selenium.HubLauncher.call(HubLauncher.java:45)
    3. hudson.plugins.selenium.HubLauncher.call(HubLauncher.java:25)
    3 frames
  8. Hudson :: Remoting Layer
    Request$2.run
    1. hudson.remoting.UserRequest.perform(UserRequest.java:114)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:270)
    3 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    3. java.util.concurrent.FutureTask.run(Unknown Source)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    6. java.lang.Thread.run(Unknown Source)
    6 frames