Project Key not creating on fly and also unable to push reports to sonarqube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

  • what are you trying to achieve
    Trying to run analysis and push the xml reports to enterprise sonarqube for python, Also want my project to be created on fly say in this scenario I want the testing project to be created after executing below commands…
    Note: I have provide my right token in the export SONAR_LOGIN, and also the right SONAR_HOST_URL

  • what have you tried so far to achieve this
    After running the below steps on the container…
    export SONAR_HOST_URL=
    export SONAR_LANG=python
    sonar-scanner -X -Dsonar.projectKey=testing
    -Dsonar.sources=. -Dsonar.sources.inclusions=/.py
    -Dsonar.tests=. -Dsonar.test.inclusions='/test_*.py’ -Dsonar.test.exclusions=/vendor/**

Below is the error, I am getting even after trying with multiple login values…
23:42:24.874 DEBUG: POST 403 | time=37ms

23:42:24.879 DEBUG: stylelint-bridge server will shutdown

23:42:29.899 INFO: ------------------------------------------------------------------------


23:42:29.899 INFO: ------------------------------------------------------------------------

23:42:29.899 INFO: Total time: 52.669s

23:42:30.896 INFO: Final Memory: 309M/734M

23:42:30.896 INFO: ------------------------------------------------------------------------

23:42:30.896 ERROR: Error during SonarScanner execution

You’re not authorized to run analysis. Please contact the project administrator.

Hey there.

Does the user you generated the token for have Create Projects and Execute Analysis permissions?

Hi Colin, Yep, the login has the permission for both create project and also for execute analysis. Thank you!

Do we have an option in the debug result to check the end point is reachable?