ERROR: SonarQube server [http://192.168.1.xx:9000] can not be reached

Hello,

I installed sonarqube locally using docker and it worked (http://192.168.1.xx:9000).
I wanted to do an analysis of my project which is on gitlab.
For that, I created a file “sonar-project.properties”.
image
in the file “gitlab ci”, I added these lines of codes


but unfortunately I have this problem:

Someone could help me please ?

Hi,

One of the first things that happens during analysis is that the scanner contacts the server to get the data it will need to run the analysis. That call is failing, meaning that your GitLab instance can’t talk to your SonarQube instance. I suspect this is about the visibility of your Docker-hosted SonarQube to the network.

 
HTH,
Ann

Hello,

I installed sonarqube this time on windows and I still get the same error.

Hi,

Can you reach that curl that URL from the machine you’re running analysis on?

 
Ann