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

Openshift installation permission errors #721

Closed
jchapelle opened this issue Feb 23, 2017 · 8 comments
Closed

Openshift installation permission errors #721

jchapelle opened this issue Feb 23, 2017 · 8 comments
Labels

Comments

@jchapelle
Copy link

jchapelle commented Feb 23, 2017

Installation of sharp on openshift fails because user does not have permission to access the dev dir.

sharp@0.17.2 install /var/lib/openshift/58a620a67628e1625b00001f/app-root/runtime/repo/node_modules/sharp
node-gyp rebuild

gyp WARN EACCES user "58a620a67628e1625b00001f" does not have permission to access the dev dir "/var/lib/openshift/58a620a67628e1625b00001f/.node-gyp/7.5.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
gyp: /tmp/.node-gyp/7.5.0/common.gypi not found (cwd: /var/lib/openshift/58a620a67628e1625b00001f/app-root/runtime/repo/node_modules/sharp) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/var/lib/openshift/58a620a67628e1625b00001f/app-root/data/.nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:308:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:192:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 2.6.32-642.13.1.el6.x86_64
gyp ERR! command "/var/lib/openshift/58a620a67628e1625b00001f/app-root/data/.nodejs/bin/node" "/var/lib/openshift/58a620a67628e1625b00001f/app-root/data/.nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/lib/openshift/58a620a67628e1625b00001f/app-root/runtime/repo/node_modules/sharp
gyp ERR! node -v v7.5.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules/ursa):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Linux 2.6.32-642.13.1.el6.x86_64
npm ERR! argv "/var/lib/openshift/58a620a67628e1625b00001f/app-root/data/.nodejs/bin/node" "/var/lib/openshift/58a620a67628e1625b00001f/app-root/data/.nodejs/bin/npm" "install" "sharp"
npm ERR! node v7.5.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! sharp@0.17.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.17.2 install script 'node-gyp rebuild'.

@lovell
Copy link
Owner

lovell commented Feb 23, 2017

This looks like an Openshift permissions problem - see also nodejs/node-gyp#959

Sometimes npm install --unsafe-perm "fixes" these sort of things.

@jchapelle
Copy link
Author

Just tried that with no luck ...

@lovell
Copy link
Owner

lovell commented Mar 27, 2017

@jchapelle Were you able to make any progress?

@jchapelle
Copy link
Author

jchapelle commented Mar 27, 2017 via email

@lovell lovell changed the title Openshift installation Openshift installation permission errors Mar 27, 2017
@lovell
Copy link
Owner

lovell commented Mar 27, 2017

@jchapelle Thanks for the update. Let's leave this open in case others with more experience of Openshift can help.

@jchapelle
Copy link
Author

jchapelle commented Mar 27, 2017 via email

@lovell
Copy link
Owner

lovell commented Mar 27, 2017

Possibly related sources of help:
http://stackoverflow.com/a/26150783/4625124
nodejs/node-gyp#21

@lovell
Copy link
Owner

lovell commented May 13, 2017

I'm going to close this as there have been no further reports of what appears to be a permissions problem specific to Openshift and/or node-gyp.

@lovell lovell closed this as completed May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants