-
Notifications
You must be signed in to change notification settings - Fork 935
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
file permission errors on various action and commands #1774
Comments
thought - this most likely happens when either an npm or bit command ran as root. some files/dirs require root permissions, so when running a command as another account - it breaks. |
Bit cannot access files or directories. Make sure Bit has proper access permissions. |
Continuing an offline conversation: Suggested warning messages: Instead of EACCESS: When running bit as root: |
I think that the error should be extended and include that this error might occur if the user ran npm/yarn/git command as sudo. So perhaps something like this:
Note - I've removed the reference to the |
I was able to reproduce it easily by running the following:
Changed the error message and added a warning when a user is using |
There are many errors that are reported anonymously through Bit about file-access issues.
EACCES: permission denied, open '<path>/.git/bit/objects/a5/...106f01f31f73feed'
EACCES: permission denied, mkdir '/opt/bit/first-scope/objects/06'
EACCES: permission denied, open '<path>/package.json'
EACCES: permission denied, rmdir '<path>/node_modules/@bit/<component-id>/dist'
It's hard to triage the issues, as I was unable to recreate them locally. However, these are the most common type of errors. I assume that they happen when any file/dir that was created in a project was not assigned with the correct permission afterward, so the permissions used when running the Bit command are not enough to read/write a file.
The text was updated successfully, but these errors were encountered: