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
<http://zlpv1373.vci.att.com:43000/jenkins> who-am-iException 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.15Jenkins version :
1.589When I tried jenkins cli command from master server it is working
fine..Please help*

On Mon, Jan 5, 2015 at 10:41 AM, shyamendra pratap <
shyamendrapra...@gmail.com> wrote:

> 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

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMyZUbB-aw7qy2DneQMUS7LewL8Qznsdr5-uyuQzSsUWdqd6cw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to