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

Constantly getting permission issues with yarn #3707

Closed
niftylettuce opened this issue Jun 11, 2018 · 2 comments
Closed

Constantly getting permission issues with yarn #3707

niftylettuce opened this issue Jun 11, 2018 · 2 comments

Comments

@niftylettuce
Copy link
Contributor

Anytime a change is made I get a conflict on deploy (my ecosystem.json has a uid and gid set, and it's attempting to run yarn (to install deps) and then restart the threads).

[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
info If you think this is a bug, please open a bug report with the information provided in "/var/www/staging/source/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error An unexpected error occurred: "EPERM: operation not permitted, chmod '/var/www/staging/source/node_modules/@ava/babel-preset-stage-4/node_modules/@babel/core/node_modules/.bin/babylon'".

My user deploy belongs to the www-data group. I've tried this to no avail as well:

sudo chmod -R g+wr /var/www
sudo chown -R www-data:www-data /var/www

Seems that the owner of the files upon any changes getting pushed to the repo is the user deploy as opposed to www-data group. Does pm2 not respect gid? I can't find docs on this and the new docs site needs some work (e.g. algolia search doesn't even work for "group" keyword, yet the text "group" does exist in the docs).

@niftylettuce
Copy link
Contributor Author

Related to yarnpkg/yarn#992

@wallet77
Copy link
Contributor

wallet77 commented Jul 9, 2018

I close this one cause it's not related to pm2.
Feel free to reopen if necessary.

@wallet77 wallet77 closed this as completed Jul 9, 2018
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

2 participants