我有一個聲納運行在localhost:9000本地機器上的實例,我可以去使用控制檯。當我嘗試從一個項目的命令行運行聲納亞軍,我得到一個500錯誤:本地運行聲納運行器故障
Exception in thread "main" org.sonar.runner.RunnerException: org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.batch.bootstrap.DatabaseCompatibility.start()', instance '[email protected], org.sonar.api.utils.HttpDownloader$HttpException: Fail to download [http://localhost:9000/api/server]. Response code: 500
at org.sonar.runner.Runner.delegateExecution(Runner.java:288)
at org.sonar.runner.Runner.execute(Runner.java:151)
at org.sonar.runner.Main.execute(Main.java:84)
at org.sonar.runner.Main.main(Main.java:56)
Caused by: org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.batch.bootstrap.DatabaseCompatibility.start()', instance '[email protected], org.sonar.api.utils.HttpDownloader$HttpException: Fail to download [http://localhost:9000/api/server]. Response code: 500
at org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:77)
...
...
但是,當我在我的瀏覽器訪問URL,我得到下面的XML響應:
<server>
<id>20131007131041</id>
<version>3.4.1</version>
<status>UP</status>
</server>
我不確定該從哪裏出發。有什麼建議?
你確認你的數據庫設置在SONARQUBE_HOME/conf目錄/ sonar.properties和SONARQUBE_RUNNER_HOME/conf目錄/ sonar-runner.properties一樣嗎? –