All sonarcloud jobs failing today starting at 10:45am CT

  • ALM / CI system used: Gitlab
  • Scanner command used when applicable sonar-scanner or ./mvnw sonar:sonar -Dsonar.projectKey=triValence_scm-spring -Dmaven.repo.local=$MAVEN_USER_HOME -Dsonar.qualitygate.wait=true
  • Languages of the repository: java and angular
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project scm-api: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator -> [Help 1]

ERROR: Error during SonarScanner execution
ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator

We haven’t changed anything on our side. I did try updating the SONAR_TOKEN to no avail.

I’ve verified the API keys are working for both projects by configuring the SonarLint plugin in Intellij and both are able to connect to the org and list projects.

Interestingly enough, as the day progressed I noticed the sonarcloud analysis job is failing on merge request / branch pipelines, but not on main…

Hey there.

Have you checked that your token under organization-level Administration > Organization Settings > GitLab connectivity management is still valid?

Hi Colin,
image

Thanks.

Can you provide more logs around when the error occurs, so we can understand when in the scanning process you receive the error message?

I’m attaching logs that show a success when running on main and a failure when running on a merge request for an angular app and a springboot java app.

angular_fails_merge_request.log (5.3 KB)
angular_success_main.log (15.4 KB)
java_success_main.log (15.7 KB)
java_failed_merge_request.log (258.6 KB)

We’re experiencing the same problem, also from GitLab Merge Request analysis using the Maven scanner. We receive a link to check the details and the error says “project doesn’t exist”.

CE Task finished abnormally with status: FAILED, you can check details here: https://sonarcloud.io/api/ce/task?id=xxxxx

Our issue has been identified as related to our subscription status. The “project does not exist” error was because I did not have permissions to see the full error.

Thanks @Patrick_Brickey

I’m going to move this to a private message.