-
Hi Team, This discussion should maybe be an issue instead, but I saw that very few were ever created, so unsure if it is the right procedure or not. Since at least the 1st of August, it seems impossible to launch qodana-python in root-less mode. The exact error is : open /root/.config/idea/options/security.xml: permission denied Does anyone else ran into this problem ? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hello, Could you please share your Qodana configuration? Do you mount anything to the Qodana container? |
Beta Was this translation helpful? Give feedback.
-
Hi. I am facing the exact same issue, with Qodana for PHP. Here is the command I run: docker run --rm \
--user 1853899550:100 \
--tty --env HTTP_PROXY= --env HTTPS_PROXY= \
--memory 4g --memory-swap 5g \
--volume <my-project-sources>:/data/project \
--volume <my-report-folder>:/data/results \
--volume <my-project-sources>/profile.xml:/data/profile.xml \
--env _JAVA_OPTIONS=-Xmx4096m \
--volume <generic-plugin-options-folder>/plugins/PHPAnnotations:/opt/idea/plugins/PHPAnnotations \
--volume <generic-plugin-options-folder>/plugins/PhpInspectionsEA.jar:/opt/idea/plugins/PhpInspectionsEA.jar \
--volume <generic-plugin-options-folder>/options/ea_extended.xml:/root/.config/idea/options/ea_extended.xml \
jetbrains/qodana-php:2023.2-eap --source-directory <src-directory> \
--save-report \
--run-promo false \
--property=idea.headless.enable.statistics=false Output message is instantly:
It started like 2 or 3 days ago. |
Beta Was this translation helpful? Give feedback.
-
I actually recently found the reason why such an error occurs. 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 : instead of : to achieve the same result |
Beta Was this translation helpful? Give feedback.
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