Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

create a jenkins JNLP port service so we can use the jenkins CLI with it #369

Open
jstrachan opened this issue Apr 11, 2016 · 2 comments
Open

Comments

@jstrachan
Copy link
Contributor

tried using the jenkins CLI:
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI

and get connection failed. I wonder if its trying to connect to the JNLP port instead of the HTTP port? In which case we'll need a separate Service for jenkins for jnlp

@rawlingsj
Copy link
Contributor

yeah we noticed this last week fabric8io/fabric8#5897 - I have a feeling we couldnt get the jnlp connection to work when we tried using two services before.

@rawlingsj
Copy link
Contributor

I've added the jnlp service and removed the 50000 port from the jenkins service but still not able to use the jenkins cli, I've seen this before and thought I fixed it with the help of stack overflow and https://github.com/fabric8io/jenkins-docker/blob/master/config/jenkins.properties

@jstrachan is this the same error as you got before?

java -jar -Dhudson.diyChunking=false /Users/jamesrawlings/Downloads/jenkins-cli.jar -s http://jenkins.vagrant.f8 get-job test > my.xml
Apr 12, 2016 10:15:56 AM hudson.remoting.SynchronousCommandTransport$ReaderThread run
SEVERE: I/O error in channel Chunked connection to http://jenkins.vagrant.f8/cli
java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A
    at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:806)
    at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
    at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
    at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

hudson.remoting.RequestAbortedException: java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A
    at hudson.remoting.Request.abort(Request.java:297)
    at hudson.remoting.Channel.terminate(Channel.java:847)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69)
    at ......remote call to Chunked connection to http://jenkins.vagrant.f8/cli(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
    at hudson.remoting.Request.call(Request.java:172)
    at hudson.remoting.Channel.call(Channel.java:780)
    at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:250)
    at hudson.remoting.$Proxy1.waitForProperty(Unknown Source)
    at hudson.remoting.Channel.waitForRemoteProperty(Channel.java:1258)
    at hudson.cli.CLI.<init>(CLI.java:147)
    at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
    at hudson.cli.CLI._main(CLI.java:479)
    at hudson.cli.CLI.main(CLI.java:390)
Caused by: java.io.StreamCorruptedException: invalid stream header: 0A0A0A0A
    at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:806)
    at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
    at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
    at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
    at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants