##[error][ERROR] SonarQube Server: Error while executing task Prepare: API GET '/api/server/version'

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension
    SonarQubePrepare (7.1.1)
    SonarQubeAnalyze (7.1.1)
  • how is SonarQube deployed: zip, Docker, Helm
    We use SonarQube Enterprise server which is deployed on Vm instance on AWS
  • what are you trying to achieve
    We are trying to run the Sonar Quebe pipeline for code anaysis hence we are creating pipeline in Azure DevOps and we are using self hosted agent in Azure which is a virtual machine scaleset
  • what have you tried so far to achieve this
    We have added the sonar quebe url with port 445 in Azure firewall and also added the ip ranges of the self hosted agent which is on virtual machine scaleset on the AWS instance security group inbound still we are facing the issue
    Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
    ##[error][ERROR] SonarQube Server: Error while executing task Prepare: API GET ‘/api/server/version’ failed. Error message: connect ETIMEDOUT #.#.#.#:443.
    ##[error]API GET ‘/api/server/version’ failed. Error message: connect ETIMEDOUT #.#.#.#:443.

Can we connect to get this issue checked?

Hi,

Welcome to the community!

I invite you to familiarize yourself with the FAQ, and in particular this section:

I created a topic, when can I expect a response?

This is an open community with people volunteering their free time to provide assistance. We’re eager to contribute to the community, but you are not guaranteed a fast response.

Be patient

  • Wait a few days before bumping a topic that hasn’t received a response.

Regarding your error, this indicates that the build agent isn’t able to talk to your SonarQube Server. You should reassess your network configuration.

 
HTH,
Ann