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

java.io.IOException: Failed to connect to 18.218.111.188:33083

      sudo java -jar agent.jar -jnlpUrl http://18.218.111.188:8080/computer/slave/slave-agent.jnlp -secret 5f919a663ea1bae3240635681a222f3f3113580a1c63dff7900553d7a21868fd -workDir "jenkins/workspace"
      Jun 03, 2018 6:56:50 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
      INFO: Using jenkins/workspace/remoting as a remoting work directory
      Both error and output logs will be printed to jenkins/workspace/remoting
      Jun 03, 2018 6:56:50 PM hudson.remoting.jnlp.Main createEngine
      INFO: Setting up agent: slave
      Jun 03, 2018 6:56:50 PM hudson.remoting.jnlp.Main$CuiListener <init>
      INFO: Jenkins agent is running in headless mode.
      Jun 03, 2018 6:56:50 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
      INFO: Using /home/ubuntu/jenkins/workspace/remoting as a remoting work directory
      Jun 03, 2018 6:56:50 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Locating server among http://18.218.111.188:8080/
      Jun 03, 2018 6:56:50 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
      INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
      Jun 03, 2018 6:56:50 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Agent discovery successful
      Agent address: 18.218.111.188
      Agent port: 33083
      Identity: 2d:7c:59:2f:61:7d:d0:15:a2:89:6f:e1:e5:6f:e3:d9
      Jun 03, 2018 6:56:50 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Handshaking
      Jun 03, 2018 6:56:50 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to 18.218.111.188:33083
      Jun 03, 2018 6:59:07 PM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to 18.218.111.188:33083 (retrying:2)
      java.io.IOException: Failed to connect to 18.218.111.188:33083
      at org.jenkinsci.remoting.engine.JnlpAgentEndpoint.open(JnlpAgentEndpoint.java:242)
      at hudson.remoting.Engine.connect(Engine.java:686)
      at hudson.remoting.Engine.innerRun(Engine.java:547)
      at hudson.remoting.Engine.run(Engine.java:469)
      Caused by: java.net.ConnectException: Connection timed out
      at sun.nio.ch.Net.connect0(Native Method)
      at sun.nio.ch.Net.connect(Net.java:454)
      at sun.nio.ch.Net.connect(Net.java:446)
      at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
      at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
      at org.jenkinsci.remoting.engine.JnlpAgentEndpoint.open(JnlpAgentEndpoint.java:203)
      ... 3 more

          [JENKINS-51670] java.io.IOException: Failed to connect to 18.218.111.188:33083

          Oleg Nenashev added a comment -

          So what's the problem here. IIUC Master's TcpAgent listener port is just inacessible from the agent machine. Check your network settings as a first step

          Oleg Nenashev added a comment - So what's the problem here. IIUC Master's TcpAgent listener port is just inacessible from the agent machine. Check your network settings as a first step

          Oleg Nenashev added a comment -

          No response from the requester

          Oleg Nenashev added a comment - No response from the requester

          Prateek Grov added a comment -

          Well I have similar problem. My slave sends has a SYN_SENT status and while my Master is listening on the correct port, I cant seem to connect(Master doesnt send ACK) . I am using EC2 for both master and slave and I have opened all ports on slave for master's subnet and yet the connection times out.

          Prateek Grov added a comment - Well I have similar problem. My slave sends has a SYN_SENT status and while my Master is listening on the correct port, I cant seem to connect(Master doesnt send ACK) . I am using EC2 for both master and slave and I have opened all ports on slave for master's subnet and yet the connection times out.

          PRAVEEN GUPTA added a comment -

          Will there be a new release for this issue. I updated to 2.121.3 recently and started getting this issue. Reverting back to older version also didn't help. I tried changing the port and then connection timed out problem got resolved but java.io.IOException: Failed to connect to xxxxxxxxxxxx:port is coming now. 

          PRAVEEN GUPTA added a comment - Will there be a new release for this issue. I updated to 2.121.3 recently and started getting this issue. Reverting back to older version also didn't help. I tried changing the port and then connection timed out problem got resolved but java.io.IOException: Failed to connect to xxxxxxxxxxxx:port is coming now. 

          Hello,

          I am using Jenkins version 2.105 and JRE 1.8.

          I am using master as Linux and windows as agent.

          I have restarted Jenkins instance then agent which is configured on windows with JNLP got offline and its not coming online, its showing below error.

          Aug 29, 2018 1:43:04 PM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Locating server among http://x.x.x.x:x/jenkins/
          Aug 29, 2018 1:43:04 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
          INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
          Aug 29, 2018 1:43:04 PM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Agent discovery successful
            Agent address: x.x.x.x
            Agent port:    37091
            Identity:      51:a8:0d:a8:18:dd:db:d8:ea:18:b7:98:da:76:b2:ae
          Aug 29, 2018 1:43:04 PM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Handshaking
          Aug 29, 2018 1:43:04 PM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to x.x.x.x:37091
          Aug 29, 2018 1:43:35 PM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to x.x.x.x:37091 (retrying:2)
          java.io.IOException: Failed to connect to x.x.x.x:37091
           at org.jenkinsci.remoting.engine.JnlpAgentEndpoint.open(JnlpAgentEndpoint.java:242)
           at hudson.remoting.Engine.connect(Engine.java:686)
           at hudson.remoting.Engine.innerRun(Engine.java:547)
           at hudson.remoting.Engine.run(Engine.java:469)
          Caused by: java.net.ConnectException: Connection timed out: connect
           at sun.nio.ch.Net.connect0(Native Method)
           at sun.nio.ch.Net.connect(Unknown Source)
           at sun.nio.ch.Net.connect(Unknown Source)
           at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
           at java.nio.channels.SocketChannel.open(Unknown Source)
           at org.jenkinsci.remoting.engine.JnlpAgentEndpoint.open(JnlpAgentEndpoint.java:203)
           ... 3 more

           

          Could you please help me out here?

          shraddha Magar added a comment - Hello, I am using Jenkins version 2.105 and JRE 1.8. I am using master as Linux and windows as agent. I have restarted Jenkins instance then agent which is configured on windows with JNLP got offline and its not coming online, its showing below error. Aug 29, 2018 1:43:04 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among http://x.x.x.x:x/jenkins/ Aug 29, 2018 1:43:04 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping] Aug 29, 2018 1:43:04 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Agent discovery successful   Agent address: x.x.x.x   Agent port:    37091   Identity:      51:a8:0d:a8:18:dd:db:d8:ea:18:b7:98:da:76:b2:ae Aug 29, 2018 1:43:04 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Aug 29, 2018 1:43:04 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to x.x.x.x:37091 Aug 29, 2018 1:43:35 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to x.x.x.x:37091 (retrying:2) java.io.IOException: Failed to connect to x.x.x.x:37091  at org.jenkinsci.remoting.engine.JnlpAgentEndpoint.open(JnlpAgentEndpoint.java:242)  at hudson.remoting.Engine.connect(Engine.java:686)  at hudson.remoting.Engine.innerRun(Engine.java:547)  at hudson.remoting.Engine.run(Engine.java:469) Caused by: java.net.ConnectException: Connection timed out: connect  at sun.nio.ch.Net.connect0(Native Method)  at sun.nio.ch.Net.connect(Unknown Source)  at sun.nio.ch.Net.connect(Unknown Source)  at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)  at java.nio.channels.SocketChannel.open(Unknown Source)  at org.jenkinsci.remoting.engine.JnlpAgentEndpoint.open(JnlpAgentEndpoint.java:203)  ... 3 more   Could you please help me out here?

          Mark Waite added a comment -

          This is a configuration error in the user installation, not a Jenkins issue.

          Mark Waite added a comment - This is a configuration error in the user installation, not a Jenkins issue.

            Unassigned Unassigned
            samba161 sambasiva rao
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: