Jenkins CLI not working OSX

193 views
Skip to first unread message

Anthony Green

unread,
Jun 22, 2015, 4:24:16 AM6/22/15
to jenkins...@googlegroups.com
Steps to reproduce

1. Install Jenkins via Homebrew
2. Download jenkins-cli.jar -
3. run

    java -jar jenkins-cli.jar -s http://localhost:8080/ help

response:

Enter passphrase for /Users/jenkins/.ssh/id_rsa:

Exception in thread "main" java.io.IOException: There's no Jenkins running at http://localhost:8080/

at hudson.cli.CLI.getCliTcpPort(CLI.java:281)

at hudson.cli.CLI.<init>(CLI.java:126)

at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)

at hudson.cli.CLI._main(CLI.java:466)

at hudson.cli.CLI.main(CLI.java:382)

Suppressed: java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(SocketInputStream.java:209)

at java.net.SocketInputStream.read(SocketInputStream.java:141)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)

at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)

at java.io.BufferedInputStream.read(BufferedInputStream.java:345)

at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)

at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)

at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:675)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1535)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)

at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78)

at hudson.cli.CLI.connectViaHttp(CLI.java:156)

at hudson.cli.CLI.<init>(CLI.java:130)

... 3 more

Richard Bywater

unread,
Jun 22, 2015, 5:14:55 AM6/22/15
to jenkins...@googlegroups.com
I assume Jenkins has been started? (Not sure if downloading via Homebrew automatically starts it)

Richard.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/46df016d-9e73-4912-bcb5-e5f8eec95367%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anthony Green

unread,
Jun 23, 2015, 1:19:06 AM6/23/15
to jenkins...@googlegroups.com
On Monday, 22 June 2015 10:14:55 UTC+1, Richard Bywater wrote:
I assume Jenkins has been started? (Not sure if downloading via Homebrew automatically starts it)

Richard

Jenkins is running, responding 200 to http requests 

Richard Bywater

unread,
Jun 23, 2015, 6:32:40 PM6/23/15
to jenkins...@googlegroups.com
So I've just tried it and it seems to be working for me. Is your Mac Firewall traffic blocking traffic from the Java application or something odd like that?

Richard.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages