[JIRA] [slave-setup-plugin] (JENKINS-29105) cannot start windows slaves via SSH (cygwin) due to Caused by: java.io.IOException: Cannot run program /bin/bash

2015-06-26 Thread sorin.sbar...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Sorin Sbarnea updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Jenkins /  JENKINS-29105 
 
 
 
  cannot start windows slaves via SSH (cygwin) due to Caused by: java.io.IOException: Cannot run program /bin/bash   
 
 
 
 
 
 
 
 
 

Change By:
 
 Sorin Sbarnea 
 
 
 
 
 
 
 
 
 
 ThesshpartworksproperlyandJenkinssucceedsoncopyingtheslave.jarfileandexecutesitbutitseemsthatitdoesmakesomewrongassumptionsaboutpaths,givingtheerrorbelow:{code:java}[marvin]$/bin/bashC:\Users\Administrator\hudson5000371039477233927.shhudson.util.IOException2:SlaveJVMhasnotreportedexitcode.Isitstillrunning? athudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:953) athudson.plugins.sshslaves.SSHLauncher.access$400(SSHLauncher.java:133)Causedby:java.io.IOException:Cannotrunprogram/bin/bash(indirectoryC:\tools\cygwin\home\Administrator\marvin\marvin):CreateProcesserror=3,Thesystemcannotfindthepathspecified atjava.lang.ProcessBuilder.start(UnknownSource) athudson.Proc$LocalProc.init(Proc.java:244){code}Fulllogathttps://gist.github.com/ssbarnea/370949586b622f751d07 Thewindowspathiscorrect,beingcreatedbyJenkins,butitseemsthatheexecutionof/bin/bashistheonethatfails.Ifonedoesmanuallyperformssshtothemachine,usingthesamecredentials,theywouldbeabletorun/bin/bash.IbelievethattheproblemisbecauseJenkinsisassumingthatbeingaWindowsmachineithastoprovideaWindowspathtotheCreateProcesswhichprobablyexpectsaUnixpathinsteadbecausetheentireshellisrunundercygwin.Still,Itriedanycombinationsofconfiguringtheslavepathonthenodeconfigurationbutnoneseemstowork. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you 

[JIRA] [slave-setup-plugin] (JENKINS-29105) cannot start windows slaves via SSH (cygwin) due to Caused by: java.io.IOException: Cannot run program /bin/bash

2015-06-26 Thread sorin.sbar...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Sorin Sbarnea commented on  JENKINS-29105 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: cannot start windows slaves via SSH (cygwin) due to Caused by: java.io.IOException: Cannot run program /bin/bash   
 
 
 
 
 
 
 
 
 
 
Based on https://wiki.jenkins-ci.org/display/JENKINS/SSH+slaves+and+Cygwin page it seems that I need to add a new plugin, https://wiki.jenkins-ci.org/display/JENKINS/Cygpath+Plugin 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [slave-setup-plugin] (JENKINS-29105) cannot start windows slaves via SSH (cygwin) due to Caused by: java.io.IOException: Cannot run program /bin/bash

2015-06-26 Thread sorin.sbar...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Sorin Sbarnea edited a comment on  JENKINS-29105 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: cannot start windows slaves via SSH (cygwin) due to Caused by: java.io.IOException: Cannot run program /bin/bash   
 
 
 
 
 
 
 
 
 
 Basedonhttps://wiki.jenkins-ci.org/display/JENKINS/SSH+slaves+and+CygwinpageitseemsthatIneedtoaddanewplugin,https://wiki.jenkins-ci.org/display/JENKINS/Cygpath+Plugin Still,evenafterIinstalledthecygpathplugin,Jenkinskeepsgivingmethesamekindoferrors. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [slave-setup-plugin] (JENKINS-29105) cannot start windows slaves via SSH (cygwin) due to Caused by: java.io.IOException: Cannot run program /bin/bash

2015-06-26 Thread sorin.sbar...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Sorin Sbarnea created an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Jenkins /  JENKINS-29105 
 
 
 
  cannot start windows slaves via SSH (cygwin) due to Caused by: java.io.IOException: Cannot run program /bin/bash   
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Kohsuke Kawaguchi 
 
 
 

Components:
 

 slave-setup-plugin 
 
 
 

Created:
 

 26/Jun/15 3:27 PM 
 
 
 

Environment:
 

 jenkins-1.611 and Windows with cygwin installed and configured SSH server. 
 
 
 

Labels:
 

 cygwin 
 
 
 

Priority:
 
  Critical 
 
 
 

Reporter:
 
 Sorin Sbarnea 
 
 
 
 
 
 
 
 
 
 
The ssh part works properly and Jenkins succeeds on copying the slave.jar file and executes it but it seems that it does make some wrong assumptions about paths, giving the error below: 

 

[marvin] $ /bin/bash C:\Users\Administrator\hudson5000371039477233927.sh
hudson.util.IOException2: Slave JVM has not reported exit code. Is it still running?
	at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:953)
	at