Fail to get bootstrap index from server error 404

Hi there,

It’s my first time playing around this so I’m sorry if I say something weird.

My %JAVA_HOME% it’s: D:\openjdk-20.0.2_windows-x64_bin
My Sonarqube version it’s: Community Edition Version 8.9.9 (build 56886)
My SonarScanner it’s: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-5.0.1.3006.zip

Im trying to run SonarScanner from command line to scan some projects folders but it always fails.

####################
sonar-scanner.properties
####################

#Configure here general information about the environment, such as SonarQube server connection details for example
#No information about specific project should appear here
#----- Default SonarQube server
sonar.host.url=https://sonarqube.grupocgd.com
#----- Default source code encoding
sonar.sourceEncoding=UTF-8
sonar.login=12c9c04538a4b06780a1728661de7740a1ef3456
sonar.projectKey=GIT_SDEUF

#################
Console PowerShell:
#################

PS D:\sonar-scanner-cli-5.0.1.3006\bin> .\sonar-scanner.bat
INFO: Scanner configuration file: D:\sonar-scanner-cli-5.0.1.3006\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 5.0.1.3006
INFO: Java 20.0.2 Oracle Corporation (64-bit)
INFO: Windows Server 2019 10.0 amd64
INFO: User cache: C:\Users\YCK2346\.sonar\cache
ERROR: SonarQube server [https://sonarqube.grupocgd.com] can not be reached
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.522s
INFO: Final Memory: 4M/28M
INFO: ------------------------------------------------------------------------
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)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
        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)
        at org.sonarsource.scanner.cli.Main.main(Main.java:62)
Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
        at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:42)
        at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
        at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
        ... 7 more
Caused by: java.lang.IllegalStateException: Status returned by url [https://sonarqube.grupocgd.com/batch/index] is not valid: [404]
        at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:118)
        at org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:99)
        at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:39)
        ... 10 more
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
PS D:\sonar-scanner-cli-5.0.1.3006\bin>

##################

The same URL doesn’t work on browser neither.

Do you have any tip I can look forward?

Best Regards,
Fernando Serrano

So from what URL do you usually access your SonarQube server?

And, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.9.9 → 9.9.1 → 10.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.