2

We have an hyper-v machine in our DMZ with an Ubuntu machine on it. SonarQube is installed on the VM. When we try to access it from inside the network by IP there is nothing wrong and it works fine. We have setup a firewall route to forward all traffic from the internet to the VM. The forwarder as we setup is correct as we used it multiple times with other servers and works fine. The VM has 1 NIC with the internal IP on it. Is there something we are missing? If you need any more information please let me know. Thanks in advanced.

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
Brozz
  • 31
  • 2
  • which version of SonarQube ? – Simon Brandhof Apr 18 '16 at 09:16
  • did you try to configure the property sonar.web.host documented in conf/sonar.properties ? – Simon Brandhof Apr 18 '16 at 09:19
  • Usual troubleshooting questions: can you ping the VM from the internet ? can you ping the VM from firewall ? from the Internet do you see HTTP requests passing through your firewall ? do you see them hitting SonarQube ? (`logs/acces.log`) Which error are you getting in the browser ? – Nicolas B. Apr 18 '16 at 09:27
  • We are running the latest version of SonarQube. Also it is possible to ping from external to the vm if i ping the external ip from the machine. internal ping also possible and ping from vm to internet aswell. the sonar.web.host is setup as 127.0.0.1 and the sonar.web.port is setup as 9100. the http request is passing the firewall we have put a monitoring on it. on the access.log is nothing strange to see i only see the internal requests in it. – Brozz Apr 18 '16 at 10:05
  • You mention 'internal requests': are these requests coming from the VM itself or from other machines in the same network ? which URL do these requests target ? (share screenshots if needed) is there a reverse proxy running on the SonarQube VM ? – Nicolas B. Apr 18 '16 at 11:58

1 Answers1

1

I have found the issue. In the hosts file there was no local host setup. From internal we connected by ip so there was no issue. The files were setup to connect to localhost so it did not know where to go. thanks for the support.

Brozz
  • 31
  • 2