Cannot open SonarQube in web browser

I am trying to integrate SonarQube and Jenkins, for which I installed both of these tools on a remote Vagrant VM(Ubuntu 14.04 LTS). Everything works fine, the build is successful when I run the SonarQube analysis in Jenkins, but I can not open the Sonar toolbar on http://<myipaddress>:portmy windowed (local) machine. When the build is successful in Jenkins, it gives me a URL to view the Analysis report, but this URL gives me ERR_CONNECTION_TIMED_OUT.

The options I've tried so far are:

  • Tried to disable the Ubuntu firewall
  • When I execute tracert from Windows, it gives me "Destination host unreachable".
  • When I try to ping my remote computer from a Windows computer, it gives me a programmed time error.
  • Trial check sonarqube logs that show no errors.

I tried other options but no one works. It will be very helpful if anyone can guide me through this. I am not quite able to understand how to open the SonarQube toolbar on my local machine through a web browser, although it was installed on a remote computer. Thank you in advance!

+4
source share
1 answer

Verify that the firewall allows access to the SonarQube port from other networks.

Run the following command to check if the SonarQube port is open or not:

sudo ufw status verbose

If your firewall is disabled, this command will give you the following result:

Status: inactive

In this case, turn on the firewall by running sudo ufw enable, and then run

sudo ufw status verbose

:

enter image description here

SonarQube, , :

sudo ufw allow <SONAR_PORT>/tcp

SonarQube .

+3

Source: https://habr.com/ru/post/1683290/


All Articles