java.io.IOException: Cannot run program "svn": error=2, Datei oder Verzeichnis nicht gefunden

Jenkins JIRA | Marcus Sümnick | 3 years ago
  1. 0

    Ant failed with this messages when a target is executed that calls svn: "BUILD FAILED /projects/jenkins/workspace/statsvn/build.xml:31: Execute failed: java.io.IOException: Cannot run program "svn": error=2, Datei oder Verzeichnis nicht gefunden at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) at java.lang.Runtime.exec(Runtime.java:617) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.io.IOException: error=2, Datei oder Verzeichnis nicht gefunden 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) ... 24 more " Run svn under the same user as jenkins via ssh is possible so svn is actually installed. The target fails under all 40 build projects.

    Jenkins JIRA | 3 years ago | Marcus Sümnick
    java.io.IOException: Cannot run program "svn": error=2, Datei oder Verzeichnis nicht gefunden
  2. 0

    Ant failed with this messages when a target is executed that calls svn: "BUILD FAILED /projects/jenkins/workspace/statsvn/build.xml:31: Execute failed: java.io.IOException: Cannot run program "svn": error=2, Datei oder Verzeichnis nicht gefunden at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) at java.lang.Runtime.exec(Runtime.java:617) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.io.IOException: error=2, Datei oder Verzeichnis nicht gefunden 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) ... 24 more " Run svn under the same user as jenkins via ssh is possible so svn is actually installed. The target fails under all 40 build projects.

    Jenkins JIRA | 3 years ago | Marcus Sümnick
    java.io.IOException: Cannot run program "svn": error=2, Datei oder Verzeichnis nicht gefunden
  3. 0

    GitHub comment 6#11549199

    GitHub | 4 years ago | Sworddragon
    java.io.IOException: Cannot run program "apt" (in directory "/home/sworddragon/.git/lwjgl/src/templates/org/lwjgl/openal"): error=2, Datei oder Verzeichnis nicht gefunden
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Buck doesn't compile on Cygwin

    GitHub | 2 years ago | davido
    java.io.IOException: Cannot run program "gcc": CreateProcess error=5, Access denied
  6. 0

    Permission denied when trying to execute behat in jenkins

    Stack Overflow | 3 years ago | ACNB
    java.io.IOException: Cannot run program "/var/lib/jenkins/jobs/defTest/workspace/bin/behat": error=13, Keine Berechtigung

  1. serious2monkeys 1 times, last 2 weeks ago
  2. Handemelindo 6 times, last 1 month ago
  3. kid 5 times, last 1 month ago
  4. rp 2 times, last 2 months ago
  5. jk 1 times, last 5 months ago
3 more registered users
75 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    error=2, Datei oder Verzeichnis nicht gefunden

    at java.lang.UNIXProcess.forkAndExec()
  2. Java RT
    Runtime.exec
    1. java.lang.UNIXProcess.forkAndExec(Native Method)
    2. java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
    3. java.lang.ProcessImpl.start(ProcessImpl.java:130)
    4. java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
    5. java.lang.Runtime.exec(Runtime.java:617)
    5 frames
  3. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
    2. org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
    3. org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
    4. org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
    5. org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
    6. org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
    7. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    7 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. Ant
    Main.startAnt
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.Target.execute(Target.java:390)
    4. org.apache.tools.ant.Target.performTasks(Target.java:411)
    5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    6. org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    8. org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    9. org.apache.tools.ant.Main.runBuild(Main.java:809)
    10. org.apache.tools.ant.Main.startAnt(Main.java:217)
    10 frames
  6. Apache Ant Launcher
    Launcher.main
    1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    2 frames