Hello,
We’ve been creating a new droplet in DigitalOcean in order to be used as a Github runner for our development activities. After running the tests, there is the SonarCloud Scan step. On the other similar droplets that we have (with similar configuration), the connection and analysis work as expected. However, for this specific droplet, we have connection errors:
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /github/workspace/sonar-project.properties
INFO: SonarScanner 5.0.1.3006
INFO: Java 17.0.8 Alpine (64-bit)
INFO: Linux 6.1.0-9-amd64 amd64
INFO: User cache: /opt/sonar-scanner/.sonar/cache
ERROR: SonarCloud server [https://sonarcloud.io] can not be reached
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 5.531s
ERROR: Error during SonarScanner execution
org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
INFO: Final Memory: 5M/48M
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:185)
at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:123)
at org.sonarsource.scanner.cli.Main.execute(Main.java:74)
From the same machine, I can ping sonarcloud.io with no problems.
I’m suspecting that the droplet IP is somehow blocked by sonarcloud, but can this be confirmed? Or there might be other reasons for this connection problem.
Any help would be appreciated,
Thanks,
Cristian N