ERROR: Project not found

Hello! Can you please help me with the error below?

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
Attach some logs
SonarCloud check.txt (7.2 MB)

Thank you.

Any updates on this please?

Hi,

Welcome to the community!

Have you double-checked the things in the error message: sonar.projectKey, sonar.organization, and the SONAR_TOKEN environment variable?

Most likely it’s a missing token.

 
HTH,
Ann

There is SONAR_TOKEN in Github secrets. I double checked it

Hi,

I don’t remember ever seeing an instance of this warning where the problem wasn’t one of the three values listed in the error message.

 
Ann

Hello Ann,

I need sonar for my Gradle (Android) project. In the project I setup sonar in 2 parts (ylm file and Top-level build gradle file). Maybe I’m missing anything?



Also, in Security tab I see existing token and it’s never used…

Hi,

Can you echo the token out to the log to make sure it’s there when you expect it?

 
Ann