Re: Hi, I have difficulty to setup master / slave approach

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hi, I have difficulty to setup master / slave approach

Kohsuke Kawaguchi
Administrator

The root cause is that you don't have ssh.exe in your PATH. So either
you need to update your PATH to include ssh, or you should specify a
full path to SSH.

I need to find out why Hudson is not giving you the diagnostics. Hudson
is supposed to translate error=2 to Win32 error message, but I saw
another report recently that it's not doing this translation.

David Tai wrote:

> I install cgywin on both master and slave computer and set the public
> key so that they do not need username and password to access each other.
> Then I create a slave node on the master Hudson with the command "ssh
> usmvndtai1 java -jar slave.jar" and launch it. However, I got the
> following error in the launch log.
>
>  
>
> 12/10/07 15:49:47] Launching slave agent
> $ ssh usmvndtai1 java -jar slave.jar
> Unable to launch the slave agent for S01-David
> java.io.IOException: CreateProcess: ssh usmvndtai1 java -jar slave.jar
> error=2
>         at java.lang.ProcessImpl.create(Native Method)
>         at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
>         at java.lang.ProcessImpl.start(ProcessImpl.java:30)
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
>         at java.lang.Runtime.exec(Runtime.java:591)
>         at java.lang.Runtime.exec(Runtime.java:429)
>         at java.lang.Runtime.exec(Runtime.java:326)
>         at hudson.model.Slave$ComputerImpl$1.run(Slave.java:296)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto
> r.java:650)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
> va:675)
>         at java.lang.Thread.run(Thread.java:595)
>
>  
>
>  
>
> Could you tell me what do I need to get this one work?
>
>  
>
> David
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Loading...