java.net.ConnectException: Connection timed out

Jenkins JIRA | jorge riobello | 4 years ago
  1. 0

    Create slave and launch with slave.jar.. the jnlp in master is: <jnlp spec="1.0+" codebase="http://otc.tomcat.ejiedes.net:8080/hudson/computer/ejld060/"> <information> <title>Slave Agent for ejld060</title> <vendor>Jenkins project</vendor> <homepage href="https://jenkins-ci.org/"/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.5+"/> <jar href="http://otc.tomcat.ejiedes.net:8080/hudson/jnlpJars/remoting.jar"/> <property name="hudson.showWindowsServiceInstallLink" value="true"/> </resources> <application-desc main-class="hudson.remoting.jnlp.Main"> <argument>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</argument> <argument>ejld060</argument> <argument>-url</argument> <argument>http://otc.tomcat.ejiedes.net:8080/hudson/</argument> <argument>-url</argument> <argument>http://www.otc.ejiedes.net/hudson/</argument> </application-desc> </jnlp> But slave say: Apr 18, 2013 10:03:04 AM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Apr 18, 2013 10:03:04 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://www.otc.ejiedes.net/hudson/, http://otc.tomcat.ejiedes.net:8080/hudson/] Apr 18, 2013 10:03:04 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to www.otc.ejiedes.net:8081 Apr 18, 2013 10:06:23 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to www.otc.ejiedes.net:8081 (retrying:2) java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.<init>(Socket.java:375) at java.net.Socket.<init>(Socket.java:189) at hudson.remoting.Engine.connect(Engine.java:304) at hudson.remoting.Engine.run(Engine.java:193) in www.otc.ejiedes.net (apache as reverse proxy) i don't have 8081 (jnlp port) open. The slave use ONLY this host after timeout.. Why don't use the other url?

    Jenkins JIRA | 4 years ago | jorge riobello
    java.net.ConnectException: Connection timed out
  2. 0

    Create slave and launch with slave.jar.. the jnlp in master is: <jnlp spec="1.0+" codebase="http://otc.tomcat.ejiedes.net:8080/hudson/computer/ejld060/"> <information> <title>Slave Agent for ejld060</title> <vendor>Jenkins project</vendor> <homepage href="https://jenkins-ci.org/"/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.5+"/> <jar href="http://otc.tomcat.ejiedes.net:8080/hudson/jnlpJars/remoting.jar"/> <property name="hudson.showWindowsServiceInstallLink" value="true"/> </resources> <application-desc main-class="hudson.remoting.jnlp.Main"> <argument>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</argument> <argument>ejld060</argument> <argument>-url</argument> <argument>http://otc.tomcat.ejiedes.net:8080/hudson/</argument> <argument>-url</argument> <argument>http://www.otc.ejiedes.net/hudson/</argument> </application-desc> </jnlp> But slave say: Apr 18, 2013 10:03:04 AM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Apr 18, 2013 10:03:04 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://www.otc.ejiedes.net/hudson/, http://otc.tomcat.ejiedes.net:8080/hudson/] Apr 18, 2013 10:03:04 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to www.otc.ejiedes.net:8081 Apr 18, 2013 10:06:23 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to www.otc.ejiedes.net:8081 (retrying:2) java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.<init>(Socket.java:375) at java.net.Socket.<init>(Socket.java:189) at hudson.remoting.Engine.connect(Engine.java:304) at hudson.remoting.Engine.run(Engine.java:193) in www.otc.ejiedes.net (apache as reverse proxy) i don't have 8081 (jnlp port) open. The slave use ONLY this host after timeout.. Why don't use the other url?

    Jenkins JIRA | 4 years ago | jorge riobello
    java.net.ConnectException: Connection timed out
  3. 0

    Jenkins 1.580 and Windows slave connect

    Google Groups | 2 years ago | ycollet
    java.net.ConnectException: Connection refused: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Connecting Jenkins slave agent on windows failed with connection timeout

    Stack Overflow | 10 months ago | Hariharan
    java.net.ConnectException: Connection timed out: connect
  6. 0

    Only 1 Windows Slave is allowed by Jenkins?? Unexpected error in launching a slave

    Google Groups | 9 months ago | Voll AufM├╝hlen
    java.net.ConnectException: Connection timed out: connect

  1. michallos 1 times, last 1 week ago
  2. treefolk 2 times, last 4 days ago
  3. linxiaolong 18 times, last 1 month ago
  4. Kialandei 1 times, last 1 month ago
  5. DoktorDoener666 41 times, last 3 weeks ago
24 more registered users
65 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.ConnectException

    Connection timed out

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    6. java.net.Socket.connect(Socket.java:529)
    7. java.net.Socket.connect(Socket.java:478)
    8. java.net.Socket.<init>(Socket.java:375)
    9. java.net.Socket.<init>(Socket.java:189)
    9 frames
  3. Hudson :: Remoting Layer
    Engine.run
    1. hudson.remoting.Engine.connect(Engine.java:304)
    2. hudson.remoting.Engine.run(Engine.java:193)
    2 frames