Sonar scanner github action fails intermittently with "Fail to parse entry in bootstrap index"

Which versions am I using

  1. I’m using Sonarqube CE 8.9 hosted in Google cloud VM accessible via an internal domain URL.
  2. Github action runs sonar scanner as part of PR builds on a web app project: SonarSource/sonarqube-scan-action@v1.1.0

what problem am I facing?

Sonar scanner github action intermittently fails with Fail to parse entry in bootstrap index: <!DOCTYPE html>. If the job is run again, it successfully completes. So I’m not sure what is going wrong.

This is the log from sonar scanner run with verbose=true

INFO: Scanner configuration file: /opt/sonar-scanner/conf/
INFO: Project root configuration file: NONE
06:39:11.701 INFO: SonarScanner
06:39:11.702 INFO: Java 11.0.17 Alpine (64-bit)
06:39:11.703 INFO: Linux 5.15.0-1022-azure amd64
06:39:11.837 DEBUG: keyStore is : 
06:39:11.838 DEBUG: keyStore type is : pkcs12
06:39:11.838 DEBUG: keyStore provider is : 
06:39:11.839 DEBUG: init keystore
06:39:11.839 DEBUG: init keymanager of type SunX509
06:39:11.981 DEBUG: Create: /opt/sonar-scanner/.sonar/cache
06:39:11.982 INFO: User cache: /opt/sonar-scanner/.sonar/cache
06:39:11.982 DEBUG: Create: /opt/sonar-scanner/.sonar/cache/_tmp
06:39:11.984 DEBUG: Extract sonar-scanner-api-batch in temp...
06:39:11.987 DEBUG: Get bootstrap index...
06:39:11.987 DEBUG: Download: ***/batch/index
06:39:12.678 DEBUG: Get bootstrap completed
06:39:12.681 INFO: ------------------------------------------------------------------------
06:39:12.681 INFO: ------------------------------------------------------------------------
06:39:12.681 INFO: Total time: 1.015s
06:39:12.697 INFO: Final Memory: 4M/17M
06:39:12.698 INFO: ------------------------------------------------------------------------
06:39:12.699 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(
	at java.base/ Method)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(
	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(
	at org.sonarsource.scanner.api.EmbeddedScanner.doStart(
	at org.sonarsource.scanner.api.EmbeddedScanner.start(
	at org.sonarsource.scanner.cli.Main.execute(
	at org.sonarsource.scanner.cli.Main.main(
Caused by: java.lang.IllegalStateException: Fail to parse entry in bootstrap index: <!DOCTYPE html>
	at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.parse(
	at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(
	at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(
	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(
	... 7 more
06:39:12.706 ERROR: 
06:39:12.706 ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

what have I tried to debug this issue?

I checked whether there is any issue with the sonar URL but it is fine because the scanner works fine otherwise. Apart from this I’m not sure what else I can check.

Also is there a difference between running the sonar scanner with -X and running it with -Dsonar.verbose=true ?

Also when I checked Sonarqube system details I see that it shows red cross for High Availability. Does this have anything to do with above issue? What does it mean when the High Availability is marked as red cross?

It looks like a new issue. I would like to know more about it. Thanks for your updates in advance.

Hey @FrankSchultz What more would you like to know about the issue? Happy to share more details.

1 Like


The bootstrap index should be a JSON doc. The fact that analysis occasionally gets an HTML doc instead indicates

  • a problem at the SonarQube server. I doubt this one, but your server logs will tell the tale
  • something “helpful” on the network is interfering and substituting something else for the expected JSON payload.


Thanks for your reply here. Basically, I would like to know more about bootstrap index.