{"action":"created","issue":{"url":"https://api.github.com/repos/mscdex/mmmagic/issues/95","repository_url":"https://api.github.com/repos/mscdex/mmmagic","labels_url":"https://api.github.com/repos/mscdex/mmmagic/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/mscdex/mmmagic/issues/95/comments","events_url":"https://api.github.com/repos/mscdex/mmmagic/issues/95/events","html_url":"https://github.com/mscdex/mmmagic/issues/95","id":187260479,"number":95,"title":"Mmmagic Preventing App Deployment","user":{"login":"CharlieCamp98","id":22163606,"avatar_url":"https://avatars.githubusercontent.com/u/22163606?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlieCamp98","html_url":"https://github.com/CharlieCamp98","followers_url":"https://api.github.com/users/CharlieCamp98/followers","following_url":"https://api.github.com/users/CharlieCamp98/following{/other_user}","gists_url":"https://api.github.com/users/CharlieCamp98/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlieCamp98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlieCamp98/subscriptions","organizations_url":"https://api.github.com/users/CharlieCamp98/orgs","repos_url":"https://api.github.com/users/CharlieCamp98/repos","events_url":"https://api.github.com/users/CharlieCamp98/events{/privacy}","received_events_url":"https://api.github.com/users/CharlieCamp98/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-04T06:07:14Z","updated_at":"2016-11-04T11:16:19Z","closed_at":null,"body":"When attempting to deploy my Node app onto an AWS Elastic Beanstalk instance, I get the following:\r\n\r\nApplication deployment failed at 2016-11-04T05:57:04Z with exit status 1 and error: Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh failed.\r\n\r\n+ /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install\r\nnpm WARN server@0.0.1 No repository field.\r\n\r\n> mmmagic@0.4.5 install /tmp/deployment/application/node_modules/mmmagic\r\n> node-gyp rebuild\r\n\r\ngyp ERR! clean error \r\ngyp ERR! stack Error: EACCES: permission denied, rmdir 'build'\r\ngyp ERR! stack at Error (native)\r\ngyp ERR! System Linux 4.4.23-31.54.amzn1.x86_64\r\ngyp ERR! command \"/opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/bin/node\" \"/opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /tmp/deployment/application/node_modules/mmmagic\r\ngyp ERR! node -v v6.9.1\r\ngyp ERR! node-gyp -v v3.4.0\r\ngyp ERR! not ok \r\n\r\nnpm ERR! Linux 4.4.23-31.54.amzn1.x86_64\r\nnpm ERR! argv \"/opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/bin/node\" \"/opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/bin/npm\" \"--production\" \"rebuild\"\r\nnpm ERR! node v6.9.1\r\nnpm ERR! npm v3.10.8\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! mmmagic@0.4.5 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the mmmagic@0.4.5 install script 'node-gyp rebuild'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the mmmagic package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR! node-gyp rebuild\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR! npm bugs mmmagic\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR! npm owner ls mmmagic\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR! /tmp/deployment/application/npm-debug.log\r\nRunning npm install: /opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/bin/npm\r\nSetting npm config jobs to 1\r\nnpm config jobs set to 1\r\nRunning npm with --production flag\r\nFailed to run npm install. Snapshot logs for more details.\r\nTraceback (most recent call last):\r\nFile \"/opt/elasticbeanstalk/containerfiles/ebnode.py\", line 695, in \r\nmain()\r\nFile \"/opt/elasticbeanstalk/containerfiles/ebnode.py\", line 677, in main\r\nnode_version_manager.run_npm_install(options.app_path)\r\nFile \"/opt/elasticbeanstalk/containerfiles/ebnode.py\", line 136, in run_npm_install\r\nself.npm_install(bin_path, self.config_manager.get_container_config('app_staging_dir'))\r\nFile \"/opt/elasticbeanstalk/containerfiles/ebnode.py\", line 180, in npm_install\r\nraise e\r\nsubprocess.CalledProcessError: Command '['/opt/elasticbeanstalk/node-install/node-v6.9.1-linux-x64/bin/npm', '--production', 'rebuild']' returned non-zero exit status 1."},"comment":{"url":"https://api.github.com/repos/mscdex/mmmagic/issues/comments/258406164","html_url":"https://github.com/mscdex/mmmagic/issues/95#issuecomment-258406164","issue_url":"https://api.github.com/repos/mscdex/mmmagic/issues/95","id":258406164,"user":{"login":"mscdex","id":54666,"avatar_url":"https://avatars.githubusercontent.com/u/54666?v=3","gravatar_id":"","url":"https://api.github.com/users/mscdex","html_url":"https://github.com/mscdex","followers_url":"https://api.github.com/users/mscdex/followers","following_url":"https://api.github.com/users/mscdex/following{/other_user}","gists_url":"https://api.github.com/users/mscdex/gists{/gist_id}","starred_url":"https://api.github.com/users/mscdex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscdex/subscriptions","organizations_url":"https://api.github.com/users/mscdex/orgs","repos_url":"https://api.github.com/users/mscdex/repos","events_url":"https://api.github.com/users/mscdex/events{/privacy}","received_events_url":"https://api.github.com/users/mscdex/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T11:16:19Z","updated_at":"2016-11-04T11:16:19Z","body":"Sounds like permissions or file/directory ownership is not correct somewhere. A quick google search turns up results like [this](https://github.com/lovell/sharp/issues/373). Have you tried the solutions there?"}}
{"actor":{"display_login":"mscdex"}}