Unable to connect to server. Please check if the server is running and if the address is correct

Must-share information (formatted with Markdown):

  • SonarQube version: 10.0.0.68432
  • Pipeline configuration: “Integrate with MSBuild”
  • OS: Windows_NT, Version: X64, 10.0.14393

Hello,
We’re experiencing build failures with the following error:

Unable to connect to the server. Please check if the server is running and if the address is correct.
URL: ‘https://sonarqube.ey.com/api/server/version

The pipeline worked fine the day before with the same configuration, and no changes were made. We’ve already tried generating a new token, but that didn’t resolve the issue. Can someone help with this?

Details of the log:
Task : Prepare Analysis Configuration
Description : Prepare SonarQube analysis configuration
Version : 6.3.2
C:\Applications\DevOps\Agent-01_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\6.3.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:helixpmsql_ptp
SonarScanner for MSBuild 6.2
Using the .NET Framework version of the Scanner for MSBuild
11:50:05.303 Updating build integration targets…
##[error]11:50:05.898 Unable to connect to server. Please check if the server is running and if the address is correct. Url: ‘https://sonarqube.ey.com/api/server/version’.
11:50:05.898 An error occured while querying the server version! Please check if the server is running and if the address is correct.
##[error]11:50:05.898 Pre-processing failed. Exit code: 1
##[warning]Can’t find loc string for key: LIB_ProcessExitCode
##[warning]Error while executing SonarQube:Prepare task: LIB_ProcessExitCode C:\Applications\DevOps\Agent-01_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\6.3.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe 1
##[error]LIB_ProcessExitCode C:\Applications\DevOps\Agent-01_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\6.3.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe 1

There are configurations for the agent’s capability to run builds:

  • OS: Windows_NT
  • MSBuild_16.0_x64: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\
  • DotNetFramework_4.8.0_x64: C:\Windows\Microsoft.NET\Framework64\v4.0.30319



Hi,

Welcome to the community!

This error indicates that analysis was not able to reach the server. If nothing’s changed on the build/analysis side, then you should probably talk to your network folks to see what changed on that side.

 
HTH,
Ann

Hi Ann,
Thank you for your reply. yes. Let me try that. Thank you.

Best Regards,
Hang