Sonarqube server 502 from browser

Must-share information (formatted with Markdown):

  • which versions are you using: 9.9.3
  • how is SonarQube deployed: docker compose
  • what are you trying to achieve: run the server on ec2
  • what have you tried so far to achieve this: i am able to start the sonarqube in docker when seeing the logs i can see that its operational. When i try to access it via browser i am not able to access it in browser console it gives “502 (Connection refused)”. But if i use curl i am able to get its loading screen.


Welcome to the community!

When I double-check the meaning of 502, I find that it’s actually:

HTTP status code that occurs when a server acting as a gateway or proxy receives an invalid or faulty response from another server in the communication chain .

So it looks like this probably isn’t coming from SonarQube itself. You can double-check that by looking at your server logs to see if you actually find a 502 there.