Skip to content

Issue with the qodana python linter in root-less execution #194

Answered by Cazayus
Cazayus asked this question in Q&A
Discussion options

You must be logged in to vote

I actually recently found the reason why such an error occurs.
In the qodana image, the folder /root/.config/idea is empty, which means that if you mount a folder in it, it will be created with root permissions and so a standard user won't be able to access it.

The solution is to only mount things to the paths listed here and no deeper.

In my case, I had to change my mount to something like this :
-v /home/user/qodana/python/qodana_cache/confidea:/root/.config/idea/
where my confidea folder contains "/options/jdk.table.xml"

instead of :
-v /home/user/qodana/python/qodana_cache/confidea/options/jdk.table.xml:/root/.config/idea/options/jdk.table.xml

to achieve the same result

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Cazayus
Comment options

@tiulpin
Comment options

@Cazayus
Comment options

Comment options

You must be logged in to vote
1 reply
@niconoe-
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Cazayus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants