Sonarqube 10.3 - Error during SonarScanner execution: Failed to upload report

Sonarqube 10.3
Ubuntu Server 22.04 LTS
GitLab 16

ERROR MESSAGE

13:42:56.157 DEBUG: Error response content: {"errors":[{"msg":"Insufficient privileges"}]}, headers: {connection=[keep-alive], content-type=[application/json], date=[Mon, 04 Dec 2023 12:42:56 GMT], server=[nginx/1.18.0 (Ubuntu)], transfer-encoding=[chunked], vary=[accept-encoding]}
13:42:57.234 INFO: ------------------------------------------------------------------------
13:42:57.234 INFO: EXECUTION FAILURE
13:42:57.234 INFO: ------------------------------------------------------------------------
13:42:57.235 INFO: Total time: 1:01.678s
13:42:57.457 INFO: Final Memory: 59M/204M
13:42:57.457 INFO: ------------------------------------------------------------------------
13:42:57.458 ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Failed to upload report: 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.
	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:239)
	at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:163)
	at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:371)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:201)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:180)
	at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:139)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:201)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:180)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:71)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:65)
	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(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	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 analyze this project or the project doesn't exist on SonarQube and you're not authorized to create it. Please contact an administrator.


I’m the only one having this problem or do we need more information?

I found it, I modified the project rights, but above all I deleted the project and redid the import. AND it works correctly

1 Like