Error execution " You're not authorized to analyze this project or the project doesn't exist on Son"

Must-share information (formatted with Markdown):

  • which versions are you using

SonarQube 10.7.0.96327, Scanner 6.2.1)

  • how is SonarQube deployed: zip

  • what are you trying to achieve

sonar-scanner.bat  -Dsonar.projectKey="CToolsSonarqubescannerbinprojectsP1" -Dsonar.sources="." -Dsonar.host.url="http://localhost:9000" -Dsonar.token="sqp_XXXXXXXxx"

when finish the scan I have the follow error:

You’re not authorized to analyze this project or the project doesn’t exist on SonarQube and you’re not authorized to create it. Please contact an administrator.

  • what have you tried so far to achieve this
    Inside of Sonarqube add full control permisions

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi @JBL,

Assuming the token you are passing is yours and you can access the project through the UI, check for any typos in the projectKey and make sure your user account has the ‘Execute Analysis’ permissions.

If this project doesn’t exist already, you’ll need ‘Create Project’ permission globally. This can be verified at the Administration Tab → Security → Global Permissions → User permission.

Thanks,
Aravind