Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-2560

Titanium Updates: update fails with Error encountered during update Cannot run program error 2 No such file or directory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: Titanium Studio 3.0.0
    • Fix Version/s: None
    • Component/s: Usability
    • Labels:
    • Environment:

      Titanium Studio: 3.0.0.201210172118
      OS: Mountain Lion 10.8.2

      Description

      Help > Check for Titanium Updates > Install Alloy Fails.

      Error encountered during update
      Cannot run program "echo $PASSWORD | sudo -S ": error=2, No such file or directory
      Cannot run program "echo $PASSWORD | sudo -S ": error=2, No such file or directory
      

      Log:

      !ENTRY com.aptana.core 1 0 2012-10-18 09:17:22.580
      !MESSAGE (Build 3.0.0.201210172118) [INFO] com.aptana.core/debug/shell Running process:
      Process: "echo $PASSWORD | sudo -S " "/usr/local/bin/npm" "-g" "install" "titanium"
      Working directory: null
      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-EeKGAL/Render, Apple_Ubiquity_Message=/tmp/launch-SW45KT/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-9CZqFn/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-0sLjqp/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI, redirectErrorStream=}
       
      !ENTRY com.aptana.core 1 0 2012-10-18 09:17:22.616
      !MESSAGE (Build 3.0.0.201210172118) [INFO] com.aptana.core/debug/shell Searching for npm in PATH locations: /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
       
      !ENTRY com.aptana.core 1 0 2012-10-18 09:17:22.617
      !MESSAGE (Build 3.0.0.201210172118) [INFO] com.aptana.core/debug/shell Found executable on PATH: /usr/local/bin/npm
       
      !ENTRY com.aptana.core 1 0 2012-10-18 09:17:22.618
      !MESSAGE (Build 3.0.0.201210172118) [INFO] com.aptana.core/debug/shell Running process:
      Process: "echo $PASSWORD | sudo -S " "/usr/local/bin/npm" "-g" "install" "acs"
      Working directory: null
      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-EeKGAL/Render, Apple_Ubiquity_Message=/tmp/launch-SW45KT/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-9CZqFn/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-0sLjqp/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI, redirectErrorStream=}
       
      !ENTRY com.aptana.core 1 0 2012-10-18 09:17:22.644
      !MESSAGE (Build 3.0.0.201210172118) [INFO] com.aptana.core/debug/shell Searching for npm in PATH locations: /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
       
      !ENTRY com.aptana.core 1 0 2012-10-18 09:17:22.645
      !MESSAGE (Build 3.0.0.201210172118) [INFO] com.aptana.core/debug/shell Found executable on PATH: /usr/local/bin/npm
       
      !ENTRY com.aptana.core 1 0 2012-10-18 09:17:22.645
      !MESSAGE (Build 3.0.0.201210172118) [INFO] com.aptana.core/debug/shell Running process:
      Process: "echo $PASSWORD | sudo -S " "/usr/local/bin/npm" "-g" "install" "alloy"
      Working directory: null
      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-EeKGAL/Render, Apple_Ubiquity_Message=/tmp/launch-SW45KT/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-9CZqFn/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-0sLjqp/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI, redirectErrorStream=}
       
      !ENTRY com.appcelerator.titanium.update 4 4 2012-10-18 09:17:22.683
      !MESSAGE Error encountered during update
      !SUBENTRY 1 com.appcelerator.titanium.nodejs.core 4 0 2012-10-18 09:17:22.684
      !MESSAGE Cannot run program "echo $PASSWORD | sudo -S ": error=2, No such file or directory
      !STACK 0
      java.io.IOException: Cannot run program "echo $PASSWORD | sudo -S ": 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.nodejs.internal.core.NodePackageManager.install(NodePackageManager.java:144)
      	at com.appcelerator.titanium.update.TitaniumNPMRelease.install(TitaniumNPMRelease.java:37)
      	at com.appcelerator.titanium.update.TitaniumSDKUpdater.installTitaniumUpdates(TitaniumSDKUpdater.java:560)
      	at com.appcelerator.titanium.update.TitaniumSDKUpdater.access$1(TitaniumSDKUpdater.java:509)
      	at com.appcelerator.titanium.update.TitaniumSDKUpdater$2.run(TitaniumSDKUpdater.java:344)
      	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)
      	... 10 more
      !SUBENTRY 1 com.appcelerator.titanium.nodejs.core 4 0 2012-10-18 09:17:22.684
      !MESSAGE Cannot run program "echo $PASSWORD | sudo -S ": error=2, No such file or directory
      !STACK 0
      java.io.IOException: Cannot run program "echo $PASSWORD | sudo -S ": 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.nodejs.internal.core.NodePackageManager.install(NodePackageManager.java:144)
      	at com.appcelerator.titanium.update.TitaniumNPMRelease.install(TitaniumNPMRelease.java:37)
      	at com.appcelerator.titanium.update.TitaniumSDKUpdater.installTitaniumUpdates(TitaniumSDKUpdater.java:560)
      	at com.appcelerator.titanium.update.TitaniumSDKUpdater.access$1(TitaniumSDKUpdater.java:509)
      	at com.appcelerator.titanium.update.TitaniumSDKUpdater$2.run(TitaniumSDKUpdater.java:344)
      	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)
      	... 10 more
      !SUBENTRY 1 com.appcelerator.titanium.nodejs.core 4 0 2012-10-18 09:17:22.684
      !MESSAGE Cannot run program "echo $PASSWORD | sudo -S ": error=2, No such file or directory
      !STACK 0
      java.io.IOException: Cannot run program "echo $PASSWORD | sudo -S ": 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.nodejs.internal.core.NodePackageManager.install(NodePackageManager.java:144)
      	at com.appcelerator.titanium.update.TitaniumNPMRelease.install(TitaniumNPMRelease.java:37)
      	at com.appcelerator.titanium.update.TitaniumSDKUpdater.installTitaniumUpdates(TitaniumSDKUpdater.java:560)
      	at com.appcelerator.titanium.update.TitaniumSDKUpdater.access$1(TitaniumSDKUpdater.java:509)
      	at com.appcelerator.titanium.update.TitaniumSDKUpdater$2.run(TitaniumSDKUpdater.java:344)
      	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)
      	... 10 more
      

      Steps to Reproduce:

      1. Uninstall Alloy, CLI, and ACS.
      2. Open Titanium Studio and cancel any update prompts.
      3. Go to Help > Titanium Updates and take all updates.

      Actual Result:

      Error.

      Expected Result:

      Updates successful.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: