You're not authorized to analyze this project or the project doesn't exist on SonarQube

We are using SonarQube 10.6v

  • Our SonarQube is deployed by Zip.
  • We trying to execute SonarQube
  • We have updated the sonar scanner to 6.1.0.4477 version and setup our organization URL in sonar scanner(.property file) and setup the user key also.

Previously we were using old sonar scanner where we were facing java version error, then we upgraded the latest sonar scanner version of 6.1.0.4477 and after latest sonar scanner upgradation we are now facing 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.”

User has execute permission and we setup the user key also in property file but still facing same error.

Please help.
Thanks in advance.

Regards,
Huzaifa

Hi Huzaifa,

It sounds like you’ve specified your sonar.host.url in the sonar-scanner.properties. Is that also where you specified your sonar.token? For that matter, are you providing the sonar.token property? Because using sonar.login to pass your token was deprecated, and I suspect (although I’m having a hard time finding the records) that support for it was dropped in recent scanner versions.

 
Ann