Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux/AWS beanstalk failure : permission denied #220

Closed
BHare1985 opened this issue Jun 20, 2016 · 1 comment
Closed

Linux/AWS beanstalk failure : permission denied #220

BHare1985 opened this issue Jun 20, 2016 · 1 comment

Comments

@BHare1985
Copy link

BHare1985 commented Jun 20, 2016

mapnik@3.5.13 preinstall /tmp/deployment/application/node_modules/windwalker/node_modules/mapnik
npm install node-pre-gyp

npm WARN package.json mapnik@3.5.13 No license field.
npm ERR! Linux 4.4.8-20.46.amzn1.x86_64
npm ERR! argv "/opt/elasticbeanstalk/node-install/node-v4.4.3-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v4.4.3-linux-x64/bin/npm" "install" "node-pre-gyp"
npm ERR! node v4.4.3
npm ERR! npm v2.15.1
npm ERR! path /tmp/.npm/node-pre-gyp
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir '/tmp/.npm/node-pre-gyp'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, mkdir '/tmp/.npm/node-pre-gyp']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/tmp/.npm/node-pre-gyp',
npm ERR! parent: 'mapnik' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

Node 4.4.3 on AMI Linux (AWS Beanstalk) when installing node mapnik 3.5.13. Worked finewith Node 0.12.5 and node mapnik 3.4.5

SSH to the directiory under ec2-user and re-running the command "/opt/elasticbeanstalk/node-install/node-v4.4.3-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v4.4.3-linux-x64/bin/npm" "install" "node-pre-gyp" has it install without problem.

I have a feeling this may be an amazon problem more than a node-pre-gyp, but any help is appreciated. I have verified I haven't deployed with my node_modules folder as others with the same error have said to try.

One reason why I think this may be node-pre-gyp related is a google of the issue mostly points to this module. Also upon inspecting /tmp/.npm/ I see all the other modules which installed fine, so if it was a permission issue how come they were able to install into that directory without issue but node-pre-gyp fails, not sure.

@BHare1985
Copy link
Author

This is no longer an issue, culprit was node-mapnik's setting node-pre-gyp as preinstall and amazon beanstalk running preinstall as non-root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant