SonarScanner Execution Analysis failed through github action

Hi Team,

We are doing certain level of analysis (sort of POC) on SonarQube application and SonarScanner functionality through Github Action.
For the same, I have installed SonarQube through docker and able to integrate with github repository. Also created the and build.yml file. After that, I pushed and committed one C++ code into github.

I tried to run the job to check sonar scanner functionality, whether it is giving the analysis result on SonarQube application. But I got the build failed error i.e. SonarScanner execution got failed.

Here, I am attaching the build.yml file plus the error which we received for the same during build run.
Is it happen because we are trying to run application through docker or is there some other issue. Do let us know any solution for the same.

error.txt (6.9 KB)

buildyml.txt (598 Bytes)


Welcome to the community!

Here’s your problem:

Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
Caused by: Failed to connect to localhost/
Caused by: Connection refused (Connection refused)

So you need to look at the availability and connectivity of your SonarQube instance.