ERROR: Error during SonarScanner execution

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?

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

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