Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Sonarqube - 9.8.0
Scanner - 5.13.0 -
how is SonarQube deployed: zip, Docker, Helm
Helm -
what are you trying to achieve
Upload the report -
what have you tried so far to achieve this
Checked global authentication token, recreated and checked permission.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
Hi there,
It was working alright until yesterday. Nothing is changed related to permissions and token.
I checked and recreated global token and still the same issue. We use Azure Devops pipeline and bitbucket as SCM.
I ran the scan with debug mode and found it gets POST 403 error. I checked our network and I can confirm there is no rules or anything blocking the report from uploading.
And I am facing issue related to all the projects not just one. Thank you.
16:37:56.598 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
16:37:56.600 DEBUG: 'C#' skipped because there is no related file in current project
16:37:56.602 DEBUG: 'C# Tests Coverage Report Import' skipped because there is no related file in current project
16:37:56.603 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file in current project
16:37:56.605 DEBUG: 'C# Unit Test Results Import' skipped because there is no related file in current project
16:37:56.605 DEBUG: 'VB.NET' skipped because there is no related file in current project
16:37:56.607 DEBUG: 'VB.NET Tests Coverage Report Import' skipped because there is no related file in current project
16:37:56.608 DEBUG: '[Deprecated] VB.NET Integration Tests Coverage Report Import' skipped because there is no related file in current project
16:37:56.609 DEBUG: 'VB.NET Unit Test Results Import' skipped because there is no related file in current project
16:37:56.610 DEBUG: 'Java CPD Block Indexer' skipped because there is no related file in current project
16:37:56.612 DEBUG: Sensors : Analysis Warnings import -> Zero Coverage Sensor
16:37:56.613 INFO: Sensor Analysis Warnings import [csharp]
16:37:56.617 INFO: Sensor Analysis Warnings import [csharp] (done) | time=4ms
16:37:56.618 INFO: Sensor Zero Coverage Sensor
16:37:56.619 INFO: Sensor Zero Coverage Sensor (done) | time=1ms
16:37:56.621 INFO: SCM Publisher No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
16:37:56.626 INFO: CPD Executor Calculating CPD for 0 files
16:37:56.629 INFO: CPD Executor CPD calculation finished (done) | time=0ms
16:37:56.888 INFO: Analysis report generated in 248ms, dir size=213.5 kB
16:37:56.921 INFO: Analysis report compressed in 31ms, zip size=27.4 kB
16:37:56.923 INFO: Analysis report generated in /usr/src/.scannerwork/scanner-report
16:37:56.924 DEBUG: Upload report
16:37:57.027 DEBUG: POST 403 "URL" | time=101ms
16:37:57.063 INFO: ------------------------------------------------------------------------
16:37:57.063 INFO: EXECUTION FAILURE
16:37:57.063 INFO: ------------------------------------------------------------------------
16:37:57.064 INFO: Total time: 31.410s
16:37:57.216 INFO: Final Memory: 29M/100M
16:37:57.217 INFO: ------------------------------------------------------------------------
16:37:57.217 ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Failed to upload report: You're not authorized to run analysis. Please contact the project administrator.
at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:225)
at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:153)
at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:374)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:135)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
at org.sonarsource.scanner.cli.Main.main(Main.java:62)
Caused by: You're not authorized to run analysis. Please contact the project administrator.