java.io.IOException

tip

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");

tip

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe

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

  • After the latest upgrade, all our builds fail with the following error in the console output: {code} ERROR: Publisher hudson.tasks.ArtifactArchiver aborted due to exception Execute failed: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=2, No such file or directory at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:491) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502) at org.apache.tools.ant.taskdefs.Chmod.execute(Chmod.java:181) at hudson.FilePath._chmodAnt(FilePath.java:1119) at hudson.FilePath._chmod(FilePath.java:1104) at hudson.FilePath.readFromTar(FilePath.java:1644) at hudson.FilePath.copyRecursiveTo(FilePath.java:1566) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Caused by: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:635) at org.apache.tools.ant.taskdefs.ExecuteOn.runParallel(ExecuteOn.java:711) at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:479) ... 17 more 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) ... 25 more {code}
    via by Angela Johansson,
  • After the latest upgrade, all our builds fail with the following error in the console output: {code} ERROR: Publisher hudson.tasks.ArtifactArchiver aborted due to exception Execute failed: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=2, No such file or directory at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:491) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502) at org.apache.tools.ant.taskdefs.Chmod.execute(Chmod.java:181) at hudson.FilePath._chmodAnt(FilePath.java:1119) at hudson.FilePath._chmod(FilePath.java:1104) at hudson.FilePath.readFromTar(FilePath.java:1644) at hudson.FilePath.copyRecursiveTo(FilePath.java:1566) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Caused by: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:635) at org.apache.tools.ant.taskdefs.ExecuteOn.runParallel(ExecuteOn.java:711) at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:479) ... 17 more 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) ... 25 more {code}
    via by Angela Johansson,
  • GitHub comment 6#11567809
    via GitHub by Sworddragon
    ,
  • GitHub comment 136#33526858
    via GitHub by intoeleven
    ,
  • No title
    via by Unknown author,
  • Target enrichment performance [Archive] - SEQanswers
    via by Unknown author,
    • java.io.IOException: Cannot run program "chmod": java.io.IOException: error=2, No such file or directory at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:491) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502) at org.apache.tools.ant.taskdefs.Chmod.execute(Chmod.java:181) at hudson.FilePath._chmodAnt(FilePath.java:1119) at hudson.FilePath._chmod(FilePath.java:1104) at hudson.FilePath.readFromTar(FilePath.java:1644) at hudson.FilePath.copyRecursiveTo(FilePath.java:1566) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1400) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Caused by: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:635) at org.apache.tools.ant.taskdefs.ExecuteOn.runParallel(ExecuteOn.java:711) at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:479) ... 17 more 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) ... 25 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    PKeidelPKeidel
    3 times, last one,
    serious2monkeysserious2monkeys
    1 times, last one,
    HandemelindoHandemelindo
    6 times, last one,
    kidkid
    5 times, last one,
    83 more bugmates