# Regarding SonarQube execution failed

**URL:** <https://community.sonarsource.com/t/regarding-sonarqube-execution-failed/132904>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [January 3, 2025, 11:40am UTC](https://community.sonarsource.com/t/regarding-sonarqube-execution-failed/132904 "2025-01-03T11:40:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Huzaifa](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@Huzaifa](https://community.sonarsource.com/u/Huzaifa)\
**Post date:** [January 3, 2025, 11:40am UTC](https://community.sonarsource.com/t/regarding-sonarqube-execution-failed/132904/1 "2025-01-03T11:40:46Z")

</div>

Hello Team,

\*We are using sonarqube community edition of 10.6 version with sonar-scanner-cli-6.2.1.4610

- We deployed sonarqube by zip
- We are not able to execute sonarqube
- We have updated the user key also verified environment variable of sonar scanner and java home. We have executed from command line and IDE as well

**ERROR You’re not authorized to analyze this project or the project doesn’t exist on SonarQube and you’re not authorized to create it. Please contact an administrator.  
INFO EXECUTION FAILURE**

Thanks,  
Huzaifa Siddiqui

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [January 6, 2025, 9:29am UTC](https://community.sonarsource.com/t/regarding-sonarqube-execution-failed/132904/2 "2025-01-06T09:29:43Z")

</div>

Does the project already exist on SonarQube? If not, does the user for whom the token was generated have [**Create Projects** permission](https://docs.sonarsource.com/sonarqube-community-build/instance-administration/system-functions/security/#global-permissions)?

---

<div class="post-metadata">

**Author:** ![Huzaifa](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@Huzaifa](https://community.sonarsource.com/u/Huzaifa)\
**Post date:** [January 7, 2025, 6:28am UTC](https://community.sonarsource.com/t/regarding-sonarqube-execution-failed/132904/3 "2025-01-07T06:28:26Z")

</div>

Hi Colin,

Yes, Project is already existed on SonarQube and user have Browse, see code and execute analysis permissions and admin user has create permission.

Thanks,  
Huzaifa Siddiqui

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [January 10, 2025, 10:28pm UTC](https://community.sonarsource.com/t/regarding-sonarqube-execution-failed/132904/4 "2025-01-10T22:28:36Z")

</div>

- How are you supplying the authentication (the token) to the scanner? Via an analysis parameter (`sonar.token`), via the `SONAR_TOKEN` environment variable? Something else?

- What type of [token](https://docs.sonarsource.com/sonarqube-server/latest/user-guide/managing-tokens/#types-of-tokens) is it? You can tell from the prefix:
  - `squ_` is a user token, that among other things is an analysis token valid for any project the user has **Execute Analysis** permissions on
  - `sqa_` is an analysis token valid for any project the user has **Execute Analysis** permissions on
  - `sqp_` is an project-specific analysis token, only valid for the project it was provisioned for

---

<div class="post-metadata">

**Author:** ![Huzaifa](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@Huzaifa](https://community.sonarsource.com/u/Huzaifa)\
**Post date:** [January 13, 2025, 11:09am UTC](https://community.sonarsource.com/t/regarding-sonarqube-execution-failed/132904/5 "2025-01-13T11:09:05Z")

</div>

Hi Colin,

Find below answers to your questions:

1. 
  - How are you supplying the authentication (the token) to the scanner? Via an analysis parameter (`sonar.token`), via the `SONAR_TOKEN` environment variable? Something else?  
 → User itself generates login token and copy the token and paste it in sonar.property file (sonar.login = \*\*\*)

2. What type of token is it? You can tell from the prefix:  
 → We are using squ user token. User can see code, browse and execute analysis.

Let me know if I am missing anything.

Thanks,  
Huzaifa

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [January 15, 2025, 10:18am UTC](https://community.sonarsource.com/t/regarding-sonarqube-execution-failed/132904/6 "2025-01-15T10:18:04Z")

</div>

I still think it’s likely that the project key you’ve specified (`sonar.projectKey`) doesn’t exist on your SonarQube Server – and your user does not have **Create Projects** permission. You can temporarily test this by granting that user **Create Projects** permission and running analysis again.
