Sonarqube Connection Error

Hello,

I am having this error, checking if you can identify what I am doing wrong. The Sonarqube is installed on a remote server. I am able to do a curl from my local machine to the sonarhost url.

The lambdas for Unit test are written in Python.
Sonarqube Version: Community Edition v10.5.1

12:55:13.770 ERROR Error during SonarScanner CLI execution
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.scanner.lib.internal.IsolatedClassloader@1b065145-org.sonar.scanner.bootstrap.ScannerPluginRepository’: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.scanner.lib.internal.IsolatedClassloader@1b065145-org.sonar.scanner.bootstrap.ScannerPluginInstaller’: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.scanner.lib.internal.IsolatedClassloader@1b065145-org.sonar.scanner.bootstrap.PluginFiles’: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘GlobalConfiguration’ defined in org.sonar.scanner.bootstrap.GlobalConfigurationProvider: Unsatisfied dependency expressed through method ‘provide’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘GlobalServerSettings’ defined in org.sonar.scanner.bootstrap.GlobalServerSettingsProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.scanner.bootstrap.GlobalServerSettings]: Factory method ‘provide’ threw exception; nested exception is java.lang.IllegalStateException: Fail to request url: [https://sonarqube.dev.int/api/settings/values.protobuf]

Hi,

This boils down to:

You say you can curl the server from your local machine. Is that where you’re trying to run analysis from? And what happens when you curl - from wherever it is that analysis is running - the URL in the error message?

 
Ann

Hi Ann,

Yes, I am running the analysis from my local machine. When I curl from my local machine to the Sonarqube server(url) it’s successful. But when I run the sonar scanner command on CLI I get the error message.

“Sonarqube server https://xxx.sss.int cannot be reached”

Hi,

That PKIX error is an SSL problem. The docs should help.

 
Ann