java.io.IOException: Cannot run program "/opt/android-sdk-linux\platform-tools\adb": error=2, Datei oder Verzeichnis nicht gefunden

Jenkins JIRA | wearbif | 2 years ago
  1. 0

    AEP composes path to the SDK with false separator. AEP 2.10 works well. Nicolae Ghimbovschi in his comment for issue [#23346|https://issues.jenkins-ci.org/browse/JENKINS-23346?focusedCommentId=215290&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-215290] confirms this behavior. {code} Started by user USER [EnvInject] - Loading node environment variables. Building remotely on BUILDSERVER (BUILDSERVER) in workspace WORKSPACE_PATH Cleaning up WORKSPACE_PATH/. Updating SVN_PATH at revision '2015-02-20T16:07:22.238 +0100' At revision 1212 no change for SVN_PATH since the previous build No emails were triggered. [android] Using Android SDK: /opt/android-sdk-linux [android] Creating Android AVD: /home/jenkins/.android/avd/hudson_de-DE_480_1080x1920_android-21_armeabi-v7a.avd [android] /opt/android-sdk-linux/tools/android create avd -f -a -c 2000M -s 1080x1920 -n hudson_de-DE_480_1080x1920_android-21_armeabi-v7a -t android-21 --abi armeabi-v7a $ */opt/android-sdk-linux\platform-tools\adb start-server* FATAL: Cannot run program "/opt/android-sdk-linux\platform-tools\adb": error=2, Datei oder Verzeichnis nicht gefunden java.io.IOException: Cannot run program "/opt/android-sdk-linux\platform-tools\adb": error=2, Datei oder Verzeichnis nicht gefunden at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) 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:1023) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:990) 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: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:722) 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:1021) ... 15 more {code}

    Jenkins JIRA | 2 years ago | wearbif
    java.io.IOException: Cannot run program "/opt/android-sdk-linux\platform-tools\adb": error=2, Datei oder Verzeichnis nicht gefunden
  2. 0

    AEP composes path to the SDK with false separator. AEP 2.10 works well. Nicolae Ghimbovschi in his comment for issue [#23346|https://issues.jenkins-ci.org/browse/JENKINS-23346?focusedCommentId=215290&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-215290] confirms this behavior. {code} Started by user USER [EnvInject] - Loading node environment variables. Building remotely on BUILDSERVER (BUILDSERVER) in workspace WORKSPACE_PATH Cleaning up WORKSPACE_PATH/. Updating SVN_PATH at revision '2015-02-20T16:07:22.238 +0100' At revision 1212 no change for SVN_PATH since the previous build No emails were triggered. [android] Using Android SDK: /opt/android-sdk-linux [android] Creating Android AVD: /home/jenkins/.android/avd/hudson_de-DE_480_1080x1920_android-21_armeabi-v7a.avd [android] /opt/android-sdk-linux/tools/android create avd -f -a -c 2000M -s 1080x1920 -n hudson_de-DE_480_1080x1920_android-21_armeabi-v7a -t android-21 --abi armeabi-v7a $ */opt/android-sdk-linux\platform-tools\adb start-server* FATAL: Cannot run program "/opt/android-sdk-linux\platform-tools\adb": error=2, Datei oder Verzeichnis nicht gefunden java.io.IOException: Cannot run program "/opt/android-sdk-linux\platform-tools\adb": error=2, Datei oder Verzeichnis nicht gefunden at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) 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:1023) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:990) 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: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:722) 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:1021) ... 15 more {code}

    Jenkins JIRA | 2 years ago | wearbif
    java.io.IOException: Cannot run program "/opt/android-sdk-linux\platform-tools\adb": error=2, Datei oder Verzeichnis nicht gefunden
  3. 0

    It seems as though Android Emulator Plugin v2.11.1 is completely broken on remote unix-slaves if server itself running on windows. So a path to sdk subfolders is incorrect concatenate? */home/jenkins/tools/android-sdk\tools\android list target*. Plugin v2.10 works well. Started by build flow MyProject_App#1098 [EnvInject] - Loading node environment variables. Building remotely on buildserver in workspace /home/jenkins/workspace/MyProject Cleaning up /home/jenkins/workspace/MyProject/. Deleting /home/jenkins/workspace/MyProject/bin Deleting /home/jenkins/workspace/MyProject/gen Deleting /home/jenkins/workspace/MyProject/monkey.txt Deleting /home/jenkins/workspace/MyProject/AndroidManifest.xml Deleting /home/jenkins/workspace/MyProject/version.properties Updating https://my.domain.com/svn/MyProject/trunk/MyProjectCont at revision '2014-06-06T09:01:56.448 +0200' At revision 570 no change for https://my.domain.com/svn/MyProject/trunk/MyProjectCont since the previous build No emails were triggered. *$ /home/jenkins/tools/android-sdk\tools\android list target* FATAL: Cannot run program "/home/jenkins/tools/android-sdk\tools\android": error=2, Datei oder Verzeichnis nicht gefunden java.io.IOException: Cannot run program "/home/jenkins/tools/android-sdk\tools\android": error=2, Datei oder Verzeichnis nicht gefunden at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) 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:722) 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:1021) ... 15 more

    Jenkins JIRA | 2 years ago | wearbif
    java.io.IOException: Cannot run program "/home/jenkins/tools/android-sdk\tools\android": error=2, Datei oder Verzeichnis nicht gefunden
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    It seems as though Android Emulator Plugin v2.11.1 is completely broken on remote unix-slaves if server itself running on windows. So a path to sdk subfolders is incorrect concatenate? */home/jenkins/tools/android-sdk\tools\android list target*. Plugin v2.10 works well. Started by build flow MyProject_App#1098 [EnvInject] - Loading node environment variables. Building remotely on buildserver in workspace /home/jenkins/workspace/MyProject Cleaning up /home/jenkins/workspace/MyProject/. Deleting /home/jenkins/workspace/MyProject/bin Deleting /home/jenkins/workspace/MyProject/gen Deleting /home/jenkins/workspace/MyProject/monkey.txt Deleting /home/jenkins/workspace/MyProject/AndroidManifest.xml Deleting /home/jenkins/workspace/MyProject/version.properties Updating https://my.domain.com/svn/MyProject/trunk/MyProjectCont at revision '2014-06-06T09:01:56.448 +0200' At revision 570 no change for https://my.domain.com/svn/MyProject/trunk/MyProjectCont since the previous build No emails were triggered. *$ /home/jenkins/tools/android-sdk\tools\android list target* FATAL: Cannot run program "/home/jenkins/tools/android-sdk\tools\android": error=2, Datei oder Verzeichnis nicht gefunden java.io.IOException: Cannot run program "/home/jenkins/tools/android-sdk\tools\android": error=2, Datei oder Verzeichnis nicht gefunden at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) 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:722) 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:1021) ... 15 more

    Jenkins JIRA | 2 years ago | wearbif
    java.io.IOException: Cannot run program "/home/jenkins/tools/android-sdk\tools\android": error=2, Datei oder Verzeichnis nicht gefunden
  6. 0

    'docker build' fails on Linux Jenkins slave with jenkins 1.590

    GitHub | 2 years ago | gcarre
    java.io.IOException: Cannot run program "docker" (in directory "\home\jenkins\jenkins\workspace\gcarre\docker"): error=2, No such file or directory

  1. eti22 1 times, last 1 month ago
  2. asdasd 24 times, last 3 months ago
  3. rexgreenza 8 times, last 3 months ago
  4. Benj-AD 1 times, last 4 months ago
  5. Akshay 4 times, last 6 months ago
95 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
    ProcessBuilder.start
    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:1021)
    4 frames
  3. Hudson
    Launcher$RemoteLaunchCallable.call
    1. hudson.Proc$LocalProc.<init>(Proc.java:244)
    2. hudson.Proc$LocalProc.<init>(Proc.java:216)
    3. hudson.Launcher$LocalLauncher.launch(Launcher.java:773)
    4. hudson.Launcher$ProcStarter.start(Launcher.java:353)
    5. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1023)
    6. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:990)
    6 frames
  4. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:328)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    5. java.lang.Thread.run(Thread.java:722)
    5 frames