I am using Sonarqube Developer Edition - Version 8.4.1. I am trying to connect the SonarQube server from Azure Self Hosted Agent using the task Prepare Analysis Configuration.
But I receive the following error,
##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“ECONNRESET”,“errno”:“ECONNRESET”,“syscall”:“read”}
Verified the following
- Firewall check, SonarQube is accessible from 0.0.0.0/0
- Java version is 1.8 in my build agent.
- Telnet to the Sonarqube over 9000 got connected from build agent
Please assist
Hello,
ECONNRESET is a Node.js error (used by the SonarQube VSTS/TFS tasks), not generated by SonarQube or the scanner task by itself. It’s a low-level TCP error when the other side abruptly closed its end of the connection. Probably that the query never reached your SonarQube instance. By the way, it’s a check you can do in your SonarQube access.log .
Is there a proxy between your build agent and SonarQube ?
If so, you may need to set the HTTP_PROXY environment variable to the proxy url.
Hi Alex, how to set HTTP_PROXY environment variable in VSTS task.
I set the variable like below but didnt work,
variables:
buildconfiguration: 'Release'
releaseBranch: 'pipeline*'
no_proxy: xx.xx.xx.xx:9000
Receiving 503 like “Web Page Blocked”
##[error][SQ] API GET ‘/api/server/version’ failed, status code was: 503