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

Hello

The problem is

Unable to connect to server. Please check if the server is running and if the address is correct. Url: ‘https://sonarcloud.io/api/server/version

The day before on the same versions it worked fine. I have generated new tokens, the connection is validated correctly in the AzureDevops panel. On the server (where build is) the page https://sonarcloud.io/api/server/version returns 8.0.0.43481. No changes to the server or pipelines. Can You help me, please?

MS AuzreDevop
SonarSource 1.41.0 (Latest) Last updated 14 cze 2023 at 19:38 CEST
SonarScan 5.13
Windows Server 2012 R2 Standard
C#

Starting: Prepare analysis on SonarCloud
==============================================================================
Task : Prepare Analysis Configuration
Description : Prepare SonarCloud analysis configuration
Version : 1.37.0
Author : sonarsource
Help : Version: 1.37.0. More Information
==============================================================================
c:\E_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.37.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:FuturitiWebserviceXl /o:futuriti
SonarScanner for MSBuild 5.13
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories…
11:14:58.743 Updating build integration targets…
##[error]11:14:58.858 Unable to connect to server. Please check if the server is running and if the address is correct. Url: ‘https://sonarcloud.io/api/server/version’.
11:14:58.858 Unable to connect to server. Please check if the server is running and if the address is correct. Url: ‘https://sonarcloud.io/api/server/version’.
##[error]11:14:58.858 An error occured while querying the server version! Please check if the server is running and if the address is correct.
11:14:58.858 An error occured while querying the server version! Please check if the server is running and if the address is correct.
##[error]11:14:58.858 Pre-processing failed. Exit code: 1
11:14:58.858 Pre-processing failed. Exit code: 1
##[error]The process ‘c:\E_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.37.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe’ failed with exit code 1
Finishing: Prepare analysis on SonarCloud

Seeing the same issue. Looks like they disabled all of the TLS 1.2 ciphers that are available on Windows Server 2012 R2. This is unfortunate as Server 2012 EOL isn’t until October 2023.

thanks for the info, did you find a solution?

same problem here, do you have any information on how to get around it?

Does it require modifying the server’s TSL configuration, or do the sonar teams have to update the scanner?

we updated windows to version 2016 and it works

We are currently on windows 2012 and can’t immediately update to 2016 to make it work. Would be good to know any solution to make it work on Windows 2012.

Hi @futuritipawel,

We have upgrded to Window server 2016, the connection issue has been resolved.

We encounter a new issue, just wanted to check if this occurs to your team when you upgrade to 2016.

Failed to parse file” error.
731##[error]ERROR: Failed to parse file:///C:/agent/_work/1/s/SOURCE/IACMWeb/IACMSkin/ComboBo

736##[error ]ERROR: Error: Expected a pseudo-class or pseudo-element.

740##[error ]ERROR:at Root. _error (C: lagent _work\1. sonarqube \out \ sonar. sonartmpleslin

No errors like this, but we had to reinstall all .net frameworks, ms build tools and visual studio

1 Like