title: Prepare Analysis on SoanrQube fails with [SQ] API GET '/api/server/version' failed, status code was: 502
body: <p>I am using Vnext tfs build to run sonar qube task, but I am getting following error:</p>
  
  <pre><code>2019-03-14T06:32:43.4975702Z ##[section]Starting: Prepare analysis on SonarQube
  2019-03-14T06:32:43.5045493Z ==============================================================================
  2019-03-14T06:32:43.5046300Z Task         : Prepare Analysis Configuration
  2019-03-14T06:32:43.5046957Z Description  : Prepare SonarQube analysis configuration
  2019-03-14T06:32:43.5047457Z Version      : 4.6.0
  2019-03-14T06:32:43.5047947Z Author       : sonarsource
  2019-03-14T06:32:43.5048544Z Help         : [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
  2019-03-14T06:32:43.5049234Z ==============================================================================
  2019-03-14T06:32:47.6077367Z ##**[error][SQ] API GET '/api/server/version' failed, status code was: 502**
  2019-03-14T06:32:47.6130134Z ##[section]Finishing: Prepare analysis on SonarQube
  </code></pre>
  
  <p>Our tfs server version is updated to TFS2018 rc2. </p>
  
  <p>Solutions which I had tried: <br>
  Sonar server I am able to browse,
  Installed new tfs agent and tried with that.</p>
  
  <p>Need help on this issue.</p>