小编Guy*_*ton的帖子

错误:无法访问声纳服务器'http:// localhost:9000'

运行以下命令时:cmd/c C:\ sonar-runner-2.4\bin\sonar-runner.bat

(声纳运行器安装在构建机器上)我收到以下错误:
错误:无法访问声纳服务器' http:// localhost:9000 '
错误:声纳运行程序执行期间
出错ERROR:java.net.ConnectException:连接被拒绝:connect
ERROR:引起:连接被拒绝:连接

什么可能导致这些错误?

嗨dinesh,

这是我的sonar-runner.properties文件:

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 the Visual Studio bootstrapper
sonar.visualstudio.enable=true

# Unit Test Results
sonar.cs.vstest.reportsPaths=TestResults/*.trx

# Required only when using SonarQube < 4.2
sonar.language=cs

sonar.sources=.
Run Code Online (Sandbox Code Playgroud)

你可以看到我设置了sonar.web.host:sonarqube sonar.web.port = 9000但是当我运行sonar-runner.bat时我仍然得到
错误:声纳服务器' http:// localhost:9000 '不能到达 - 为什么它还在寻找localhost:9000
而不是sonarqube:我设置了9000?

我在sonar-runner.bat的日志中看到了以下行:INFO:工作目录:D:\ sTFS\26091\Sources\NDM\Source..sonar

而我的解决方案是在D:\ sTFS\26091\Sources\NDM\Source \

这可能是问题吗?

谢了,兄弟们

build sonarqube

17
推荐指数
4
解决办法
7万
查看次数

标签 统计

build ×1

sonarqube ×1