java.io.IOException

tip

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • It looks like either cygpath sometimes does not return the right information, or Hudson does not use the cygpath information to find /bin/bash. The log snippet below shows a few things: * Timing - It found bash twice within 10 seconds, and then the 3rd time it failed to find it * When it worked, Hudson called C:\cygwin\bin\bash. When it failed, Hudson called /bin/bash. This is what makes me think that it didn't use the cygpath value I found one thread in the forums which suggested just using bash instead of /bin/bash in the shell environment variable. Would that take care of something like this? The two success cases: {code} 09:56:19 $ C:\cygwin\bin\cygpath -w /bin/bash 09:56:19 [spectrum_tap2] $ C:\cygwin\bin\bash -xe C:\DOCUME~1\OR-ENG~1\LOCALS~1\Temp\hudson3300316933213918666.sh ... 09:56:19 $ C:\cygwin\bin\cygpath -w /bin/bash 09:56:20 [spectrum_tap2] $ C:\cygwin\bin\bash -xe C:\DOCUME~1\OR-ENG~1\LOCALS~1\Temp\hudson2834466993129794225.sh 09:56:20 + '[' '' '!=' true ']' 09:56:20 + echo 'Build description: Build skipped' 09:56:20 Build description: Build skipped {code} And the failure, 3 seconds later: {code} 09:56:23 $ C:\cygwin\bin\cygpath -w /bin/bash 09:56:27 [spectrum_tap2] $ /bin/bash -xe C:\DOCUME~1\OR-ENG~1\LOCALS~1\Temp\hudson5829219388252082290.sh 09:56:29 FATAL: command execution failed 09:56:29 java.io.IOException: Cannot run program "/bin/bash" (in directory "C:\Hudson\workspace\spectrum_tap2"): CreateProcess error=3, The system cannot find the path specified 09:56:29 at java.lang.ProcessBuilder.start(Unknown Source) 09:56:29 at hudson.Proc$LocalProc.<init>(Proc.java:192) 09:56:29 at hudson.Proc$LocalProc.<init>(Proc.java:164) 09:56:29 at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) 09:56:29 at hudson.Launcher$ProcStarter.start(Launcher.java:273) 09:56:29 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:793) 09:56:29 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:767) 09:56:29 at hudson.remoting.UserRequest.perform(UserRequest.java:114) 09:56:29 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 09:56:29 at hudson.remoting.Request$2.run(Request.java:270) 09:56:29 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 09:56:29 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 09:56:29 at java.util.concurrent.FutureTask.run(Unknown Source) 09:56:29 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 09:56:29 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 09:56:29 at hudson.remoting.Engine$1$1.run(Engine.java:58) 09:56:29 at java.lang.Thread.run(Unknown Source) 09:56:29 Caused by: java.io.IOException: CreateProcess error=3, The system cannot find the path specified 09:56:29 at java.lang.ProcessImpl.create(Native Method) 09:56:29 at java.lang.ProcessImpl.<init>(Unknown Source) 09:56:29 at java.lang.ProcessImpl.start(Unknown Source) 09:56:29 ... 17 more {code} I don't know what component this should be, so I set it to 'core'.
    via by sauravsengupta,
  • It looks like either cygpath sometimes does not return the right information, or Hudson does not use the cygpath information to find /bin/bash. The log snippet below shows a few things: * Timing - It found bash twice within 10 seconds, and then the 3rd time it failed to find it * When it worked, Hudson called C:\cygwin\bin\bash. When it failed, Hudson called /bin/bash. This is what makes me think that it didn't use the cygpath value I found one thread in the forums which suggested just using bash instead of /bin/bash in the shell environment variable. Would that take care of something like this? The two success cases: {code} 09:56:19 $ C:\cygwin\bin\cygpath -w /bin/bash 09:56:19 [spectrum_tap2] $ C:\cygwin\bin\bash -xe C:\DOCUME~1\OR-ENG~1\LOCALS~1\Temp\hudson3300316933213918666.sh ... 09:56:19 $ C:\cygwin\bin\cygpath -w /bin/bash 09:56:20 [spectrum_tap2] $ C:\cygwin\bin\bash -xe C:\DOCUME~1\OR-ENG~1\LOCALS~1\Temp\hudson2834466993129794225.sh 09:56:20 + '[' '' '!=' true ']' 09:56:20 + echo 'Build description: Build skipped' 09:56:20 Build description: Build skipped {code} And the failure, 3 seconds later: {code} 09:56:23 $ C:\cygwin\bin\cygpath -w /bin/bash 09:56:27 [spectrum_tap2] $ /bin/bash -xe C:\DOCUME~1\OR-ENG~1\LOCALS~1\Temp\hudson5829219388252082290.sh 09:56:29 FATAL: command execution failed 09:56:29 java.io.IOException: Cannot run program "/bin/bash" (in directory "C:\Hudson\workspace\spectrum_tap2"): CreateProcess error=3, The system cannot find the path specified 09:56:29 at java.lang.ProcessBuilder.start(Unknown Source) 09:56:29 at hudson.Proc$LocalProc.<init>(Proc.java:192) 09:56:29 at hudson.Proc$LocalProc.<init>(Proc.java:164) 09:56:29 at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) 09:56:29 at hudson.Launcher$ProcStarter.start(Launcher.java:273) 09:56:29 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:793) 09:56:29 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:767) 09:56:29 at hudson.remoting.UserRequest.perform(UserRequest.java:114) 09:56:29 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 09:56:29 at hudson.remoting.Request$2.run(Request.java:270) 09:56:29 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 09:56:29 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 09:56:29 at java.util.concurrent.FutureTask.run(Unknown Source) 09:56:29 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 09:56:29 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 09:56:29 at hudson.remoting.Engine$1$1.run(Engine.java:58) 09:56:29 at java.lang.Thread.run(Unknown Source) 09:56:29 Caused by: java.io.IOException: CreateProcess error=3, The system cannot find the path specified 09:56:29 at java.lang.ProcessImpl.create(Native Method) 09:56:29 at java.lang.ProcessImpl.<init>(Unknown Source) 09:56:29 at java.lang.ProcessImpl.start(Unknown Source) 09:56:29 ... 17 more {code} I don't know what component this should be, so I set it to 'core'.
    via by sauravsengupta,
  • Build failed in Hudson: OpenEngSB #576
    via by Unknown author,
  • jdk install via jenkins doesn't work???
    via by phil swenson,
  • hg clone fails, hg pull succeeds
    via by Ron,
  • Jenkins users - Windows cmd and 2 Executors
    via by Unknown author,
  • windowsスレーブ環境でのJDKの自動インストール
    via by 末広 尚義 / H Suehiro,
  • When running a Fitnesse build on a Windows slave via a Linux master, the command to execute fitnesse is adding "/var/lib/tomcat6/" to the string. This "/var/lib/tomcat6/" string would be coming from the Linux master, but cannot figure out from where. How can I prevent this setting from being pulled across to the Windows slave? Console Output: C:\Jenkins\workspace\TEST-Fitnesse-AM>exit 0 hudson.plugins.fitnesse.FitnesseBuilder: {fitnessePortLocal=8085, fitnesseTargetPage=FrontPage, fitnesseTargetIsSuite=true, fitnessePathToJar=Java/fitnesse.jar, fitnesseJavaOpts=, fitnesseHttpTimeout=60000, fitnesseJavaWorkingDirectory=Java, fitnessePathToRoot=FitNesseRoot, fitnesseStart=True, fitnessePathToXmlResultsOut=fitnesse-result.xml} Starting new Fitnesse instance... [Java] $ "/var/lib/tomcat6/C:/Program Files/Java/jdk1.7.0_01/bin/java" -jar /var/lib/tomcat6/C:\Jenkins\workspace\TEST-Fitnesse-AM/Java/fitnesse.jar -d /var/lib/tomcat6/C:\Jenkins\workspace\TEST-Fitnesse-AM -r FitNesseRoot -p 8085 java.io.IOException: Cannot run program "/var/lib/tomcat6/C:/Program Files/Java/jdk1.7.0_01/bin/java" (in directory "\var\lib\tomcat6\C:\Jenkins\workspace\TEST-Fitnesse-AM\Java"): CreateProcess error=123, The filename, directory name, or volume label syntax is incorrect at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:707) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:932) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:899) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: CreateProcess error=123, The filename, directory name, or volume label syntax is incorrect at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 17 more Build step 'Execute fitnesse tests' marked build as failure Finished: FAILURE
    via by Ashok Manji,
    • java.io.IOException: Cannot run program "/bin/bash" (in directory "C:\Hudson\workspace\spectrum_tap2"): CreateProcess error=3, The system cannot find the path specified at java.lang.ProcessBuilder.start(Unknown Source) 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(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) 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>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 17 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    161 more bugmates