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.

  • When executing the TFS Plugin from a Linux master to a Windows 7 slave I am getting the following error: bq. 17:00:52 [EnvInject] - Loading node environment variables. 17:00:53 Building remotely on VMWAYQA09 in workspace C:\jenkins-slave\workspace\AUT-Geb-Demo 17:00:53 [AUT-Geb-Demo] $ tf workspaces -format:brief -server:http://<server>:8080/tfs/2x ******** {color:red}17:00:53 java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified{color:red} 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:244) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:216) 17:00:53 at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) 17:00:53 at hudson.Launcher$ProcStarter.start(Launcher.java:353) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:00:53 at hudson.remoting.Request$2.run(Request.java:328) 17:00:53 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 17:00:53 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 17:00:53 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 17:00:53 at hudson.remoting.Engine$1$1.run(Engine.java:63) 17:00:53 at java.lang.Thread.run(Thread.java:662) 17:00:53 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 17:00:53 at java.lang.ProcessImpl.create(Native Method) 17:00:53 at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) 17:00:53 at java.lang.ProcessImpl.start(ProcessImpl.java:30) 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) 17:00:53 ... 16 more 17:00:53 Finished: FAILURE
    via by Renu Chudamani,
  • When executing the TFS Plugin from a Linux master to a Windows 7 slave I am getting the following error: bq. 17:00:52 [EnvInject] - Loading node environment variables. 17:00:53 Building remotely on VMWAYQA09 in workspace C:\jenkins-slave\workspace\AUT-Geb-Demo 17:00:53 [AUT-Geb-Demo] $ tf workspaces -format:brief -server:http://<server>:8080/tfs/2x ******** {color:red}17:00:53 java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified{color:red} 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:244) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:216) 17:00:53 at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) 17:00:53 at hudson.Launcher$ProcStarter.start(Launcher.java:353) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:00:53 at hudson.remoting.Request$2.run(Request.java:328) 17:00:53 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 17:00:53 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 17:00:53 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 17:00:53 at hudson.remoting.Engine$1$1.run(Engine.java:63) 17:00:53 at java.lang.Thread.run(Thread.java:662) 17:00:53 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 17:00:53 at java.lang.ProcessImpl.create(Native Method) 17:00:53 at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) 17:00:53 at java.lang.ProcessImpl.start(ProcessImpl.java:30) 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) 17:00:53 ... 16 more 17:00:53 Finished: FAILURE
    via by Renu Chudamani,
  • Actually, issue captured on 1.3.9. After upgrade, it seems that plugin assumes cleartool binary to be "cleartool.cmd" instead of cleartool.exe. In at least clearcase 7.0.1.12, it results crashes of the plugin (see stacktrace below), even when trying to poll for changes. What's also interesting is that the build continues to be triggered all the time, so with eg. 1 minute "quiet period", every 1 minut there is a failed build. Building remotely on BarSlave in workspace D:\JenkinsData\workspace\FOO_RELEASE_Integration [FOO_RELEASE_Integration] $ "C:\Program Files\Rational\ClearCase\\bin\cleartool.cmd" lsview FOO_jenkins_integration_release [INFO] computeChangeLogBeforeCheckout = false [INFO] computeChangeLogAfterCheckout = false [FOO_RELEASE_Integration] $ "C:\Program Files\Rational\ClearCase\\bin\cleartool.cmd" startview FOO_jenkins_integration_release java.io.IOException: Cannot run program "C:\Program Files\Rational\ClearCase\\bin\cleartool.cmd" (in directory "D:\JenkinsData\workspace\FOO_RELEASE_Integration"): 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:709) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901) 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 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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:60) 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) ... 17 more [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing NUnit-Version N/A (default)
    via by Waldek M,
  • I often receive installer issues in "Custom Tools Plugin", which complain about "Run Command" behavior. Seems that its name and documentation are quite confusing, so I propose to slightly refactor them. An original issue from James Hancox: {quote} When I try to use the custom tools plugin to install a tool named "VxrAnt", I get the following error message: Started by user anonymous [CustomTools] - VxrAnt: Starting installation [VxrAnt] $ sh -e D:\projects\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\VxrAnt\hudson7649328509533676101.sh The system cannot find the file specified FATAL: Cannot run program "sh" (in directory "D:\projects\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\VxrAnt"): CreateProcess error=2, The system cannot find the file specified java.io.IOException: Cannot run program "sh" (in directory "D:\projects\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\VxrAnt"): 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:773) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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:63) 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 As my install script does not call sh, I can only assume that this is part of the internal workings of the custom tools plugin which has gone awry. {quote}
    via by James Hancox,
  • Actually, issue captured on 1.3.9. After upgrade, it seems that plugin assumes cleartool binary to be "cleartool.cmd" instead of cleartool.exe. In at least clearcase 7.0.1.12, it results crashes of the plugin (see stacktrace below), even when trying to poll for changes. What's also interesting is that the build continues to be triggered all the time, so with eg. 1 minute "quiet period", every 1 minut there is a failed build. Building remotely on BarSlave in workspace D:\JenkinsData\workspace\FOO_RELEASE_Integration [FOO_RELEASE_Integration] $ "C:\Program Files\Rational\ClearCase\\bin\cleartool.cmd" lsview FOO_jenkins_integration_release [INFO] computeChangeLogBeforeCheckout = false [INFO] computeChangeLogAfterCheckout = false [FOO_RELEASE_Integration] $ "C:\Program Files\Rational\ClearCase\\bin\cleartool.cmd" startview FOO_jenkins_integration_release java.io.IOException: Cannot run program "C:\Program Files\Rational\ClearCase\\bin\cleartool.cmd" (in directory "D:\JenkinsData\workspace\FOO_RELEASE_Integration"): 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:709) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901) 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 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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:60) 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) ... 17 more [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing NUnit-Version N/A (default)
    via by Waldek M,
  • I often receive installer issues in "Custom Tools Plugin", which complain about "Run Command" behavior. Seems that its name and documentation are quite confusing, so I propose to slightly refactor them. An original issue from James Hancox: {quote} When I try to use the custom tools plugin to install a tool named "VxrAnt", I get the following error message: Started by user anonymous [CustomTools] - VxrAnt: Starting installation [VxrAnt] $ sh -e D:\projects\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\VxrAnt\hudson7649328509533676101.sh The system cannot find the file specified FATAL: Cannot run program "sh" (in directory "D:\projects\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\VxrAnt"): CreateProcess error=2, The system cannot find the file specified java.io.IOException: Cannot run program "sh" (in directory "D:\projects\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\VxrAnt"): 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:773) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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:63) 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 As my install script does not call sh, I can only assume that this is part of the internal workings of the custom tools plugin which has gone awry. {quote}
    via by James Hancox,
    • java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Thread.java:662) 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>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 16 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