Issues with setting up Sonarqube

We hare having issues spinning up SonarQube for a POC. We cannot get Azure Devops Server to communicate with Sonarqube server and vice versa.

error we are getting is: ##[error][SQ] API GET ‘/api/server/version’ failed, status code was: 503

How do we not use a proxy?
I have tried:
On the agent machine, find the folder:
[BUILD AGENT ROOT]\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\[VERSION YOU USE HERE]\classic-sonar-scanner-msbuild

create a text file named SonarScanner.MSBuild.exe.config and put the following content in it:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.net>
    <defaultProxy enabled="false" />
  </system.net>
</configuration>

I have also tried:
Adding NO_PROXY environment variables for the address

Silly question, but I assume you’ve tried verifying that you can ping both ways between the machines? I ran into a similar problem before I found out that IT had a firewall rule blocking the SonarQube ports from the build server.

1 Like