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

Getting "failed to connect" when using latest Jenkins CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • cli
    • None
    • Latest jenkins-cli.jar from today's jenkins.war running on Java Version 7 Update 9 (on Windows 7).

      Hi,

      I have recently upgraded to Java Version 7 Update 9 (on Windows 7) and am now getting a permission denied error from the jenkins-cli.jar.

      I can access the URL below fine in a web browser so is not DNS/firewall/authentication.

      Any thoughts on what could be causing this?

      Thanks,

      James.

      C:\Dev\Wave\Integration\WaveKickStart\WaveKickStart\bin\Release>java -jar jenkin
      s-cli.jar -s http://lonsb03.wecomm.local:8080/ get-job Wave_Expo_Prod_iPhone 1>
      iPhone_job_details.xml
      Exception in thread "main" java.io.IOException: Failed to connect to http://lons
      b03.wecomm.local:8080/
      at hudson.cli.CLI.getCliTcpPort(CLI.java:266)
      at hudson.cli.CLI.<init>(CLI.java:129)
      at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:68)

      at hudson.cli.CLI._main(CLI.java:439)
      at hudson.cli.CLI.main(CLI.java:374)
      Caused by: java.net.SocketException: Permission denied: connect
      at java.net.DualStackPlainSocketImpl.connect0(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at sun.net.NetworkClient.doConnect(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
      Source)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
      ce)
      at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
      at hudson.cli.CLI.getCliTcpPort(CLI.java:264)
      ... 4 more

      C:\Dev\Wave\Integration\WaveKickStart\WaveKickStart\bin\Release>java -jar jenkin
      s-cli.jar -s http://lonsb03.wecomm.local:8080/ get-job Wave_Expo_Prod_Java 1>Ja
      va_job_details.xml
      Exception in thread "main" java.io.IOException: Failed to connect to http://lons
      b03.wecomm.local:8080/
      at hudson.cli.CLI.getCliTcpPort(CLI.java:266)
      at hudson.cli.CLI.<init>(CLI.java:129)
      at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:68)

      at hudson.cli.CLI._main(CLI.java:439)
      at hudson.cli.CLI.main(CLI.java:374)
      Caused by: java.net.SocketException: Permission denied: connect
      at java.net.DualStackPlainSocketImpl.connect0(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at sun.net.NetworkClient.doConnect(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
      Source)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
      ce)
      at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
      at hudson.cli.CLI.getCliTcpPort(CLI.java:264)
      ... 4 more

      C:\Dev\Wave\Integration\WaveKickStart\WaveKickStart\bin\Release>echo build_get_c
      omplete 1>lock_wait_build_get_complete

            Unassigned Unassigned
            jamesrobertmurray James Murray
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: