Comments (8)
I've had the same problem, disabling SElinux "solves" it.
from codeclimate.
What are the permissions on the current directory where you run codeclimate analyze
? You should be able to see that with stat .
or ls -l ../
.
from codeclimate.
Access: (0700/drwx------) Uid: ( 503/ silk) Gid: ( 20/ staff)
silk is my user id
from codeclimate.
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.
7 - user (503/silk) can read (+4) / write (+2) / execute (+1)
0 - group (20/staff) can do nothing
0 - all can do nothing
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 chmod 755 .
7 - user can read/write/execute
5 - group can read/execute
5 - all can read/execute
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 exclude_paths
or modify their permissions similarly.
from codeclimate.
changed permission (why not adding a check on permission before starting? ) and it has gone forward.
Now the issue seems to be about the exclude_paths
not being considered:
Error: EACCES, permission denied '/code/vendor/assets/javascripts/fastclick.js
it started from the stuff in the public folder and in fact all files had wrong permission but adding:
exclude_paths:
- public
- public/**/*
- public/*
didn't work, at the end I updated all permissions inside public folder but it started the same behaviour in the vendor folder :(
from codeclimate.
Does
exclude_paths
- public/**
- vendor/**
Not work?
from codeclimate.
why not adding a check on permission before starting?
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.
from codeclimate.
@acarpe i believe your issue is the same as #82, which we've hopefully just released a fix for. I'm going to close this and centralize discussion there.
Sorry for the troubles and the long time to fix, it was a much more complicated issue than it appeared.
from codeclimate.
Related Issues (20)
- [Question] Atom plugin for Windows
- Dockerimage - 0.86.0 "No such file or directory" HOT 5
- Include latest RuboCop channels in engines.yml HOT 1
- Codeclimate is throwing security issue for AWS Lambda ephemeral storage
- Support for Golang seems to be unmaintained HOT 1
- add engine for salt-lint
- Cppcheck --inline-suppr flag not present HOT 1
- Reek configuration custom location HOT 1
- Feature request: Plugin to detect secret sprawl
- CppCheck report a huge input error when scan big c++ repo
- Publish pipeline failed for version 0.93
- CONTAINER_TIMEOUT_SECONDS not honored? HOT 1
- ImagePullFailure error
- Please release sonar-java-7-2
- HTML output add severity field
- [Feature Request] forced color output for text format
- Add libyear support
- Upgrade standardrb support
- Reek plugin is executed under ruby-2.6 with parser-3.2.1.0
- Support for C# Asp.net MVC project on .net framework 4.8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeclimate.