-
Notifications
You must be signed in to change notification settings - Fork 249
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
Permission denied @ dir_chdir - /code (Errno::EACCES) #54
Comments
What are the permissions on the current directory where you run |
Access: (0700/drwx------) Uid: ( 503/ silk) Gid: ( 20/ staff) silk is my user id |
So that is the issue. You've only given read access to the user bit. The group and (most importantly) all cannot read this directory.
Note: for directories "execute" means "able to change into the directory and/or list directory contents". These are unusual permissions for a project directory and prevents anyone other than the user (503/silk) from entering the directory or seeing anything within it. This is also preventing our CLI from reading the code for the purposes of analysis (it does not run as you, it runs as a dedicated, unprivileged user). I'd recommend opening up the permissions on this directory with
If this gets you passed your current error but you find more permissions errors on files or directories within the project, it's possible they also have unexpectedly restrictive permissions on them as well. In that case you can either exclude them using |
changed permission (why not adding a check on permission before starting? ) and it has gone forward. it started from the stuff in the public folder and in fact all files had wrong permission but adding:
didn't work, at the end I updated all permissions inside public folder but it started the same behaviour in the vendor folder :( |
Does exclude_paths
- public/**
- vendor/** Not work? |
Unfortunately we have to prioritize improvements like this against all the other things we want to do and we just haven't gotten to it yet. Please know that it's on our roadmap though. |
I've had the same problem, disabling SElinux "solves" it. |
Installed via homebrew on osx 10.10.4.
Updated to version
0.0.22
via brew upgrade, re-rancodeclimate engines:install
Inside the project directory running
codeclimate analyze
I continue to getThe text was updated successfully, but these errors were encountered: