Can I use a jenkins slave with ssh forwarding?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can I use a jenkins slave with ssh forwarding?

Duncan McNaught-3
Dear Jenkins Users,

The ssh command to connect to the jenkins slave is:
  ssh -A -t -q x.x.x.x ssh -A -p 51322 [hidden email]
so I selected the slave launch method "Launch slave via execution of command on the Master"
and the launch command: ssh -A -q x.x.x.x ssh -A -q -p 51322 [hidden email] ~/jdk1.6.0_38/bin/java -jar ~/slave.jar

Output:

[04/03/14 16:40:36] Launching slave agent
$ ssh -A -q x.x.x.x ssh -A -q -p 51322 [hidden email] ~/jdk1.6.0_38/bin/java -jar ~/slave.jar
ERROR: Unable to launch the slave agent for LT-PuppetSlaveTest
java.io.EOFException: unexpected stream termination
	at hudson.remoting.ClassicCommandTransport.create(ClassicCommandTransport.java:100)
	at hudson.remoting.Channel.<init>(Channel.java:392)
	at hudson.remoting.Channel.<init>(Channel.java:388)
	at hudson.remoting.Channel.<init>(Channel.java:349)
	at hudson.remoting.Channel.<init>(Channel.java:345)
	at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:338)
	at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:122)
	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)

Is this possible?
Thanks
--Duncan

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Can I use a jenkins slave with ssh forwarding?

JonathanRRogers


On Thursday, April 3, 2014 12:49:42 PM UTC-4, Duncan McNaught wrote:
Dear Jenkins Users,

The ssh command to connect to the jenkins slave is:
  ssh -A -t -q x.x.x.x ssh -A -p 51322 [hidden email]
so I selected the slave launch method "Launch slave via execution of command on the Master"
and the launch command: ssh -A -q x.x.x.x ssh -A -q -p 51322 [hidden email] ~/jdk1.6.0_38/bin/java -jar ~/slave.jar

Output:

[04/03/14 16:40:36] Launching slave agent
$ ssh -A -q x.x.x.x ssh -A -q -p 51322 [hidden email] ~/jdk1.6.0_38/bin/java -jar ~/slave.jar
ERROR: Unable to launch the slave agent for LT-PuppetSlaveTest
<a href="http://stacktrace.jenkins-ci.org/search?query=java.io.EOFException" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3Djava.io.EOFException\46sa\75D\46sntz\0751\46usg\75AFQjCNEg9O_1xqOnDgMX6qSopjNo_-AeZQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3Djava.io.EOFException\46sa\75D\46sntz\0751\46usg\75AFQjCNEg9O_1xqOnDgMX6qSopjNo_-AeZQ';return true;">java.io.EOFException: unexpected stream termination
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.ClassicCommandTransport.create&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.ClassicCommandTransport.create%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNFoxRgZZrxUdqC-fsvjPX9zp8h0vQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.ClassicCommandTransport.create%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNFoxRgZZrxUdqC-fsvjPX9zp8h0vQ';return true;">hudson.remoting.ClassicCommandTransport.create(ClassicCommandTransport.java:100)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel.%3Cinit%3E&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.Channel.%253Cinit%253E%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNF-1raX1oddfyJiYhX1DSPXnr0znA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.Channel.%253Cinit%253E%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNF-1raX1oddfyJiYhX1DSPXnr0znA';return true;">hudson.remoting.Channel.<init>(Channel.java:392)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel.%3Cinit%3E&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.Channel.%253Cinit%253E%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNF-1raX1oddfyJiYhX1DSPXnr0znA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.Channel.%253Cinit%253E%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNF-1raX1oddfyJiYhX1DSPXnr0znA';return true;">hudson.remoting.Channel.<init>(Channel.java:388)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel.%3Cinit%3E&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.Channel.%253Cinit%253E%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNF-1raX1oddfyJiYhX1DSPXnr0znA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.Channel.%253Cinit%253E%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNF-1raX1oddfyJiYhX1DSPXnr0znA';return true;">hudson.remoting.Channel.<init>(Channel.java:349)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel.%3Cinit%3E&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.Channel.%253Cinit%253E%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNF-1raX1oddfyJiYhX1DSPXnr0znA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.remoting.Channel.%253Cinit%253E%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNF-1raX1oddfyJiYhX1DSPXnr0znA';return true;">hudson.remoting.Channel.<init>(Channel.java:345)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.SlaveComputer.setChannel&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.slaves.SlaveComputer.setChannel%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNFdQPBNr3G_H-UksJ_BZ_MOVE9_Jw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.slaves.SlaveComputer.setChannel%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNFdQPBNr3G_H-UksJ_BZ_MOVE9_Jw';return true;">hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:338)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.CommandLauncher.launch&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.slaves.CommandLauncher.launch%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNFcWNZnbQTN7HtCj-d7WbpQoc-hLg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.slaves.CommandLauncher.launch%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNFcWNZnbQTN7HtCj-d7WbpQoc-hLg';return true;">hudson.slaves.CommandLauncher.launch(CommandLauncher.java:122)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.SlaveComputer$1.call&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.slaves.SlaveComputer%241.call%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNFkkTLnnJSPNXKTrXNWQxlGBKoRyA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dhudson.slaves.SlaveComputer%241.call%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNFkkTLnnJSPNXKTrXNWQxlGBKoRyA';return true;">hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerRun&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.util.concurrent.FutureTask%24Sync.innerRun%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNHQzvsWtBKY8lfeALhyH5Ce2LHz8Q';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.util.concurrent.FutureTask%24Sync.innerRun%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNHQzvsWtBKY8lfeALhyH5Ce2LHz8Q';return true;">java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.util.concurrent.FutureTask.run%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNHzwK_RA96F4BOyAfttSdqwitZS-A';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.util.concurrent.FutureTask.run%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNHzwK_RA96F4BOyAfttSdqwitZS-A';return true;">java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.runTask&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.util.concurrent.ThreadPoolExecutor%24Worker.runTask%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNGbj10ev7roho2IcdywE9kZ2WXwGA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.util.concurrent.ThreadPoolExecutor%24Worker.runTask%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNGbj10ev7roho2IcdywE9kZ2WXwGA';return true;">java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.util.concurrent.ThreadPoolExecutor%24Worker.run%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNEcyYU4vxMpKvT5wWf9avc3-L_Y6w';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.util.concurrent.ThreadPoolExecutor%24Worker.run%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNEcyYU4vxMpKvT5wWf9avc3-L_Y6w';return true;">java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at <a href="http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&amp;entity=method" style="color:inherit" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.lang.Thread.run%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNGa2YeXUWCnHlc4deVMRFL9WZCrgQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Djava.lang.Thread.run%26entity%3Dmethod\46sa\75D\46sntz\0751\46usg\75AFQjCNGa2YeXUWCnHlc4deVMRFL9WZCrgQ';return true;">java.lang.Thread.run(Thread.java:662)


What do you see if you run the command in a terminal?

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.