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.

  • Build failed in Jenkins: Creadur-Rat #311
    via by Apache Jenkins Server,
  • Build failed in Jenkins: Creadur-Rat #312
    via by Apache Jenkins Server,
  • Build failed in Jenkins: Creadur-Rat #311
    via by Apache Jenkins Server,
  • Build failed in Jenkins: Creadur-Rat #312
    via by Apache Jenkins Server,
  • problems with hg plugin
    via by Matt Fair,
  • See error message below. cleartool is in /usr/atria/bin I have tried to set the PATH variable using EnvInject. Please help. Thanks. {quote} [EnvInject] - Preparing an environment for the job. [EnvInject] - Keep Jenkins system variables. [EnvInject] - Keep Jenkins build variables. [EnvInject] - Injecting as environment variables the properties content PATH=/usr/atria/bin:$PATH [EnvInject] - Variables injected successfully. checkout: Starting to 'checkout' checkout: There is no Previous build or there isn't any RevisionState added, we invoke lshistory with null date [testbuild] $ cleartool setview -exec 'cleartool lshistory -last 10 -fmt "%Nd| |%u| |%En| |%Vn| |%e| |%o| |%Nc\n" -nco /vobs/a93k/prod_com' bf_r7.1_fix-enhance_mspiller_cr74112 java.io.IOException: Cannot run program "cleartool" (in directory "/data/workspace/testbuild"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) 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 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 15 more Notifying upstream projects of job completion Finished: FAILURE {quote}
    via by Matthias Spiller,
  • Steps to reproduce - 1. Create a Jenkins slave node. 2. Specify the "Remote FS Root" value of the slave as a relative path. 3. Use any auto-install tool, for example Ant (by adding Ant Installation settings in Jenkins configuration) 4. Run a build with "Invoke Ant" task. This task should use the version of Ant setup in the Ant-Installation settings. 5. Build fails as it is unable to find the recently downloaded ant binary. Sample Build Output - Started by user anonymous Building remotely on Test Node in workspace Documents/jar_sources/workspace/Test MATT Plugin Unpacking http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.0-bin.zip to Documents/jar_sources/tools/hudson.tasks.Ant_AntInstallation/ant-test on Test Node [Test MATT Plugin] $ Documents/jar_sources/tools/hudson.tasks.Ant_AntInstallation/ant-test/bin/ant clean FATAL: command execution failed. java.io.IOException: Cannot run program "Documents/jar_sources/tools/hudson.tasks.Ant_AntInstallation/ant-test/bin/ant" (in directory "Documents/jar_sources/workspace/Test MATT Plugin"): error=2, No such file or directory 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:763) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:988) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:955) 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$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 java.lang.Thread.run(Thread.java:680) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:53) at java.lang.ProcessImpl.start(ProcessImpl.java:91) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 15 more Build step 'Invoke Ant' marked build as failure Finished: FAILURE
    via by Mukul Sharma,
  • Executing a grails build on a remote slave seems to fail in an odd way. The path to the grails command, or the grailsw command is incorrect. With the grails wrapper, this is what happens. ----------- Started by user David Dawson Building remotely on Ubuntu 13.10 (i-2d823961) in workspace workspace/Grails - GWT Plugin Package Fetching changes from the remote Git repository Fetching upstream changes from https://github.com/simplicityitself/grails-gwt.git Checking out Revision c998432b9968ad627a624265354bd71623b2eff3 (origin/extended-dependency) [Grails - GWT Plugin Package] $ "workspace/Grails - GWT Plugin Package/grailsw" "-Dgrails.work.dir=/home/ubuntu/workspace/Grails - GWT Plugin Package//target" upgrade --non-interactive --plain-output --refresh-dependencies FATAL: command execution failed java.io.IOException: Cannot run program "workspace/Grails - GWT Plugin Package/grailsw" (in directory "workspace/Grails - GWT Plugin Package"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) 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$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) ... 15 more Build step 'Build With Grails' marked build as failure Finished: FAILURE ------------ Note the path to the grails wrapper has the workspace name in it, even though it is being executed within the workspace. For an auto installed grails, this is what happens ------------ Started by user David Dawson Building remotely on Ubuntu 13.10 (i-2d823961) in workspace workspace/Grails - GWT Plugin Package Fetching changes from the remote Git repository Fetching upstream changes from https://github.com/simplicityitself/grails-gwt.git Checking out Revision c998432b9968ad627a624265354bd71623b2eff3 (origin/extended-dependency) Unpacking http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.3.1.zip to tools/com.g2one.hudson.grails.GrailsInstallation/2.3.1 on Ubuntu 13.10 (i-2d823961) [Grails - GWT Plugin Package] $ tools/com.g2one.hudson.grails.GrailsInstallation/2.3.1/bin/grails "-Dgrails.work.dir=/home/ubuntu/workspace/Grails - GWT Plugin Package//target" upgrade --non-interactive --plain-output --refresh-dependencies FATAL: command execution failed java.io.IOException: Cannot run program "tools/com.g2one.hudson.grails.GrailsInstallation/2.3.1/bin/grails" (in directory "workspace/Grails - GWT Plugin Package"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) 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$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) ... 15 more Build step 'Build With Grails' marked build as failure Finished: FAILURE -------------- Note the relative path in use. Effectively, I can't get this to work on a remote slave. Workarounds, fixes or suggestions on how I've done this wrong welcome. I can give access to the jenkins master that this is happening on if that helps.
    via by David Dawson,
    • java.io.IOException: Cannot run program "/home/jenkins/tools/java/latest1.6/bin/java" (in directory "<https://builds.apache.org/job/Creadur-Rat/ws/")>: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:815) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113) at hudson.remoting.UserRequest.perform(UserRequest.java:120) 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:68) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

    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,
    guizmaii
    5 times, last one,
    135 more bugmates