java.io.IOException: There was a problem while connecting to 172.16.63.206:22

Jenkins JIRA | fullung | 7 years ago
  1. 0

    [JENKINS-6623] Failed launch of slave agent via SSH not detected properly - Jenkins JIRA

    jenkins-ci.org | 12 months ago
    java.io.IOException: There was a problem while connecting to 172.16.63.206:22
  2. 0

    I've configured my VirtualBox node to launch the slave agent via SSH. If the VirtualBox is booted, the slave agent launches without problems. If VirtualBox tries to start the slave agent while the guest is still booting, I see: [VirtualBox] Starting stage 2 launcher (SSHLauncher) [05/26/10 15:17:17] [SSH] Opening SSH connection to 172.16.63.206:22. java.io.IOException: There was a problem while connecting to 172.16.63.206:22 at com.trilead.ssh2.Connection.connect(Connection.java:755) at com.trilead.ssh2.Connection.connect(Connection.java:546) at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:470) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:168) at hudson.plugins.virtualbox.VirtualBoxComputerLauncher.delegateLaunch(VirtualBoxComputerLauncher.java:83) at hudson.plugins.virtualbox.VirtualBoxComputerLauncher.launch(VirtualBoxComputerLauncher.java:67) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:183) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.net.NoRouteToHostException: No route to host at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) at java.net.Socket.connect(Socket.java:542) at com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager.java:342) at com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:450) at com.trilead.ssh2.Connection.connect(Connection.java:699) ... 11 more [05/26/10 15:17:20] [SSH] Connection closed. [VirtualBox] Stage 2 launcher completed For some reason getCore().launch(computer, listener); in VirtualBoxComputerLauncher is not throwing an exception when SSH dies, causing true to be returned, which leads to the SSH connection not being retried. I am running Hudson ver. 1.359 and the latest version of the plugin as of today.

    Jenkins JIRA | 7 years ago | fullung
    java.io.IOException: There was a problem while connecting to 172.16.63.206:22
  3. 0

    I've configured my VirtualBox node to launch the slave agent via SSH. If the VirtualBox is booted, the slave agent launches without problems. If VirtualBox tries to start the slave agent while the guest is still booting, I see: [VirtualBox] Starting stage 2 launcher (SSHLauncher) [05/26/10 15:17:17] [SSH] Opening SSH connection to 172.16.63.206:22. java.io.IOException: There was a problem while connecting to 172.16.63.206:22 at com.trilead.ssh2.Connection.connect(Connection.java:755) at com.trilead.ssh2.Connection.connect(Connection.java:546) at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:470) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:168) at hudson.plugins.virtualbox.VirtualBoxComputerLauncher.delegateLaunch(VirtualBoxComputerLauncher.java:83) at hudson.plugins.virtualbox.VirtualBoxComputerLauncher.launch(VirtualBoxComputerLauncher.java:67) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:183) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.net.NoRouteToHostException: No route to host at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) at java.net.Socket.connect(Socket.java:542) at com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager.java:342) at com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:450) at com.trilead.ssh2.Connection.connect(Connection.java:699) ... 11 more [05/26/10 15:17:20] [SSH] Connection closed. [VirtualBox] Stage 2 launcher completed For some reason getCore().launch(computer, listener); in VirtualBoxComputerLauncher is not throwing an exception when SSH dies, causing true to be returned, which leads to the SSH connection not being retried. I am running Hudson ver. 1.359 and the latest version of the plugin as of today.

    Jenkins JIRA | 7 years ago | fullung
    java.io.IOException: There was a problem while connecting to 172.16.63.206:22
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to set up new Jenkins slave

    Stack Overflow | 4 years ago | IAmYourFaja
    java.io.IOException: There was a problem while connecting to myserver.example.com:22
  6. 0

    NoRouteToHostException in Client

    Stack Overflow | 2 years ago | AndroidDev93
    java.net.NoRouteToHostException: No route to host

  1. balintn 10 times, last 3 months ago
  2. rp 2 times, last 8 months ago
8 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.NoRouteToHostException

    No route to host

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
    6. java.net.Socket.connect(Socket.java:542)
    6 frames
  3. Trilead
    Connection.connect
    1. com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager.java:342)
    2. com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:450)
    3. com.trilead.ssh2.Connection.connect(Connection.java:699)
    4. com.trilead.ssh2.Connection.connect(Connection.java:546)
    4 frames
  4. hudson.plugins.sshslaves
    SSHLauncher.launch
    1. hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:470)
    2. hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:168)
    2 frames
  5. hudson.plugins.virtualbox
    VirtualBoxComputerLauncher.launch
    1. hudson.plugins.virtualbox.VirtualBoxComputerLauncher.delegateLaunch(VirtualBoxComputerLauncher.java:83)
    2. hudson.plugins.virtualbox.VirtualBoxComputerLauncher.launch(VirtualBoxComputerLauncher.java:67)
    2 frames
  6. Hudson
    SlaveComputer$1.call
    1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:183)
    1 frame
  7. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    5. java.lang.Thread.run(Thread.java:636)
    5 frames