Hi all, We've an issue using CLI with Jenkins behind Nginx .
Jenkins URL : http://host:8081/ic Nginx reverse proxy URL : http://nicely-named-host/ic Nginx is configured like that : https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy With a browser, Jenkins responds correctly to all http requests. There isn't any reverse proxy configuration alert in http://nicely-named-host/ic/manage. Command OK : java -jar jenkins-cli.jar -s http://host:8081/ic help Command KO : java -jar jenkins-cli.jar -s http://nicely-named-host/ic help Error: Exception in thread "main" java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at hudson.cli.CLI.connectViaCliPort(CLI.java:211) at hudson.cli.CLI.<init>(CLI.java:134) at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72) at hudson.cli.CLI._main(CLI.java:469) at hudson.cli.CLI.main(CLI.java:384) Suppressed: java.io.EOFException: unexpected stream termination at hudson.remoting.ClassicCommandTransport.create(ClassicCommandTransport.java:135) at hudson.remoting.Channel.<init>(Channel.java:406) at hudson.remoting.Channel.<init>(Channel.java:402) at hudson.remoting.Channel.<init>(Channel.java:363) at hudson.remoting.Channel.<init>(Channel.java:359) at hudson.remoting.Channel.<init>(Channel.java:347) at hudson.cli.CLI.connectViaHttp(CLI.java:165) at hudson.cli.CLI.<init>(CLI.java:138) ... 3 more Does somebody have an idea why I can't connect to Jenkins using CLI if it's behind a reverse proxy ? Thanks in advance. Michaël Pailloncy -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
