build - ERROR: Sonar server 'http://localhost:9000' can not be reached -
when running following command: cmd /c c:\sonar-runner-2.4\bin\sonar-runner.bat
(sonar runner installed on build machine) following errors:
error: sonar server 'http://localhost:9000' can not reached
error: error during sonar runner execution
error: java.net.connectexception: connection refused: connect
error: caused by: connection refused: connect
what can cause these errors?
hi dinesh,
this sonar-runner.properties file:
sonar.projectkey=ndm sonar.projectname=ndm sonar.projectversion=1.0 sonar.visualstudio.solution=ndm.sln #sonar.sourceencoding=utf-8 sonar.web.host:sonarqube sonar.web.port=9000 # enable visual studio bootstrapper sonar.visualstudio.enable=true # unit test results sonar.cs.vstest.reportspaths=testresults/*.trx # required when using sonarqube < 4.2 sonar.language=cs sonar.sources=.
as can see set sonar.web.host:sonarqube sonar.web.port=9000 when run sonar-runner.bat still the
error: sonar server 'http://localhost:9000' can not reached - why still looking localhost:9000
, not sonarqube:9000 set?
i saw in log of sonar-runner.bat there following line: info: work directory: d:\stfs\26091\sources\ndm\source..sonar
while solution in d:\stfs\26091\sources\ndm\source\
could problem?
thanks, guy
you should configure sonar-runner use existing sonarqube server. so, need update conf/sonar-runner.properties
file , specify sonarqube server url, username, password, , jdbc url well. see http://docs.sonarqube.org/display/sonar/installing+and+configuring+sonarqube+runner details.
if don't yet have , running sonarqube server, can launch 1 locally (with default configuration) - bind http://localhost:9000 , work default sonar-runner configuration. see http://docs.sonarqube.org/display/sonar/setup+and+upgrade details on how started sonarqube server.
Comments
Post a Comment