ERROR: SonarQube server [https://sonarcloud.io] can not be reached

I’m getting the error running the sonar scanner for ms build (dotnet core) on my mac

dotnet-sonarscanner begin /k:"our-key" /d:sonar.organization="our-org" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="mytoken" /d:sonar.cs.opencover.reportsPaths="./coverage/*.xml"**

SonarScanner for MSBuild 4.5
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
18:39:41.959  Updating build integration targets...
18:39:41.991  Fetching analysis configuration settings...
18:39:43.922  Provisioning analyzer assemblies for cs...
18:39:43.923  Installing required Roslyn analyzers...
18:39:44.803  Provisioning analyzer assemblies for vbnet...
18:39:44.803  Installing required Roslyn analyzers...
18:39:44.831  Pre-processing succeeded.

**dotnet build mysolutions.sln**
...build fine...

**dotnet sonarscanner end /d:sonar.login="mytoken"**
SonarScanner for MSBuild 4.5
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
SONAR_SCANNER_OPTS is not configured. Setting it to the default value of -Xmx1024m
Calling the SonarQube Scanner...
INFO: Scanner configuration file: /myuser/.dotnet/tools/.store/dotnet-sonarscanner/4.5.0/dotnet-sonarscanner/4.5.0/tools/netcoreapp2.1/any/sonar-scanner-3.2.0.1227/conf/sonar-scanner.properties
INFO: Project root configuration file: /solution path here/.sonarqube/out/sonar-project.properties
INFO: SonarQube Scanner 3.2.0.1227
INFO: Java 1.8.0_191 Oracle Corporation (64-bit)
INFO: Mac OS X 10.14.2 x86_64
INFO: SONAR_SCANNER_OPTS=-Xmx1024m
INFO: User cache: /my home/.sonar/cache
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.601s
ERROR: SonarQube server [https://sonarcloud.io] can not be reached
INFO: Final Memory: 6M/245M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Unable to execute SonarQube
ERROR: Caused by: Fail to get bootstrap index from server
ERROR: Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
ERROR: Caused by: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
ERROR: Caused by: unable to find valid certification path to requested target
ERROR: 
The SonarQube Scanner did not complete successfully
18:40:28.602  Creating a summary markdown file...
18:40:28.603  Post-processing failed. Exit code: 1

Please advise…

Hi,

The error seems to indicate an SSL issue. It might come from your specific settings (for example, are you using a proxy to connect to internet?).

You can get more verbose logs by setting environment variable before running the end phase:
SONAR_SCANNER_OPTS=-Djavax.net.debug=all

Please share the output with us.

It seems like the problem is with our network. Thanks