java.io.IOException: Cannot run program "/bin/sh" (in directory "c:\hudson_sandbox\workspace\farm env\label\xp_vm_sandbox"): CreateProcess error=3, The system cannot find the path specified

Jenkins JIRA | ken_graham | 6 years ago
  1. 0

    In order to test for another bug, I created a farm (multi-configuration) job that executes 8 times per minute. It runs on four of my windows xp slaves, and a slave which runs on the master(redhat). There are seven trigger jobs (trigger [1-7]) which all trigger the above, they do nothing but sleep 3 seconds. All eight of the above jobs (find a tar of their config.xml files attached) are configured to run only on "master", which has only 1 executor, thereby single threading the execution. All of the windows xp slaves have cygwin installed. The job runs fine on its own, without failure, when the triggers did not exist. With the triggers, it takes about ten minutes or so (75-150 builds) for a failure, and it is not always on the same machine, the stack trace is: Started by upstream project "farm env" build number 2330 Building remotely on xpbuild1_vm_sandbox $ C:\cygwin\bin\cygpath -w /bin/sh [xpbuild1_vm_sandbox] $ /bin/sh -xe "C:\Documents and Settings\hudson\hudson124072745410030835.sh" The system cannot find the path specified FATAL: command execution failed java.io.IOException: Cannot run program "/bin/sh" (in directory "c:\hudson_sandbox\workspace\farm env\label\xp_vm_sandbox"): CreateProcess error=3, The system cannot find the path specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:793) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:767) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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:619) Caused by: java.io.IOException: CreateProcess error=3, The system cannot find the path specified 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:452) ... 15 more Checking console output Notifying upstream projects of job completion Finished: FAILURE

    Jenkins JIRA | 6 years ago | ken_graham
    java.io.IOException: Cannot run program "/bin/sh" (in directory "c:\hudson_sandbox\workspace\farm env\label\xp_vm_sandbox"): CreateProcess error=3, The system cannot find the path specified
  2. 0

    In order to test for another bug, I created a farm (multi-configuration) job that executes 8 times per minute. It runs on four of my windows xp slaves, and a slave which runs on the master(redhat). There are seven trigger jobs (trigger [1-7]) which all trigger the above, they do nothing but sleep 3 seconds. All eight of the above jobs (find a tar of their config.xml files attached) are configured to run only on "master", which has only 1 executor, thereby single threading the execution. All of the windows xp slaves have cygwin installed. The job runs fine on its own, without failure, when the triggers did not exist. With the triggers, it takes about ten minutes or so (75-150 builds) for a failure, and it is not always on the same machine, the stack trace is: Started by upstream project "farm env" build number 2330 Building remotely on xpbuild1_vm_sandbox $ C:\cygwin\bin\cygpath -w /bin/sh [xpbuild1_vm_sandbox] $ /bin/sh -xe "C:\Documents and Settings\hudson\hudson124072745410030835.sh" The system cannot find the path specified FATAL: command execution failed java.io.IOException: Cannot run program "/bin/sh" (in directory "c:\hudson_sandbox\workspace\farm env\label\xp_vm_sandbox"): CreateProcess error=3, The system cannot find the path specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:793) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:767) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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:619) Caused by: java.io.IOException: CreateProcess error=3, The system cannot find the path specified 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:452) ... 15 more Checking console output Notifying upstream projects of job completion Finished: FAILURE

    Jenkins JIRA | 6 years ago | ken_graham
    java.io.IOException: Cannot run program "/bin/sh" (in directory "c:\hudson_sandbox\workspace\farm env\label\xp_vm_sandbox"): CreateProcess error=3, The system cannot find the path specified
  3. 0

    How can I use an alternate path for a Jenkins slave SCM step (CVS)

    Google Groups | 5 years ago | Matthew Johnson
    java.io.IOException: cvs: not found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.io.IOException: Cannot run program "ant" - java pressing answers

    itanswerz.com | 1 year ago
    java.io.IOException: Cannot run program "ant" (in directory "/hudson/buildTool/src/bt"): error=2, No existe el fichero o el directorio
  6. 0

    Re: [dash-dev] Weird failure..

    eclipse.org | 1 year ago
    java.io.IOException: error=2, No such file or directory

  1. eti22 1 times, last 1 month ago
  2. asdasd 24 times, last 3 months ago
  3. rexgreenza 8 times, last 3 months ago
  4. Benj-AD 1 times, last 4 months ago
  5. Akshay 4 times, last 6 months ago
95 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    CreateProcess error=3, The system cannot find the path specified

    at java.lang.ProcessImpl.create()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.ProcessImpl.create(Native Method)
    2. java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    3. java.lang.ProcessImpl.start(ProcessImpl.java:30)
    4. java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
    4 frames
  3. Hudson
    Launcher$RemoteLaunchCallable.call
    1. hudson.Proc$LocalProc.<init>(Proc.java:192)
    2. hudson.Proc$LocalProc.<init>(Proc.java:164)
    3. hudson.Launcher$LocalLauncher.launch(Launcher.java:638)
    4. hudson.Launcher$ProcStarter.start(Launcher.java:273)
    5. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:793)
    6. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:767)
    6 frames
  4. Hudson :: Remoting Layer
    Request$2.run
    1. hudson.remoting.UserRequest.perform(UserRequest.java:114)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:270)
    3 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    6. java.lang.Thread.run(Thread.java:619)
    6 frames