Randomly receiving You're not authorized to run analysis. Please contact the project administrator

  • versions used. 9.3 SonarQube, SonarScanner 4.6.2.2472
  • error observed:
##[error]ERROR: Error during SonarScanner execution
ERROR: You're not authorized to run analysis. Please contact the project administrator.
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
ERROR: Error during SonarScanner execution
ERROR: You're not authorized to run analysis. Please contact the project administrator.
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
##[error]The process '/agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/5.4.0/sonar-scanner/bin/sonar-scanner' failed with exit code 2
  • steps to reproduce: Run an analysis using sonar-scanner, having the same issue when running in local and in an azure pipeline
  • potential workaround: Not found

I have permissions to run analysis

When running using the -X option

12:22:46.599 INFO: CPD Executor CPD calculation finished (done) | time=5801ms
12:22:50.363 INFO: Analysis report generated in 3156ms, dir size=118.3 MB
12:23:16.655 INFO: Analysis report compressed in 26292ms, zip size=41.9 MB
12:23:16.655 INFO: Analysis report generated in /home/xxxxxx/work/xxxxxxx/.scannerwork/scanner-report
12:23:16.655 DEBUG: Upload report
12:23:26.545 DEBUG: POST 403 https://sonarqube.cloudapp.xxxxxxx.com/api/ce/submit?projectKey=Salesforce_xxxxxxx_NEW&characteristic=branch%3Dmain&characteristic=branchType%3DBRANCH | time=9889ms
12:23:26.560 DEBUG: eslint-bridge server will shutdown
12:23:31.974 INFO: ------------------------------------------------------------------------
12:23:31.974 INFO: EXECUTION FAILURE
12:23:31.974 INFO: ------------------------------------------------------------------------
12:23:31.975 INFO: Total time: 8:06.179s
12:23:32.320 INFO: Final Memory: 373M/1260M
12:23:32.320 INFO: ------------------------------------------------------------------------

Hi,

Since you’re getting this error intermittently and only on report submission, it’s likely that something on your network, e.g. a proxy, is blocking the analysis report submission. My guess is that it’s “forbidding” POSTs larger than a certain size. You should check with your network folks.

 
HTH,
Ann

Hi!

We are also receiving this error with small reports

Is there any way to better debug this error? Trying to debug a 7 minute analisys is a little bit complicated. For example stopping the sonar scanner just before the post and allow to relaunch it from there

Hi,

My default is still that there’s something in between interfering with the POST, but you could try generating a new analysis token from a user you’re sure has rights on the project.

Can you share your full analysis log (as code-formatted text, rather than a screenshot)?

 
Ann

Hi!!

Thanks for answering Ann.

This is the full analysis

2022-02-28T12:45:20.6207348Z ##[section]Starting: SonarQubeAnalyze
2022-02-28T12:45:20.6214105Z ==============================================================================
2022-02-28T12:45:20.6214501Z Task         : Run Code Analysis
2022-02-28T12:45:20.6214855Z Description  : Run scanner and upload the results to the SonarQube server.
2022-02-28T12:45:20.6215155Z Version      : 5.4.0
2022-02-28T12:45:20.6215397Z Author       : sonarsource
2022-02-28T12:45:20.6216039Z Help         : Version: 5.4.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

[More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
2022-02-28T12:45:20.6216764Z ==============================================================================
2022-02-28T12:45:20.8883728Z [command]/agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/5.4.0/sonar-scanner/bin/sonar-scanner
2022-02-28T12:45:20.9151019Z ##[error]Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
2022-02-28T12:45:20.9166888Z Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
2022-02-28T12:45:21.0966482Z INFO: Scanner configuration file: /agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/5.4.0/sonar-scanner/conf/sonar-scanner.properties
2022-02-28T12:45:21.0977063Z INFO: Project root configuration file: /agent/_work/18/xxxxxxxxxxxx/sonar-project.properties
2022-02-28T12:45:21.1459426Z INFO: SonarScanner 4.6.2.2472
2022-02-28T12:45:21.1464766Z INFO: Java 11.0.8 AdoptOpenJDK (64-bit)
2022-02-28T12:45:21.1468479Z INFO: Linux 5.3.0-1034-azure amd64
2022-02-28T12:45:21.6235748Z INFO: User cache: /home/AzDevOps/.sonar/cache
2022-02-28T12:45:22.1005487Z INFO: Scanner configuration file: /agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/5.4.0/sonar-scanner/conf/sonar-scanner.properties
2022-02-28T12:45:22.1027888Z INFO: Project root configuration file: /agent/_work/18/xxxxxxxxxxxx/sonar-project.properties
2022-02-28T12:45:22.1831661Z INFO: Analyzing on SonarQube server 9.3.0
2022-02-28T12:45:22.1840656Z INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
2022-02-28T12:45:22.9278332Z INFO: Load global settings
2022-02-28T12:45:23.1131808Z INFO: Load global settings (done) | time=188ms
2022-02-28T12:45:23.1224467Z INFO: Server id: 2AF77100-AX6eC_2V0On-XEL4fsnr
2022-02-28T12:45:23.1408068Z INFO: User cache: /home/AzDevOps/.sonar/cache
2022-02-28T12:45:23.1447032Z INFO: Load/download plugins
2022-02-28T12:45:23.1448452Z INFO: Load plugins index
2022-02-28T12:45:23.2592745Z INFO: Load plugins index (done) | time=114ms
2022-02-28T12:45:23.8136342Z INFO: Load/download plugins (done) | time=668ms
2022-02-28T12:45:24.3144292Z INFO: Loaded core extensions: developer-scanner
2022-02-28T12:45:25.4587354Z INFO: Process project properties
2022-02-28T12:45:25.4594904Z INFO: Process project properties (done) | time=1ms
2022-02-28T12:45:25.4598362Z INFO: Execute project builders
2022-02-28T12:45:25.4624102Z INFO: Execute project builders (done) | time=2ms
2022-02-28T12:45:25.4815980Z INFO: Project key: Salesforce_xxxxxxxxxxxx
2022-02-28T12:45:25.4816909Z INFO: Base dir: /agent/_work/18/xxxxxxxxxxxx
2022-02-28T12:45:25.4817389Z INFO: Working dir: /agent/_work/18/xxxxxxxxxxxx/.scannerwork
2022-02-28T12:45:25.5510701Z INFO: Load project settings for component key: 'Salesforce_xxxxxxxxxxxx'
2022-02-28T12:45:25.6159721Z INFO: Load project settings for component key: 'Salesforce_xxxxxxxxxxxx' (done) | time=64ms
2022-02-28T12:45:25.7502638Z INFO: Load project branches
2022-02-28T12:45:25.8183421Z INFO: Load project branches (done) | time=68ms
2022-02-28T12:45:25.8205328Z INFO: Load project pull requests
2022-02-28T12:45:26.1900905Z INFO: Load project pull requests (done) | time=370ms
2022-02-28T12:45:26.1909527Z INFO: Load branch configuration
2022-02-28T12:45:26.1929453Z INFO: Found manual configuration of branch/PR analysis. Skipping automatic configuration.
2022-02-28T12:45:26.2036911Z INFO: Load branch configuration (done) | time=13ms
2022-02-28T12:45:26.3223046Z INFO: Auto-configuring with CI 'Azure DevOps'
2022-02-28T12:45:26.3243296Z INFO: Load quality profiles
2022-02-28T12:45:26.4511737Z INFO: Load quality profiles (done) | time=125ms
2022-02-28T12:45:26.4588886Z INFO: Auto-configuring with CI 'Azure DevOps'
2022-02-28T12:45:26.4614522Z INFO: Load active rules
2022-02-28T12:45:29.8910998Z INFO: Load active rules (done) | time=3430ms
2022-02-28T12:45:29.9183190Z INFO: Pull request 64661 for merge into develop/LE/LEFV from feature/LE/LEFV/202202
2022-02-28T12:45:29.9885872Z INFO: Indexing files...
2022-02-28T12:45:29.9932708Z INFO: Project configuration:
2022-02-28T12:45:29.9934559Z INFO:   Included sources: **/classes/**, **/triggers/**, **/aura/**, **/lwc/**, **/visualforce/**, **/components/**
2022-02-28T12:45:29.9936369Z INFO:   Excluded sources: *.xml
2022-02-28T12:45:39.5564509Z INFO: 15261 files indexed
2022-02-28T12:45:39.5579120Z INFO: 49965 files ignored because of inclusion/exclusion patterns
2022-02-28T12:45:39.5594064Z INFO: Quality profile for apex: Sonar way
2022-02-28T12:45:39.5598678Z INFO: Quality profile for css: Sonar way
2022-02-28T12:45:39.5609616Z INFO: Quality profile for js: Sonar way
2022-02-28T12:45:39.5615746Z INFO: Quality profile for web: Sonar way
2022-02-28T12:45:39.5619940Z INFO: Quality profile for xml: Sonar way
2022-02-28T12:45:39.5626200Z INFO: ------------- Run sensors on module Salesforce_xxxxxxxxxxxx
2022-02-28T12:45:39.8923295Z INFO: Load metrics repository
2022-02-28T12:45:39.9356733Z INFO: Load metrics repository (done) | time=43ms
2022-02-28T12:45:44.5515139Z INFO: Sensor C# Project Type Information [csharp]
2022-02-28T12:45:44.5749915Z INFO: Sensor C# Project Type Information [csharp] (done) | time=24ms
2022-02-28T12:45:44.5763415Z INFO: Sensor C# Analysis Log [csharp]
2022-02-28T12:45:44.6053588Z INFO: Sensor C# Analysis Log [csharp] (done) | time=29ms
2022-02-28T12:45:44.6064676Z INFO: Sensor C# Properties [csharp]
2022-02-28T12:45:44.6073349Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2022-02-28T12:45:44.6080642Z INFO: Sensor HTML [web]
2022-02-28T12:45:44.6093207Z INFO: Sensor HTML is restricted to changed files only
2022-02-28T12:45:44.6328253Z INFO: Load project repositories
2022-02-28T12:45:45.9540335Z INFO: Load project repositories (done) | time=1321ms
2022-02-28T12:45:49.2136564Z INFO: Sensor HTML [web] (done) | time=4605ms
2022-02-28T12:45:49.2144481Z INFO: Sensor XML Sensor [xml]
2022-02-28T12:45:49.2151515Z INFO: Sensor XML Sensor is restricted to changed files only
2022-02-28T12:45:51.0191829Z INFO: 43 source files to be analyzed
2022-02-28T12:45:51.9909403Z INFO: 43/43 source files have been analyzed
2022-02-28T12:45:51.9923579Z INFO: Sensor XML Sensor [xml] (done) | time=2778ms
2022-02-28T12:45:51.9930208Z INFO: Sensor cs-vf Checks [codescanlang]
2022-02-28T12:45:51.9935191Z INFO: Running CodeScanLang
2022-02-28T12:45:52.0029534Z INFO: Sensor cs-vf Checks [codescanlang] (done) | time=10ms
2022-02-28T12:45:52.0034265Z INFO: Sensor cs-js Checks [codescanlang]
2022-02-28T12:45:52.0038619Z INFO: Running CodeScanLang
2022-02-28T12:45:53.4997272Z INFO: Extracting /agent/_work/18/xxxxxxxxxxxx/.scannerwork/86e69ce4b3b7899f32762bb4b63037ff-codescan-language-eslint-linux
2022-02-28T12:45:55.7575946Z WARN: Invalid character encountered in file /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXXXXXX/XXXXXXX.js at line 108 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
2022-02-28T12:45:56.3601333Z INFO: Sensor cs-js Checks [codescanlang] (done) | time=4357ms
2022-02-28T12:45:56.3608817Z INFO: Sensor Text Sensor [text]
2022-02-28T12:45:56.3839963Z INFO: 14716 source files to be analyzed
2022-02-28T12:45:58.9127737Z WARN: Invalid character encountered in file /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/classes/XXXXXXX.cls at line 159 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
2022-02-28T12:46:04.2582576Z INFO: 14716/14716 source files have been analyzed
2022-02-28T12:46:04.2585452Z INFO: Sensor Text Sensor [text] (done) | time=7898ms
2022-02-28T12:46:04.2590646Z INFO: Sensor VB.NET Project Type Information [vbnet]
2022-02-28T12:46:04.2705769Z INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=10ms
2022-02-28T12:46:04.2709070Z INFO: Sensor VB.NET Analysis Log [vbnet]
2022-02-28T12:46:04.2947506Z INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=24ms
2022-02-28T12:46:04.2949208Z INFO: Sensor VB.NET Properties [vbnet]
2022-02-28T12:46:04.2952949Z INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
2022-02-28T12:46:04.2955473Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2022-02-28T12:46:04.3395477Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2022-02-28T12:46:04.3405764Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2022-02-28T12:46:04.3407719Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=46ms
2022-02-28T12:46:04.3409304Z INFO: Sensor Apex Sensor [sonarapex]
2022-02-28T12:46:04.3411068Z INFO: Sensor Apex Sensor is restricted to changed files only
2022-02-28T12:46:04.3538988Z INFO: 112 source files to be analyzed
2022-02-28T12:46:14.3546047Z INFO: 79/112 files analyzed, current file: force-app/main/default/classes/ESESO_cls_utiles.cls
2022-02-28T12:46:17.5552081Z INFO: 112/112 source files have been analyzed
2022-02-28T12:46:17.5559905Z INFO: Sensor Apex Sensor [sonarapex] (done) | time=13215ms
2022-02-28T12:46:17.5561367Z INFO: Sensor Test coverage Sensor for Apex [sonarapex]
2022-02-28T12:46:17.5567676Z INFO: Sensor Test coverage Sensor for Apex [sonarapex] (done) | time=0ms
2022-02-28T12:46:17.5569110Z INFO: Sensor JavaScript analysis [javascript]
2022-02-28T12:46:19.9127574Z INFO: Deploying custom rules bundle jar:file:/home/AzDevOps/.sonar/cache/c8528df5e461867acf060f71702dbe39/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /agent/_work/18/xxxxxxxxxxxx/.scannerwork/.sonartmp/eslint-bridge-bundle/package/custom-rules16359317122025736231
2022-02-28T12:46:22.2961734Z INFO: 1881 source files to be analyzed
2022-02-28T12:46:32.3333103Z INFO: 1/1881 file analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:46:42.3346972Z INFO: 36/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:46:52.5764133Z INFO: 75/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:47:02.3355450Z INFO: 169/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:47:12.3358545Z INFO: 267/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:47:22.3362549Z INFO: 351/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXXXXXXX/XXXXXXXX.js
2022-02-28T12:47:32.3368196Z INFO: 423/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:47:42.3368085Z INFO: 480/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXXXXXXX/XXXXXXXX.js
2022-02-28T12:47:52.3373063Z INFO: 549/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXXXXXXX/XXXXXXXX.js
2022-02-28T12:48:02.3375669Z INFO: 617/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXXXXXXX/XXXXXXXX.js
2022-02-28T12:48:12.3380687Z INFO: 700/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXXXXXX/XXXXXXX.js
2022-02-28T12:48:22.3383639Z INFO: 789/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXXXXXXX/XXXXXXXX.js
2022-02-28T12:48:32.3391708Z INFO: 865/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXXXXXXX/XXXXXXXX.js
2022-02-28T12:48:42.3391848Z INFO: 937/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:48:52.3423238Z INFO: 1004/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXXXXXXX/XXXXXXXX.js
2022-02-28T12:49:02.6465757Z INFO: 1085/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:49:12.3402478Z INFO: 1163/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:49:22.3404219Z INFO: 1265/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXX/XXX.js
2022-02-28T12:49:32.3416179Z INFO: 1340/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:49:42.3418231Z INFO: 1445/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:49:52.3419842Z INFO: 1530/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:50:02.3447206Z INFO: 1584/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:50:12.3428017Z INFO: 1677/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:50:22.3432134Z INFO: 1773/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/aura/XXXXXX/XXXXXX.js
2022-02-28T12:50:32.3435868Z INFO: 1847/1881 files analyzed, current file: /agent/_work/18/xxxxxxxxxxxx/force-app/main/default/lwc/XXX/XXXXXXXX.js
2022-02-28T12:50:39.0971913Z INFO: 1881/1881 source files have been analyzed
2022-02-28T12:50:39.0973947Z INFO: Sensor JavaScript analysis [javascript] (done) | time=261538ms
2022-02-28T12:50:39.0975266Z INFO: Sensor TypeScript analysis [javascript]
2022-02-28T12:50:39.1054505Z INFO: No input files found for analysis
2022-02-28T12:50:39.1056302Z INFO: Sensor TypeScript analysis [javascript] (done) | time=11ms
2022-02-28T12:50:39.1057873Z INFO: Sensor CSS Metrics [javascript]
2022-02-28T12:50:39.1070401Z INFO: Sensor CSS Metrics is restricted to changed files only
2022-02-28T12:50:39.1994701Z INFO: Sensor CSS Metrics [javascript] (done) | time=93ms
2022-02-28T12:50:39.2002038Z INFO: Sensor CSS Rules [javascript]
2022-02-28T12:50:39.2009199Z INFO: Sensor CSS Rules is restricted to changed files only
2022-02-28T12:50:39.2584122Z INFO: 32 source files to be analyzed
2022-02-28T12:50:40.2932165Z INFO: 32/32 source files have been analyzed
2022-02-28T12:50:40.2998301Z INFO: Sensor CSS Rules [javascript] (done) | time=1094ms
2022-02-28T12:50:40.2999474Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2022-02-28T12:50:40.4161698Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=120ms
2022-02-28T12:50:40.4165930Z INFO: Sensor Serverless configuration file sensor [security]
2022-02-28T12:50:40.4328777Z INFO: 0 Serverless function entries were found in the project
2022-02-28T12:50:40.4395704Z INFO: 0 Serverless function handlers were kept as entrypoints
2022-02-28T12:50:40.4402686Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=24ms
2022-02-28T12:50:40.4404500Z INFO: Sensor AWS SAM template file sensor [security]
2022-02-28T12:50:40.4585199Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=18ms
2022-02-28T12:50:40.4592577Z INFO: Sensor JavaSecuritySensor [security]
2022-02-28T12:50:40.4614184Z INFO: Reading type hierarchy from: /agent/_work/18/xxxxxxxxxxxx/.scannerwork/ucfg2/java
2022-02-28T12:50:40.4621830Z INFO: Read 0 type definitions
2022-02-28T12:50:40.4665849Z INFO: Reading UCFGs from: /agent/_work/18/xxxxxxxxxxxx/.scannerwork/ucfg2/java
2022-02-28T12:50:40.4681194Z INFO: No UCFGs have been included for analysis.
2022-02-28T12:50:40.4689241Z INFO: Sensor JavaSecuritySensor [security] (done) | time=10ms
2022-02-28T12:50:40.4697189Z INFO: Sensor CSharpSecuritySensor [security]
2022-02-28T12:50:40.4705908Z INFO: Reading type hierarchy from: /agent/_work/18/xxxxxxxxxxxx/ucfg_cs2
2022-02-28T12:50:40.4713475Z INFO: Read 0 type definitions
2022-02-28T12:50:40.4721126Z INFO: Reading UCFGs from: /agent/_work/18/xxxxxxxxxxxx/ucfg_cs2
2022-02-28T12:50:40.4728588Z INFO: No UCFGs have been included for analysis.
2022-02-28T12:50:40.4736256Z INFO: Sensor CSharpSecuritySensor [security] (done) | time=4ms
2022-02-28T12:50:40.4743793Z INFO: Sensor PhpSecuritySensor [security]
2022-02-28T12:50:40.4752891Z INFO: Reading type hierarchy from: /agent/_work/18/xxxxxxxxxxxx/.scannerwork/ucfg2/php
2022-02-28T12:50:40.4762722Z INFO: Read 0 type definitions
2022-02-28T12:50:40.4771213Z INFO: Reading UCFGs from: /agent/_work/18/xxxxxxxxxxxx/.scannerwork/ucfg2/php
2022-02-28T12:50:40.4779430Z INFO: No UCFGs have been included for analysis.
2022-02-28T12:50:40.4787133Z INFO: Sensor PhpSecuritySensor [security] (done) | time=5ms
2022-02-28T12:50:40.4794431Z INFO: Sensor PythonSecuritySensor [security]
2022-02-28T12:50:40.4801994Z INFO: Reading type hierarchy from: /agent/_work/18/xxxxxxxxxxxx/.scannerwork/ucfg2/python
2022-02-28T12:50:40.4809437Z INFO: Read 0 type definitions
2022-02-28T12:50:40.4817042Z INFO: Reading UCFGs from: /agent/_work/18/xxxxxxxxxxxx/.scannerwork/ucfg2/python
2022-02-28T12:50:40.4824448Z INFO: No UCFGs have been included for analysis.
2022-02-28T12:50:40.4831590Z INFO: Sensor PythonSecuritySensor [security] (done) | time=4ms
2022-02-28T12:50:40.4839696Z INFO: Sensor JsSecuritySensor [security]
2022-02-28T12:50:40.4849804Z INFO: Reading type hierarchy from: /agent/_work/18/xxxxxxxxxxxx/.scannerwork/ucfg2/js
2022-02-28T12:50:40.7350086Z INFO: Read 0 type definitions
2022-02-28T12:50:40.7358211Z INFO: Reading UCFGs from: /agent/_work/18/xxxxxxxxxxxx/.scannerwork/ucfg2/js
2022-02-28T12:50:49.3741736Z INFO: 12:50:49.370867 Building Runtime Type propagation graph
2022-02-28T12:50:50.9161329Z INFO: 12:50:50.845391 Running Tarjan on 137391 nodes
2022-02-28T12:50:51.2535859Z INFO: 12:50:51.251767 Tarjan found 137368 components
2022-02-28T12:50:52.1142368Z INFO: 12:50:52.10219 Variable type analysis: done
2022-02-28T12:50:52.1213741Z INFO: 12:50:52.117451 Building Runtime Type propagation graph
2022-02-28T12:50:54.3476382Z INFO: 12:50:54.346714 Running Tarjan on 137391 nodes
2022-02-28T12:50:54.4497754Z INFO: 12:50:54.448584 Tarjan found 137368 components
2022-02-28T12:50:54.7886531Z INFO: 12:50:54.787809 Variable type analysis: done
2022-02-28T12:50:54.8048352Z INFO: Analyzing 16917 ucfgs to detect vulnerabilities.
2022-02-28T12:51:11.1549998Z INFO: Taint analysis starting. Entrypoints: 1882
2022-02-28T12:51:11.1573643Z INFO: Running symbolic analysis for 'JS'
2022-02-28T12:51:16.8233907Z INFO: Taint analysis: done.
2022-02-28T12:51:16.8241498Z INFO: Sensor JsSecuritySensor [security] (done) | time=36340ms
2022-02-28T12:51:16.8248203Z INFO: Sensor Apex CPD [codescan]
2022-02-28T12:51:16.8480405Z INFO: Sensor Apex CPD [codescan] (done) | time=23ms
2022-02-28T12:51:16.8487266Z INFO: Sensor VisualForce/Lightning CPD [codescan]
2022-02-28T12:51:16.8531729Z INFO: Sensor VisualForce/Lightning CPD [codescan] (done) | time=4ms
2022-02-28T12:51:16.8581910Z INFO: ------------- Run sensors on project
2022-02-28T12:51:16.9132173Z INFO: Sensor Zero Coverage Sensor
2022-02-28T12:51:17.5400186Z INFO: Sensor Zero Coverage Sensor (done) | time=627ms
2022-02-28T12:51:17.5428941Z INFO: SCM Publisher is disabled
2022-02-28T12:51:18.2378518Z INFO: CPD Executor 498 files had no CPD blocks
2022-02-28T12:51:18.2386372Z INFO: CPD Executor Calculating CPD for 1523 files
2022-02-28T12:51:19.9618831Z INFO: CPD Executor CPD calculation finished (done) | time=1719ms
2022-02-28T12:51:21.3786663Z INFO: Analysis report generated in 1198ms, dir size=11.8 MB
2022-02-28T12:51:26.9112184Z INFO: Analysis report compressed in 5532ms, zip size=6.6 MB
2022-02-28T12:51:33.5329853Z INFO: ------------------------------------------------------------------------
2022-02-28T12:51:33.5336710Z INFO: EXECUTION FAILURE
2022-02-28T12:51:33.5343104Z INFO: ------------------------------------------------------------------------
2022-02-28T12:51:33.5366731Z INFO: Total time: 6:12.455s
2022-02-28T12:51:34.5273038Z INFO: Final Memory: 349M/1167M
2022-02-28T12:51:34.5275616Z INFO: ------------------------------------------------------------------------
2022-02-28T12:51:34.5291754Z ##[error]ERROR: Error during SonarScanner execution
ERROR: You're not authorized to run analysis. Please contact the project administrator.
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2022-02-28T12:51:34.5295372Z ERROR: Error during SonarScanner execution
2022-02-28T12:51:34.5296354Z ERROR: You're not authorized to run analysis. Please contact the project administrator.
2022-02-28T12:51:34.5297255Z ERROR: 
2022-02-28T12:51:34.5297953Z ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
2022-02-28T12:51:35.7064323Z ##[error]The process '/agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/5.4.0/sonar-scanner/bin/sonar-scanner' failed with exit code 2
2022-02-28T12:51:35.7097426Z ##[section]Finishing: SonarQubeAnalyze

Running with the -X

12:36:46.310 INFO: CPD Executor CPD calculation finished (done) | time=1264ms
12:36:47.381 INFO: Analysis report generated in 950ms, dir size=11.1 MB
12:36:54.958 INFO: Analysis report compressed in 7577ms, zip size=6.5 MB
12:36:54.960 INFO: Analysis report generated in /home/xxxx/work/XXXXXXXXXXXXXXX/.scannerwork/scanner-report
12:36:54.960 DEBUG: Upload report
12:37:06.521 DEBUG: POST 403 https://sonarqube.cloudapp.XXXX.com/api/ce/submit?projectKey=XXXXXXXXXXXXXXX&characteristic=pullRequest%3D64661 | time=11560ms
12:37:06.527 DEBUG: eslint-bridge server will shutdown
12:37:11.927 INFO: ------------------------------------------------------------------------
12:37:11.927 INFO: EXECUTION FAILURE
12:37:11.927 INFO: ------------------------------------------------------------------------
12:37:11.927 INFO: Total time: 6:10.954s
12:37:12.244 INFO: Final Memory: 345M/1157M
12:37:12.244 INFO: ------------------------------------------------------------------------

We are also talking with the network guys in case we can find anything

Kind regards,
Miguel

Hi,

BTW, I noticed you’re not using the latest version of the scanner. I don’t expect it to have any impact on the problem you’re facing, but it’s best practice to keep up.

 
FWIW
Ann

@mnunezdm Did you find any solution for this. I’m in same error.

In my case was a firewall error, the analysis failed when the report was over X size, we disabled those rules and we were able to fix this

1 Like