JNLP + JENKINSCLI not working - 1.589

180 views
Skip to first unread message

shyamendra pratap

unread,
Jan 5, 2015, 10:41:53 AM1/5/15
to jenkins...@googlegroups.com
Hi,

Installed Jenkins in one linux box (master) and created and connected a slave node (using JNLP) on different linux box (Requirement is I need to connect to Slave Node only with JNLP in our project)

When trying to run a build using jenkins cli from slave getting 401 error

java -jar jenkins-cli.jar -s http://masternode:43000/jenkins -i ~/.ssh/id_rsa  help
Exception in thread "main" java.io.IOException: There's no Jenkins running at http://zlpv1373.vci.att.com:43000/jenkins/
        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.io.IOException: Server returned HTTP response code: 401 for URL: http://zlpv1373.vci.att.com:43000/jenkins/cli
                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
                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
When tried with Fixed JNLP port, it hung forever :

java -jar jenkins-cli.jar -s http://masternode:43002/jenkins -i ~/.ssh/id_rsa  help

Anonymous group has read and connect privs ( in slave)

Jenkins version is : 1.589

 
Thanks


--
--Shyamendra

shyamendra pratap

unread,
Jan 5, 2015, 11:56:10 AM1/5/15
to jenkins...@googlegroups.com
Hi,

I tried after disabling global security..still getting the same issue, not sure what is going on here  http://server:port/jenkins/cli..

java -jar jenkins-cli.jar -s http://zlpv1373.vci.att.com:43000/jenkins who-am-i
Exception in thread "main" java.io.IOException: There's no Jenkins running at http://server:port/jenkins/
        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.io.IOException: Server returned HTTP response code: 401 for URL: http://server:port/jenkins/cli
                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
                at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78)
                at hudson.cli.CLI.connectViaHttp(CLI.java:156)
                at hudson.cli.CLI.<init>(CLI.java:130)

Java version 1.7.0.15
Jenkins version : 1.589

When I tried jenkins cli command from master server it is working fine..

Please help
--
--Shyamendra

shyamendra pratap

unread,
Jan 13, 2015, 9:41:05 PM1/13/15
to jenkins...@googlegroups.com
Any help please..I am still waiting for ..this
Reply all
Reply to author
Forward
0 new messages