Headless slave can't connect to Jenkins over HTTPS

283 views
Skip to first unread message

Arve Knudsen

unread,
Jun 14, 2011, 7:19:23 AM6/14/11
to Jenkins Users
I'm trying to make Jenkins (1.415), hosted in Winstone on Windows, accessible via HTTPS, but headless slaves (also on Windows) aren't having it so far. I'm at a loss as to how to solve this problem.

java -jar slave.jar -noCertificateCheck -jnlpUrl https://$JENKINS/computer/$SLAVE/slave-agent.jnlp
Skipping HTTPS certificate checks altoghether. Note that this is not secure at all.
14.jun.2011 13:10:50 hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Hudson agent is running in headless mode.
14.jun.2011 13:10:50 hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://$SERVER, https://$SERVER]
14.jun.2011 13:10:50 hudson.remoting.jnlp.Main$CuiListener error
SEVERE: Unexpected end of file from server
java.net.SocketException: Unexpected end of file from server
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at java.net.HttpURLConnection.getResponseCode(Unknown Source)
        at hudson.remoting.Engine.run(Engine.java:168)
Caused by: java.net.SocketException: Unexpected end of file from server
        at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
        at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
        at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
        at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
        at hudson.remoting.Engine.run(Engine.java:167)


Please help :)

Thanks,
Arve
Reply all
Reply to author
Forward
0 new messages