ERROR: Not authorized. Analyzing this project requires authentication. Please provide a user token in sonar.login or other credential

Hello,

I tried to audit using sonarqube my project which is on gitlab but I had problems:

the file sonar-project.properties :

could you help me please it’s urgent ?

I ran these commands:
docker run
–rm
–net host
-e SONAR_HOST_URL=“http://localhost:9000
-v /home/mobaxterm/Desktop/nom_projet/:/root/src
sonarsource/sonar-scanner-cli
-Dsonar.projectKey=
-Dsonar.sonar.projectName=
-Dsonar.sonar.projectVersion=1.0
-Dsonar.sonar.sourceEncoding=UTF-8
-Dsonar.sonar.host.url=http://localhost:9000
-Dsonar.login=xxxx49fe8040c1124958be8d992521abd527a43

I have this as result

but on sonarqube I have this error

Hi,

Welcome to the community!

I guess you solved the first problem and appended a second one here? We try to keep it to one question per thread. Otherwise things get messy.

 
Ann