[Sonarcloud] ERROR: Caused by: You're only authorized to execute a local (preview) SonarQube analysis without pushing the results to the SonarQube se

2,188 views
Skip to first unread message

Rudi....@avantida.com

unread,
Jun 1, 2018, 5:01:35 AM6/1/18
to SonarQube
Hi,

We are still in the trial phase of SonarCloud and there is much support for it from the Development Team.
We already were able to hook it up to 4 projects (really easy) but have the same issue with 2 other projects.

Using VSTS extensions, and paid (private) SonarCloud plan.

Here is an extract of the (verbose) log:

2018-06-01T07:53:09.8967959Z 07:53:09.895 INFO: Load project branches
2018-06-01T07:53:09.9209113Z 07:53:09.916 DEBUG: GET 200 https://sonarcloud.io/api/project_branches/list?project=<snip> | time=20ms
2018-06-01T07:53:09.9799756Z 07:53:09.976 INFO: Load project branches (done) | time=81ms
2018-06-01T07:53:09.9800306Z 07:53:09.978 INFO: Load project pull requests
2018-06-01T07:53:09.9959544Z 07:53:09.993 DEBUG: GET 200 https://sonarcloud.io/api/project_pull_requests/list?project=<snip> | time=15ms
2018-06-01T07:53:09.9998926Z 07:53:09.997 INFO: Load project pull requests (done) | time=19ms
2018-06-01T07:53:09.9999347Z 07:53:09.997 INFO: Load branch configuration
2018-06-01T07:53:09.9999505Z 07:53:09.998 DEBUG: Not on a Bitbucket pipeline.
2018-06-01T07:53:10.1475937Z 07:53:10.145 INFO: Load branch configuration (done) | time=148ms
2018-06-01T07:53:10.1480426Z 07:53:10.146 INFO: Load project repositories
2018-06-01T07:53:10.1634046Z 07:53:10.162 DEBUG: GET 403 https://sonarcloud.io/batch/project.protobuf?key=<snip> | time=16ms
2018-06-01T07:53:12.0726802Z 07:53:12.071 INFO: ------------------------------------------------------------------------
2018-06-01T07:53:12.0727452Z 07:53:12.071 INFO: EXECUTION FAILURE
2018-06-01T07:53:12.0727777Z 07:53:12.071 INFO: ------------------------------------------------------------------------
2018-06-01T07:53:12.0891059Z 07:53:12.072 INFO: Total time: 32.653s
2018-06-01T07:53:12.1806713Z 07:53:12.172 ERROR: Error during SonarQube Scanner execution
2018-06-01T07:53:12.1808223Z 07:53:12.173 ERROR: Unable to load component class org.sonar.scanner.scan.ProjectLock
2018-06-01T07:53:12.1809516Z 07:53:12.173 ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.DefaultInputModuleHierarchy
2018-06-01T07:53:12.1810325Z 07:53:12.173 ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.ProjectBuildersExecutor
2018-06-01T07:53:12.1811325Z 07:53:12.174 ERROR: Caused by: Unable to load component class org.sonar.plugins.github.PullRequestProjectBuilder
2018-06-01T07:53:12.1812113Z 07:53:12.174 ERROR: Caused by: Unable to load component class org.sonar.plugins.github.GitHubPluginConfiguration
2018-06-01T07:53:12.1812554Z 07:53:12.174 ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.MutableProjectSettings
2018-06-01T07:53:12.1812997Z 07:53:12.174 ERROR: Caused by: Unable to load component class org.sonar.scanner.repository.ProjectRepositories
2018-06-01T07:53:12.1813436Z 07:53:12.174 ERROR: Caused by: You're only authorized to execute a local (preview) SonarQube analysis without pushing the results to the SonarQube server. Please contact your SonarQube administrator.
2018-06-01T07:53:12.1813787Z 07:53:12.174 ERROR:
2018-06-01T07:53:12.1814063Z 07:53:12.175 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
2018-06-01T07:53:12.1814356Z 07:53:12.172 INFO: Final Memory: 23M/261M
2018-06-01T07:53:12.1814991Z 07:53:12.172 INFO: ------------------------------------------------------------------------

These two projects were set up the same way as the other 4, just adding the tasks to the CI build, fill in the config values and let it run. The other 4 projects showed up in sonarcloud without any issue, we were able to also set up the PR validation and such, its just awesome.
So we really want these other projects (one is the new project currently in heavy development on .net code and angular).

Thank you.

Rudi....@avantida.com

unread,
Jun 5, 2018, 10:08:29 AM6/5/18
to SonarQube
Could this have something to do with the absence of Code Coverage for the project?

Here are some issues also getting the 404 on that url: https://sonarcloud.io/batch/project.protobuf?key=SomeKey

Fabrice Bellingard

unread,
Jun 5, 2018, 1:18:00 PM6/5/18
to Rudi....@avantida.com, SonarQube
Hi Rudi,

since you are doing analyses of private code, I will continue this discussion privately through the support question you opened.

Best regards,
Fabrice Bellingard | SonarSource
SonarCloud Product Manager
https://sonarsource.com


--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/081c0d0f-6b58-40d3-912d-fbf58254e010%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages