Dear Team,
our Sonarqube PAT expired and as usual i’ve renewed it with Azure Devops but our users are still having issues when running pipelines
the error msg is
2025-03-10T11:37:56.1525944Z ##[section]Starting: SonarCloudAnalyze
2025-03-10T11:37:56.1530383Z ==============================================================================
2025-03-10T11:37:56.1530531Z Task : Run Code Analysis
2025-03-10T11:37:56.1530604Z Description : Run scanner and upload the results to the SonarCloud server.
2025-03-10T11:37:56.1530725Z Version : 1.45.1
2025-03-10T11:37:56.1530796Z Author : sonarsource
2025-03-10T11:37:56.1530882Z Help : This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.
[More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
2025-03-10T11:37:56.1531130Z ==============================================================================
2025-03-10T11:37:57.1302369Z ##[warning]This task is deprecated. Please upgrade to the latest version. For more information, refer to https://docs.sonarsource.com/sonarcloud/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/
2025-03-10T11:37:57.1350875Z [command]/agent/_work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.45.1/sonar-scanner/bin/sonar-scanner
2025-03-10T11:37:57.2109943Z INFO: Scanner configuration file: /agent/_work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.45.1/sonar-scanner/conf/sonar-scanner.properties
2025-03-10T11:37:57.2120373Z INFO: Project root configuration file: NONE
2025-03-10T11:37:57.2330259Z INFO: SonarScanner 4.8.1.3023
2025-03-10T11:37:57.2331356Z INFO: Java 17.0.14 Ubuntu (64-bit)
2025-03-10T11:37:57.2332313Z INFO: Linux 5.15.0-1079-azure amd64
2025-03-10T11:37:57.4416013Z INFO: User cache: /home/AzDevOps/.sonar/cache
2025-03-10T11:37:58.6964076Z INFO: Analyzing on SonarCloud
2025-03-10T11:37:58.6969657Z INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
2025-03-10T11:37:59.4314037Z INFO: Load global settings
2025-03-10T11:37:59.6020928Z INFO: ------------------------------------------------------------------------
2025-03-10T11:37:59.6022176Z INFO: EXECUTION FAILURE
2025-03-10T11:37:59.6022869Z INFO: ------------------------------------------------------------------------
2025-03-10T11:37:59.6025635Z INFO: Total time: 2.401s
2025-03-10T11:37:59.6231418Z INFO: Final Memory: 8M/34M
2025-03-10T11:37:59.6235715Z INFO: ------------------------------------------------------------------------
2025-03-10T11:37:59.6244347Z ##[error]ERROR: Error during SonarScanner execution
2025-03-10T11:37:59.6245809Z ERROR: Error during SonarScanner execution
2025-03-10T11:37:59.6252797Z ##[error]ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator to check the permissions of the user the token belongs to
2025-03-10T11:37:59.6253887Z ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator to check the permissions of the user the token belongs to
2025-03-10T11:37:59.6254708Z ##[error]ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2025-03-10T11:37:59.6255180Z ERROR:
2025-03-10T11:37:59.6255390Z ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2025-03-10T11:37:59.9512443Z ##[warning]LIB_ResourceFile does not exist
2025-03-10T11:37:59.9513790Z ##[warning]Resource file haven't been set, can't find loc string for key: LIB_ProcessExitCode
2025-03-10T11:37:59.9517081Z ##[warning]Error while executing SonarCloud:Analyze task: LIB_ProcessExitCode /agent/_work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.45.1/sonar-scanner/bin/sonar-scanner 2
2025-03-10T11:37:59.9519603Z ##[error]LIB_ProcessExitCode /agent/_work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.45.1/sonar-scanner/bin/sonar-scanner 2
2025-03-10T11:37:59.9624713Z ##[section]Finishing: SonarCloudAnalyze
Must-share information (formatted with Markdown):
- which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
- how is SonarQube deployed: zip, Docker, Helm
- what are you trying to achieve
- what have you tried so far to achieve this
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
on the sonar cloud end
pls see uploaded pics too.
regards,
Elisha