java.net.ConnectException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if your MongoDB is available.


rprp

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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?
    via by jorge riobello,
  • 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?
    via by jorge riobello,
  • Jenkins 1.580 and Windows slave connect
    via by ycollet,
  • User list for the Hudson continuous build server.
    via by Unknown author,
  • Jenkins CI server user discussion ()
    via by Unknown author,
  • Java RMI adress resolution issues
    via Stack Overflow by John Rumpel
    ,
    • 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    michallosmichallos
    11 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    820 more bugmates