GithubHelp home page GithubHelp logo

Comments (8)

lucasmartins avatar lucasmartins commented on May 18, 2024 2

I've had the same problem, disabling SElinux "solves" it.

from codeclimate.

pbrisbin avatar pbrisbin commented on May 18, 2024

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.

acarpe avatar acarpe commented on May 18, 2024

Access: (0700/drwx------) Uid: ( 503/ silk) Gid: ( 20/ staff)

silk is my user id

from codeclimate.

pbrisbin avatar pbrisbin commented on May 18, 2024

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.

acarpe avatar acarpe commented on May 18, 2024

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.

pbrisbin avatar pbrisbin commented on May 18, 2024

Does

exclude_paths
- public/**
- vendor/**

Not work?

from codeclimate.

pbrisbin avatar pbrisbin commented on May 18, 2024

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.

pbrisbin avatar pbrisbin commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.