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

OSX: Failed to install acs: Permission denied

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Invalid
    • Affects Version/s: Titanium Studio 3.1.0, Titanium Studio 3.1.1
    • Fix Version/s: None
    • Component/s: Node
    • Labels:
    • Environment:

      Mac OS X 10.8.3

      Description

      This is not a regression.

      Problem
      After new installation of Titanium Studio on Mac OS X 10.8.3 can't update Titanium's Node.ACS.

      Steps to reproduce
      1. Help > Check for Titanium Updates.
      2. Update fails with error.

      Log

      !ENTRY com.aptana.js.core 4 0 2013-06-05 15:25:51.412
      !MESSAGE (Build 3.1.0.201304151600) [ERROR]  Failed to install acs.
       
      npm http GET https://registry.npmjs.org/acs
      npm http 304 https://registry.npmjs.org/acs
      npm http GET https://registry.npmjs.org/colors/0.6.0-1
      npm http GET https://github.com/appcelerator/cocoafish-node-sdk/tarball/0.1.6
      npm http GET https://registry.npmjs.org/commander/0.6.1
      npm http GET https://registry.npmjs.org/connect/2.3.5
      npm http GET https://registry.npmjs.org/connect-mongo/0.1.9
      npm http GET https://registry.npmjs.org/express/3.0.0
      npm http GET https://registry.npmjs.org/ejs/0.8.0
      npm http GET https://registry.npmjs.org/fstream/0.1.18
      npm http GET https://registry.npmjs.org/log4js/0.5.1
      npm http GET https://registry.npmjs.org/longjohn/0.0.3
      npm http GET https://registry.npmjs.org/mkdirp/0.3.3
      npm http GET https://registry.npmjs.org/node-uuid/1.3.3
      npm http GET https://registry.npmjs.org/pkginfo/0.2.2
      npm http GET https://registry.npmjs.org/socket.io/0.9.10
      npm http GET https://registry.npmjs.org/tar/0.1.13
      npm http GET https://registry.npmjs.org/temp/0.4.0
      npm http GET https://registry.npmjs.org/uglify-js/1.3.2
      npm http GET https://registry.npmjs.org/underscore/1.3.3
      npm http GET https://registry.npmjs.org/wrench/1.3.9
      npm http GET https://registry.npmjs.org/esprima/0.9.9
      npm http GET https://registry.npmjs.org/string/1.1.0
      npm http GET https://registry.npmjs.org/npm/1.2.1
      npm http GET https://registry.npmjs.org/jade/0.28.1
      npm http GET https://registry.npmjs.org/request/2.14.0
      npm http 304 https://registry.npmjs.org/colors/0.6.0-1
      npm http 304 https://registry.npmjs.org/connect-mongo/0.1.9
      npm WARN package.json connect-mongo@0.1.9 No README.md file found!
      npm http 304 https://registry.npmjs.org/connect/2.3.5
      npm http 304 https://registry.npmjs.org/express/3.0.0
      npm http 304 https://registry.npmjs.org/commander/0.6.1
      npm WARN package.json connect@2.3.5 No README.md file found!
      npm http 304 https://registry.npmjs.org/fstream/0.1.18
      npm http 304 https://registry.npmjs.org/ejs/0.8.0
      npm http 304 https://registry.npmjs.org/log4js/0.5.1
      npm http 304 https://registry.npmjs.org/longjohn/0.0.3
      npm http 304 https://registry.npmjs.org/mkdirp/0.3.3
      npm http 304 https://registry.npmjs.org/node-uuid/1.3.3
      npm http 304 https://registry.npmjs.org/pkginfo/0.2.2
      npm http 304 https://registry.npmjs.org/tar/0.1.13
      npm http 304 https://registry.npmjs.org/socket.io/0.9.10
      npm http 304 https://registry.npmjs.org/temp/0.4.0
      npm http 304 https://registry.npmjs.org/uglify-js/1.3.2
      npm http 304 https://registry.npmjs.org/underscore/1.3.3
      npm http 304 https://registry.npmjs.org/wrench/1.3.9
      npm http 304 https://registry.npmjs.org/string/1.1.0
      npm http 304 https://registry.npmjs.org/esprima/0.9.9
      npm http 304 https://registry.npmjs.org/npm/1.2.1
      npm http 304 https://registry.npmjs.org/jade/0.28.1
      npm http 304 https://registry.npmjs.org/request/2.14.0
      npm http 200 https://github.com/appcelerator/cocoafish-node-sdk/tarball/0.1.6
      npm http GET https://registry.npmjs.org/mongodb
      npm http GET https://registry.npmjs.org/range-parser/0.0.4
      npm http GET https://registry.npmjs.org/inherits
      npm http GET https://registry.npmjs.org/connect/2.6.0
      npm http GET https://registry.npmjs.org/graceful-fs
      npm http GET https://registry.npmjs.org/cookie/0.0.4
      npm http GET https://registry.npmjs.org/inherits
      npm http GET https://registry.npmjs.org/rimraf
      npm http GET https://registry.npmjs.org/crc/0.2.0
      npm http GET https://registry.npmjs.org/block-stream
      npm http GET https://registry.npmjs.org/fresh/0.1.0
      npm http GET https://registry.npmjs.org/send/0.1.0
      npm http GET https://registry.npmjs.org/debug
      npm http GET https://registry.npmjs.org/methods/0.0.1
      npm http GET https://registry.npmjs.org/socket.io-client/0.9.10
      npm http GET https://registry.npmjs.org/policyfile/0.0.4
      npm http GET https://registry.npmjs.org/redis/0.7.2
      npm http GET https://registry.npmjs.org/async/0.1.15
      npm http GET https://registry.npmjs.org/coffee-script
      npm http GET https://registry.npmjs.org/qs/0.4.2
      npm http GET https://registry.npmjs.org/mime/1.2.4
      npm http GET https://registry.npmjs.org/formidable/1.0.11
      npm http GET https://registry.npmjs.org/fresh/0.0.1
      npm http GET https://registry.npmjs.org/bytes/0.0.1
      npm http 304 https://registry.npmjs.org/mongodb
      npm WARN package.json mongodb@0.9.9-8 No README.md file found!
      npm http 304 https://registry.npmjs.org/cookie/0.0.4
      npm http 304 https://registry.npmjs.org/range-parser/0.0.4
      npm http 304 https://registry.npmjs.org/inherits
      npm http 304 https://registry.npmjs.org/connect/2.6.0
      npm http 304 https://registry.npmjs.org/graceful-fs
      npm http 304 https://registry.npmjs.org/inherits
      npm http 304 https://registry.npmjs.org/rimraf
      npm http 304 https://registry.npmjs.org/crc/0.2.0
      npm http 304 https://registry.npmjs.org/block-stream
      npm http 304 https://registry.npmjs.org/fresh/0.1.0
      npm http 304 https://registry.npmjs.org/send/0.1.0
      npm http 304 https://registry.npmjs.org/debug
      npm http 304 https://registry.npmjs.org/methods/0.0.1
      npm WARN package.json methods@0.0.1 No README.md file found!
      npm http 304 https://registry.npmjs.org/redis/0.7.2
      npm http 304 https://registry.npmjs.org/socket.io-client/0.9.10
      npm http 304 https://registry.npmjs.org/policyfile/0.0.4
      npm http 304 https://registry.npmjs.org/async/0.1.15
      npm http 304 https://registry.npmjs.org/coffee-script
      npm http GET https://registry.npmjs.org/mime/1.2.6
      npm http 304 https://registry.npmjs.org/mime/1.2.4
      npm http 304 https://registry.npmjs.org/formidable/1.0.11
      npm http 304 https://registry.npmjs.org/qs/0.4.2
      npm http 304 https://registry.npmjs.org/fresh/0.0.1
      npm http 304 https://registry.npmjs.org/bytes/0.0.1
      npm http 304 https://registry.npmjs.org/mime/1.2.6
      npm http GET https://registry.npmjs.org/hiredis
      npm http GET https://registry.npmjs.org/qs/0.5.1
      npm http GET https://registry.npmjs.org/bytes/0.1.0
      npm http GET https://registry.npmjs.org/send/0.0.4
      npm http GET https://registry.npmjs.org/pause/0.0.1
      npm http GET https://registry.npmjs.org/bson/0.0.4
      npm http GET https://registry.npmjs.org/uglify-js/1.2.5
      npm http GET https://registry.npmjs.org/ws
      npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
      npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
      npm http 304 https://registry.npmjs.org/hiredis
      npm http 304 https://registry.npmjs.org/bytes/0.1.0
      npm http 304 https://registry.npmjs.org/pause/0.0.1
      npm http 304 https://registry.npmjs.org/qs/0.5.1
      npm http 304 https://registry.npmjs.org/send/0.0.4
      npm http 304 https://registry.npmjs.org/bson/0.0.4
      npm WARN package.json bson@0.0.4 No README.md file found!
      npm http 304 https://registry.npmjs.org/ws
      npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
      npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
      npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2
      npm http GET https://registry.npmjs.org/bindings
      npm http GET https://registry.npmjs.org/zeparser/0.0.5
      npm http GET https://registry.npmjs.org/tinycolor
      npm http GET https://registry.npmjs.org/options
       
      > bson@0.0.4 install /usr/local/lib/node_modules/acs/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson
      > node install.js
       
      shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
       
      node.js:537
          var cwd = process.cwd();
                            ^
      Error: EACCES, permission denied
          at Function.startup.resolveArgv0 (node.js:537:23)
          at startup (node.js:55:13)
          at node.js:628:3
      npm http 304 https://registry.npmjs.org/bindings
      npm http 304 https://registry.npmjs.org/zeparser/0.0.5
      npm http 304 https://registry.npmjs.org/options
      npm http 304 https://registry.npmjs.org/tinycolor
      npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/acs/node_modules/npm/node_modules/node-gyp/gyp/test'
      npm ERR! error rolling back  acs@1.0.2 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/acs/node_modules/npm/node_modules/node-gyp/gyp/test']
      npm ERR! error rolling back   errno: 53,
      npm ERR! error rolling back   code: 'ENOTEMPTY',
      npm ERR! error rolling back   path: '/usr/local/lib/node_modules/acs/node_modules/npm/node_modules/node-gyp/gyp/test' }
      npm ERR! bson@0.0.4 install: `node install.js`
      npm ERR! `sh "-c" "node install.js"` failed with 11
      npm ERR! 
      npm ERR! Failed at the bson@0.0.4 install script.
      npm ERR! This is most likely a problem with the bson package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     node install.js
      npm ERR! You can get their info via:
      npm ERR!     npm owner ls bson
      npm ERR! There is likely additional logging output above.
       
      npm ERR! System Darwin 12.3.0
      npm ERR! command "node" "/usr/local/bin/npm" "-g" "install" "acs" "--color" "false"
      npm ERR! cwd /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS
      npm ERR! node -v v0.8.22
      npm ERR! npm -v 1.2.14
      npm ERR! code ELIFECYCLE
       
      > hiredis@0.1.15 install /usr/local/lib/node_modules/acs/node_modules/socket.io/node_modules/redis/node_modules/hiredis
      > node-gyp rebuild
       
      shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
      sh: node-gyp: command not found
      npm WARN optional dep failed, continuing hiredis@0.1.15
      npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/acs/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/Tokenizer.js'
      npm ERR! If you need help, you may report this log at:
      npm ERR!     <http://github.com/isaacs/npm/issues>
      npm ERR! or email it to:
      npm ERR!     <npm-@googlegroups.com>
       
      npm ERR! System Darwin 12.3.0
      npm ERR! command "node" "/usr/local/bin/npm" "-g" "install" "acs" "--color" "false"
      npm ERR! cwd /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS
      npm ERR! node -v v0.8.22
      npm ERR! npm -v 1.2.14
      npm ERR! path /usr/local/lib/node_modules/acs/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/Tokenizer.js
      npm ERR! fstream_path /usr/local/lib/node_modules/acs/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/node_modules/zeparser/Tokenizer.js
      npm ERR! fstream_type File
      npm ERR! fstream_class FileWriter
      npm ERR! code ENOENT
      npm ERR! errno 34
      npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
      npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
      npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/acs/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js'
      npm ERR! If you need help, you may report this log at:
      npm ERR!     <http://github.com/isaacs/npm/issues>
      npm ERR! or email it to:
      npm ERR!     <npm-@googlegroups.com>
       
      npm ERR! System Darwin 12.3.0
      npm ERR! command "node" "/usr/local/bin/npm" "-g" "install" "acs" "--color" "false"
      npm ERR! cwd /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS
      npm ERR! node -v v0.8.22
      npm ERR! npm -v 1.2.14
      npm ERR! path /usr/local/lib/node_modules/acs/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js
      npm ERR! fstream_path /usr/local/lib/node_modules/acs/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js
      npm ERR! fstream_type File
      npm ERR! fstream_class FileWriter
      npm ERR! code ENOENT
      npm ERR! errno 34
      npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
      npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
      npm ERR! 
      npm ERR! Additional logging details can be found in:
      npm ERR!     /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/npm-debug.log
      npm ERR! not ok code 0
       
      !ENTRY com.appcelerator.titanium.update 4 4 2013-06-05 15:25:51.414
      !MESSAGE Error encountered during update
      !SUBENTRY 1 com.aptana.js.core 4 0 2013-06-05 15:25:51.414
      !MESSAGE Failed to install acs. Please see the Studio log for more information.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mxia Michael Xia
                Reporter:
                maxmikheev Maxim Mikheev
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: