"Project doesn't exist"

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
  • Scanner command used when applicable (private details masked)
  • Languages of the repository
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • Steps to reproduce
  • Potential workaround

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

Using Github/Jenkins.
Scanner command is sonar-scanner -X.
Code is “C” with some Python.

The error I’m getting is:

{
  "errors": [
    {
      "msg": "Project doesn't exist"
    }
  ]
}

Relevant bits in the Jenkinsfile:

      ...
      python3 -m gcovr --keep --root=../src . --sonarqube="${WORKSPACE}/sonar/amd64/gcov.xml"
    '''
    withSonarQubeEnv('sonar') {
      sh 'sonar-scanner -X'
    }
    timeout(time: 15, unit: 'MINUTES') {
      waitForQualityGate abortPipeline: true
    } // timeout
  ...

sonar-project.properties:

sonar.host.url=https://sonarcloud.io
sonar.organization=exampleco-eval
sonar.projectKey=exampleco_proj
sonar.sources=scripts,src,cmake,exampleco_imu,exampleco_node_almanac,perf_profile,exampleco_pressure

# Supporting cast:
sonar.cfamily.build-wrapper-output=build/build_wrapper_output_directory
sonar.cfamily.cache.enabled=true
sonar.cfamily.cache.path=cache
sonar.cfamily.gcov.reportsPath=.
sonar.projectBaseDir=.
#sonar.python.coverage.reportPaths=coverage.xml
sonar.cfamily.gcov.reportPaths=gcov.xml
sonar.sourceEncoding=UTF-8
sonar.tests=hw_tests,tests

but 100% for certain the project exists. And, sometimes when the url that returns this error gives that all parts of the quality gate passed so that’s even more confusing. Other pipelines are

Hi,

Could you please provide your full analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann