java.io.IOException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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.

  • In my case I have a multi-configuration project that needs to invoke a rake task on windows, mac, and linux environments. The job on the windows node fails to find 'rake.bat'. It is in the windows system PATH and I can run it from the local machine cmd prompt. I believe this would work if I could select "Rake" from the list of tool locations on the Node Configuration page for my windows slave. Installing the rake plugin does not add Rake to the list of node tool installations. The full error is: [windows] $ rake.bat build:release The system cannot find the file specified FATAL: rake execution failed java.io.IOException: Cannot run program "rake.bat" (in directory "C:\jenkins\workspace\project\label\windows"): CreateProcess error=2, The system cannot find the file specified 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:698) at hudson.Launcher$ProcStarter.start(Launcher.java:329) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:923) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:890) 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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 16 more Build step 'Invoke Rake' marked build as failure Recording test results Notifying upstream projects of job completion Finished: FAILURE
    via by Brad Leonard,
  • In my case I have a multi-configuration project that needs to invoke a rake task on windows, mac, and linux environments. The job on the windows node fails to find 'rake.bat'. It is in the windows system PATH and I can run it from the local machine cmd prompt. I believe this would work if I could select "Rake" from the list of tool locations on the Node Configuration page for my windows slave. Installing the rake plugin does not add Rake to the list of node tool installations. The full error is: [windows] $ rake.bat build:release The system cannot find the file specified FATAL: rake execution failed java.io.IOException: Cannot run program "rake.bat" (in directory "C:\jenkins\workspace\project\label\windows"): CreateProcess error=2, The system cannot find the file specified 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:698) at hudson.Launcher$ProcStarter.start(Launcher.java:329) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:923) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:890) 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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 16 more Build step 'Invoke Rake' marked build as failure Recording test results Notifying upstream projects of job completion Finished: FAILURE
    via by Brad Leonard,
  • Re: [dash-dev] Weird failure..
    via by Unknown author,
  • Jenkins users - Workspace error
    via by Unknown author,
  • {code} mvn -f accommons-libs-parent/pom.xml -Dsonar.jdbc.url=jdbc:mysql://x.x.x.x:x/sonar?useUnicode=true&characterEncoding=utf8 -Dsonar.jdbc.password=x -Dsonar.jdbc.driver=com.mysql.jdbc.Driver -Dsonar.host.url=http://x.x.x.x:x -Dsonar.jdbc.username=sonar -Dmaven.repo.local= -f accommons-libs-parent/pom.xml -Pall -U -B -Dmaven.test.failure.ignore=true -e -B sonar:sonar FATAL: command execution failed java.io.IOException: mvn: not found at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:53) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) at hudson.Proc$LocalProc.<init>(Proc.java:149) at hudson.Proc$LocalProc.<init>(Proc.java:121) at hudson.Launcher$LocalLauncher.launch(Launcher.java:633) at hudson.Launcher$ProcStarter.start(Launcher.java:268) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:778) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:754) at hudson.remoting.UserRequest.perform(UserRequest.java:104) 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:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) {code}
    via by olamy,
  • Hi, When I upgraded my ClearCase plugin to 1.3.2, the jobs on slaves no longer worked. I downgraded back to version 1.3.1 and everything worked fine again. Below is the message that I saw when trying to build a job on a slave: Started by user lreeber Building remotely on Slave02 [test_slave2] $ cleartool desc -fmt %[found_bls]Xp\n stream:Integration_mainline@/vob/tvm_freeman_bsp_pvob java.io.IOException: Cannot run program "cleartool" (in directory "/design/bsp/sla02/workspace/test_slave2"): java.io.IOException: error=2, No such file or directory 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: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) ... 15 more Finished: FAILURE
    via by lreeber,
    • java.io.IOException: Cannot run program "rake.bat" (in directory "C:\jenkins\workspace\project\label\windows"): CreateProcess error=2, The system cannot find the file specified 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:698) at hudson.Launcher$ProcStarter.start(Launcher.java:329) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:923) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:890) 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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 16 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    160 more bugmates