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.

  • Jenkins users - Workspace error
    via by Unknown author,
  • Using cvs-tag version 1.3 on Hudson 1.282, I'm unable to get the post-build cvs tag to work when it's run on a slave node. It appears to be related to making the tmp directory where the command is executed. The plugin works fine on jobs run on the master node. Some nodes are more verbose than others. This is a quiet node: Executing tag command: cvs -d :pserver:dev@cvs.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121629 foo [hudson132373tmp] $ cvs -d :pserver:dev@cvs.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121629 foo /tmp/hudson132373tmp: No such file or directory FATAL: Perform CVS tagging on succesful build failed. exit code=255 cleaning up /tmp/hudson132373tmp And a more verbose failure on a different node: Executing tag command: cvs -d :pserver:cm@cvscm.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121637 foo [hudson139965tmp] $ cvs -d :pserver:cm@cvscm.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121637 foo ERROR: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory java.io.IOException: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:127) at hudson.Proc$LocalProc.<init>(Proc.java:105) at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:338) at hudson.Launcher$LocalLauncher.launch(Launcher.java:329) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:444) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:428) at hudson.remoting.UserRequest.perform(UserRequest.java:92) at hudson.remoting.UserRequest.perform(UserRequest.java:46) at hudson.remoting.Request$2.run(Request.java:236) 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: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 16 more IOException occurred: java.io.IOException: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory cleaning up /tmp/hudson139965tmp
    via by woneill,
  • Two jobs were scheduled as below, job 1: type=java job.class=RunClass classpath=/tmp/benjamin/javaclass,/opt/Azkaban/java/bin/azkaban-common-0.10.jar The source code of RunClass.java is as below, import java.util.Properties; import azkaban.common.utils.Props; public class RunClass { public RunClass(String name, Properties props){} public RunClass(String name, Props props){} public void run() throws Exception { System.out.println("Hello, this is java job with run function."); } public double getProgress() throws Exception { return 0.0; } public void cancel() throws Exception{} } job 2: type=command command=./mainjob.run working.dir=/tmp/benjamin/scripts mainjob.run is a very simple script. jobs.schedule is as below, {"schedule": [ { "id": "runclass", "ignoreDependency": false, "recurrence": "1m", "time": "2011-11-15.05.30.00.000", "timezone": "Etc/GMT" }, { "id": "mainscript", "ignoreDependency": false, "recurrence": "1m", "time": "2011-11-15.05.30.00.000", "timezone": "Etc/GMT" } ]} When i started Azkaban, all works OK, both of the job succeeded every time been invoked. But about two hours later, both of the jobs failed, and i also can't connnect to the web page by Firefox. When i restart Azkaban, both of them run successfully again, and i can connect to the web page by Firefox. The following is the error log got from the web page. 14-11-2011 12:57:00 GMT runclass INFO - HADOOP_HOME not set, using default hadoop config. 14-11-2011 12:57:00 GMT runclass INFO - 1 commands to execute. 14-11-2011 12:57:00 GMT runclass INFO - Executing command: java -Xms64M -Xmx256M -cp /tmp/benjamin/javaclass:/opt/Azkaban/java/bin/azkaban-common-0.10.jar:/opt/Azkaban_01.00/java/bin/azkaban-0.10.jar:/opt/Azkaban_01.00/lib/log4j-1.2.15.jar azkaban.jobs.builtin.JavaJobRunnerMain 14-11-2011 12:57:00 GMT runclass ERROR - Fatal error occurred while running job 'runclass': java.lang.RuntimeException: java.io.IOException: Cannot run program "java" (in directory "/opt/Azkaban/jobs"): java.io.IOException: error=24, Too many open files at azkaban.jobs.builtin.ProcessJob.run(ProcessJob.java:78) at azkaban.app.LoggingJob.run(LoggingJob.java:93) at azkaban.flow.IndividualJobExecutableFlow$1.run(IndividualJobExecutableFlow.java:171) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Cannot run program "java" (in directory "/opt/Azkaban/jobs"): java.io.IOException: error=24, Too many open files at java.lang.ProcessBuilder.start(Unknown Source) at azkaban.jobs.builtin.ProcessJob.run(ProcessJob.java:75) ... 3 more Caused by: java.io.IOException: java.io.IOException: error=24, Too many open files at java.lang.UNIXProcess.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 5 more Please feel free to contact me at benjamin_wang@yahoo.cn. or +86 10 6476 1469.
    via by benjamin wang,
  • Two jobs were scheduled as below, job 1: type=java job.class=RunClass classpath=/tmp/benjamin/javaclass,/opt/Azkaban/java/bin/azkaban-common-0.10.jar The source code of RunClass.java is as below, import java.util.Properties; import azkaban.common.utils.Props; public class RunClass { public RunClass(String name, Properties props){} public RunClass(String name, Props props){} public void run() throws Exception { System.out.println("Hello, this is java job with run function."); } public double getProgress() throws Exception { return 0.0; } public void cancel() throws Exception{} } job 2: type=command command=./mainjob.run working.dir=/tmp/benjamin/scripts mainjob.run is a very simple script. jobs.schedule is as below, {"schedule": [ { "id": "runclass", "ignoreDependency": false, "recurrence": "1m", "time": "2011-11-15.05.30.00.000", "timezone": "Etc/GMT" }, { "id": "mainscript", "ignoreDependency": false, "recurrence": "1m", "time": "2011-11-15.05.30.00.000", "timezone": "Etc/GMT" } ]} When i started Azkaban, all works OK, both of the job succeeded every time been invoked. But about two hours later, both of the jobs failed, and i also can't connnect to the web page by Firefox. When i restart Azkaban, both of them run successfully again, and i can connect to the web page by Firefox. The following is the error log got from the web page. 14-11-2011 12:57:00 GMT runclass INFO - HADOOP_HOME not set, using default hadoop config. 14-11-2011 12:57:00 GMT runclass INFO - 1 commands to execute. 14-11-2011 12:57:00 GMT runclass INFO - Executing command: java -Xms64M -Xmx256M -cp /tmp/benjamin/javaclass:/opt/Azkaban/java/bin/azkaban-common-0.10.jar:/opt/Azkaban_01.00/java/bin/azkaban-0.10.jar:/opt/Azkaban_01.00/lib/log4j-1.2.15.jar azkaban.jobs.builtin.JavaJobRunnerMain 14-11-2011 12:57:00 GMT runclass ERROR - Fatal error occurred while running job 'runclass': java.lang.RuntimeException: java.io.IOException: Cannot run program "java" (in directory "/opt/Azkaban/jobs"): java.io.IOException: error=24, Too many open files at azkaban.jobs.builtin.ProcessJob.run(ProcessJob.java:78) at azkaban.app.LoggingJob.run(LoggingJob.java:93) at azkaban.flow.IndividualJobExecutableFlow$1.run(IndividualJobExecutableFlow.java:171) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Cannot run program "java" (in directory "/opt/Azkaban/jobs"): java.io.IOException: error=24, Too many open files at java.lang.ProcessBuilder.start(Unknown Source) at azkaban.jobs.builtin.ProcessJob.run(ProcessJob.java:75) ... 3 more Caused by: java.io.IOException: java.io.IOException: error=24, Too many open files at java.lang.UNIXProcess.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 5 more Please feel free to contact me at benjamin_wang@yahoo.cn. or +86 10 6476 1469.
    via by benjamin wang,
    • java.io.IOException: Cannot run program "/usr/local/Zend/ZendStudio/plugins/com.aptana.terminal_3.0.0.1308871164/os/linux/x86/redtty" (in directory "/home/snowwolf/Documents/Aptana Rubles"): java.io.IOException: error=13, 权限不够 at java.lang.ProcessBuilder.start(Unknown Source) at com.aptana.terminal.internal.ProcessLauncher.launch(ProcessLauncher.java:42) at com.aptana.terminal.connector.LocalTerminalConnector.startProcess(LocalTerminalConnector.java:206) at com.aptana.terminal.connector.LocalTerminalConnector.access$0(LocalTerminalConnector.java:196) at com.aptana.terminal.connector.LocalTerminalConnector$1.run(LocalTerminalConnector.java:95) Caused by: java.io.IOException: java.io.IOException: error=13, 权限不够 at java.lang.UNIXProcess.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 5 more

    Users with the same issue

    SacchiSacchi
    8 times, last one,
    guizmaiiguizmaii
    5 times, last one,
    gpgekkogpgekko
    3 times, last one,
    Unknown UserUnknown User
    1 times, last one,
    zbalintzbalint
    16 times, last one,
    125 more bugmates