java.io.IOException: Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory

Appcelerator JIRA | Dustin Hyde | 4 years ago
  1. 0

    Running a Node.ACS project from a manually created run config fails. Running from a default run config works. Error: {code} Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory {code} Failure Log w/acs command (manually created run config): {code} !ENTRY com.aptana.core 1 0 2012-11-08 16:25:52.406 !MESSAGE (Build 3.0.0.201211071923) [INFO] com.aptana.core/debug/shell Running process: Process: "/usr/local/bin/acs" "run" "-d" "" "-p" "51514" "--no-banner" "--no-colors" Working directory: /Users/dhyde/Desktop/TISTUD-RC/Titanium Studio/TitaniumStudio.app/Contents/MacOS Environment: {ANDROID_NDK=/Users/dhyde/Desktop/android/android-ndk-r8b, ANDROID_SDK=/Users/dhyde/Desktop/android/android-sdk-macosx, APTANA_VERSION=3.0.0.1346448223, Apple_PubSub_Socket_Render=/tmp/launch-uOBKPF/Render, Apple_Ubiquity_Message=/tmp/launch-zMAdSZ/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-xxuSXL/ServiceProcessSocket, HOME=/Users/dhyde, LANG=en_US.UTF-8, LOGNAME=dhyde, NUM_CPUS=4, PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/dhyde/Desktop/android/android-sdk-macosx/tools:/Users/dhyde/Desktop/android/android-sdk-macosx/platform-tools, PWD=/Users/dhyde/Desktop/TISTUD-RC/Titanium Studio/TitaniumStudio.app/Contents/MacOS, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-WTnmk6/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI} !ENTRY com.appcelerator.titanium.acs.core 4 0 2012-11-08 16:25:52.426 !MESSAGE Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory !STACK 0 java.io.IOException: Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at com.aptana.core.util.ProcessUtil.startProcess(ProcessUtil.java:327) at com.aptana.core.util.ProcessUtil.doRun(ProcessUtil.java:322) at com.aptana.core.util.ProcessUtil.run(ProcessUtil.java:273) at com.aptana.core.util.ProcessUtil.run(ProcessUtil.java:235) at com.appcelerator.titanium.acs.internal.core.NodeACSManager.runLocalServer(NodeACSManager.java:502) at com.appcelerator.titanium.acs.internal.core.NodeACSManager.start(NodeACSManager.java:402) at com.appcelerator.titanium.acs.internal.core.launch.NodeACSLaunchConfigurationDelegate.launch(NodeACSLaunchConfigurationDelegate.java:51) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:937) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1141) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 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) ... 12 more {code} Success w/acs command (default auto-created run config): {code} !ENTRY com.aptana.core 1 0 2012-11-08 16:32:58.264 !MESSAGE (Build 3.0.0.201211071923) [INFO] com.aptana.core/debug/shell Running process: Process: "/usr/local/bin/acs" "run" "-d" "/Users/dhyde/Desktop/TISTUD-RC/workspace/project" "-p" "59408" "--no-banner" "--no-colors" Working directory: /Users/dhyde/Desktop/TISTUD-RC/workspace/project Environment: {ANDROID_NDK=/Users/dhyde/Desktop/android/android-ndk-r8b, ANDROID_SDK=/Users/dhyde/Desktop/android/android-sdk-macosx, APTANA_VERSION=3.0.0.1346448223, Apple_PubSub_Socket_Render=/tmp/launch-uOBKPF/Render, Apple_Ubiquity_Message=/tmp/launch-zMAdSZ/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-xxuSXL/ServiceProcessSocket, HOME=/Users/dhyde, LANG=en_US.UTF-8, LOGNAME=dhyde, NUM_CPUS=4, PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/dhyde/Desktop/android/android-sdk-macosx/tools:/Users/dhyde/Desktop/android/android-sdk-macosx/platform-tools, PWD=/Users/dhyde/Desktop/TISTUD-RC/workspace/project, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-WTnmk6/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI} {code} Steps to Reproduce: 1. Create Node.ACS Project. 2. Go to Top Menu: Run > Run Configurations... 3. Add a new Local Node.ACS Server run config and select the created project. 4. Run the config. Actual Result: Fail. Expected Result: Same as with if no run config were previously created and user selects Run > Local Node.ACS Server.

    Appcelerator JIRA | 4 years ago | Dustin Hyde
    java.io.IOException: Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory
  2. 0

    Running a Node.ACS project from a manually created run config fails. Running from a default run config works. Error: {code} Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory {code} Failure Log w/acs command (manually created run config): {code} !ENTRY com.aptana.core 1 0 2012-11-08 16:25:52.406 !MESSAGE (Build 3.0.0.201211071923) [INFO] com.aptana.core/debug/shell Running process: Process: "/usr/local/bin/acs" "run" "-d" "" "-p" "51514" "--no-banner" "--no-colors" Working directory: /Users/dhyde/Desktop/TISTUD-RC/Titanium Studio/TitaniumStudio.app/Contents/MacOS Environment: {ANDROID_NDK=/Users/dhyde/Desktop/android/android-ndk-r8b, ANDROID_SDK=/Users/dhyde/Desktop/android/android-sdk-macosx, APTANA_VERSION=3.0.0.1346448223, Apple_PubSub_Socket_Render=/tmp/launch-uOBKPF/Render, Apple_Ubiquity_Message=/tmp/launch-zMAdSZ/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-xxuSXL/ServiceProcessSocket, HOME=/Users/dhyde, LANG=en_US.UTF-8, LOGNAME=dhyde, NUM_CPUS=4, PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/dhyde/Desktop/android/android-sdk-macosx/tools:/Users/dhyde/Desktop/android/android-sdk-macosx/platform-tools, PWD=/Users/dhyde/Desktop/TISTUD-RC/Titanium Studio/TitaniumStudio.app/Contents/MacOS, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-WTnmk6/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI} !ENTRY com.appcelerator.titanium.acs.core 4 0 2012-11-08 16:25:52.426 !MESSAGE Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory !STACK 0 java.io.IOException: Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at com.aptana.core.util.ProcessUtil.startProcess(ProcessUtil.java:327) at com.aptana.core.util.ProcessUtil.doRun(ProcessUtil.java:322) at com.aptana.core.util.ProcessUtil.run(ProcessUtil.java:273) at com.aptana.core.util.ProcessUtil.run(ProcessUtil.java:235) at com.appcelerator.titanium.acs.internal.core.NodeACSManager.runLocalServer(NodeACSManager.java:502) at com.appcelerator.titanium.acs.internal.core.NodeACSManager.start(NodeACSManager.java:402) at com.appcelerator.titanium.acs.internal.core.launch.NodeACSLaunchConfigurationDelegate.launch(NodeACSLaunchConfigurationDelegate.java:51) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:937) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1141) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 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) ... 12 more {code} Success w/acs command (default auto-created run config): {code} !ENTRY com.aptana.core 1 0 2012-11-08 16:32:58.264 !MESSAGE (Build 3.0.0.201211071923) [INFO] com.aptana.core/debug/shell Running process: Process: "/usr/local/bin/acs" "run" "-d" "/Users/dhyde/Desktop/TISTUD-RC/workspace/project" "-p" "59408" "--no-banner" "--no-colors" Working directory: /Users/dhyde/Desktop/TISTUD-RC/workspace/project Environment: {ANDROID_NDK=/Users/dhyde/Desktop/android/android-ndk-r8b, ANDROID_SDK=/Users/dhyde/Desktop/android/android-sdk-macosx, APTANA_VERSION=3.0.0.1346448223, Apple_PubSub_Socket_Render=/tmp/launch-uOBKPF/Render, Apple_Ubiquity_Message=/tmp/launch-zMAdSZ/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-xxuSXL/ServiceProcessSocket, HOME=/Users/dhyde, LANG=en_US.UTF-8, LOGNAME=dhyde, NUM_CPUS=4, PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/dhyde/Desktop/android/android-sdk-macosx/tools:/Users/dhyde/Desktop/android/android-sdk-macosx/platform-tools, PWD=/Users/dhyde/Desktop/TISTUD-RC/workspace/project, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-WTnmk6/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI} {code} Steps to Reproduce: 1. Create Node.ACS Project. 2. Go to Top Menu: Run > Run Configurations... 3. Add a new Local Node.ACS Server run config and select the created project. 4. Run the config. Actual Result: Fail. Expected Result: Same as with if no run config were previously created and user selects Run > Local Node.ACS Server.

    Appcelerator JIRA | 4 years ago | Dustin Hyde
    java.io.IOException: Cannot run program "/usr/local/bin/acs" (in directory ""): error=2, No such file or directory
  3. 0

    Java execute process on linux

    Stack Overflow | 4 years ago | NightWalker
    java.io.IOException: error=2, No such file or directory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot run program "gradle" in Jenkins

    Stack Overflow | 5 years ago | Andreas Köberle
    java.io.IOException: Cannot run program "gradle" (in directory "/Users/Shared/Jenkins/Home/jobs/test/workspace"): error=2, No such file or directory
  6. 0

    Process Builder gives a "No such file or directory" on Mac while Runtime().exec() works fine

    Stack Overflow | 5 years ago | Luuk D. Jansen
    java.lang.Exception: Error during coding process: Cannot run program "/opt/local/bin/ffmpeg -i /Users/Luuk/Documents/Java/idoms-server/data/media/1/1/test.mov -y -f mpegts -acodec libmp3lame -ar 48000 -b:a 64000 -vn -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate -1 -bufsize -1 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -async 2 /Users/Luuk/Documents/Java/idoms-server/data/media/1/13/encoded.mp3" (in directory "/Users/Luuk/Documents/Java/idoms-server/data"): error=2, No such file or directory
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, No such file or directory

    at java.lang.UNIXProcess.forkAndExec()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.UNIXProcess.forkAndExec(Native Method)
    2. java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
    3. java.lang.ProcessImpl.start(ProcessImpl.java:91)
    4. java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    4 frames
  3. com.aptana.core
    ProcessUtil.run
    1. com.aptana.core.util.ProcessUtil.startProcess(ProcessUtil.java:327)
    2. com.aptana.core.util.ProcessUtil.doRun(ProcessUtil.java:322)
    3. com.aptana.core.util.ProcessUtil.run(ProcessUtil.java:273)
    4. com.aptana.core.util.ProcessUtil.run(ProcessUtil.java:235)
    4 frames
  4. com.appcelerator.titanium
    NodeACSLaunchConfigurationDelegate.launch
    1. com.appcelerator.titanium.acs.internal.core.NodeACSManager.runLocalServer(NodeACSManager.java:502)
    2. com.appcelerator.titanium.acs.internal.core.NodeACSManager.start(NodeACSManager.java:402)
    3. com.appcelerator.titanium.acs.internal.core.launch.NodeACSLaunchConfigurationDelegate.launch(NodeACSLaunchConfigurationDelegate.java:51)
    3 frames
  5. Debug Core
    LaunchConfiguration.launch
    1. org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
    2. org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
    2 frames
  6. org.eclipse.debug
    DebugUIPlugin$8.run
    1. org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:937)
    2. org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1141)
    2 frames
  7. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    1 frame