cicd
(Ronald Maathuis)
1
When using the latest cli for sonar-scanner from dockerhub we get the an ERROR:
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Unable to create user cache: /opt/sonar-scanner/.sonar/cache
When running with sonarsource/sonar-scanner-cli:5 everything works fine.
Is this a bug in the leatest cli?
Is there a way to use the latest cli?
ganncamp
(G Ann Campbell)
2
Hi,
Welcome to the community!
Are you using the LATEST
tag or a version-specific tag? And if so, which one?
Also, have you previously used a lower version?
Thx,
Ann
cicd
(Ronald Maathuis)
3
Hi Ann,
The problem is solved now.
We started the Docker run with the --user 2000:2000
id 2000 is a root user in our environment
When we run docker without --user the sonar scan worked no errors.
Thanks.
Ronald.
1 Like