ERROR: Project not found. Please check the ‘sonar.projectKey’ and ‘sonar.organization’ properties, the ‘SONAR_TOKEN’ environment variable, or contact the project administrator
ERROR: Error during SonarScanner execution log-sonar-prepare.txt (13.8 KB) log-sonar.txt (99.2 KB)
The strange thing is that if we create a new one, a project with another name works.
Good Morning.
Good afternoon.
Can you please help me with a problem with Sonar Cloud.
When trying to analyze a project it returns the message that the project does not exist (ERROR: Project not found.). But the project exists in my database. The contour we used to rename the current project and rotate the pipe again to create a new project.
Thanks for the logs. More fully, the error you’re getting is this:
ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator
Hi Ann. Thanks for your response. We have 800 pipelines that use the same template. The same token is used in all the pipelines. Apparently on november 8th the Sonar analysis task started to throw this error. It worked in the morning, and in the afternoon, we started to get the error. We have around 10 projects with the same problem for now. The rest is working fine. But the problem seems to be spreading and everyday we see a new repo with the problem.
We use azure devops tasks. This task is configured with a SonarCloud Connection in which we insert the token.
I just realized you created two threads for the same problem.
Please don’t do that. Do feel free though to ping on an existing thread if after 3+ days you begin to feel it’s been overlooked. I’m going to combine your two threads.
I checked the logs and noticed that your SONAR_TOKEN belongs to a user who doesn’t have the necessary permission to submit the analysis report. The ‘Execute Analysis’ permission is required for this. Please note that you may also need the ‘Browse’ permission to request the quality status. These permissions can be given to a user at the organization or project level.