Mam wystąpienie sonaru działającego na mojej lokalnej maszynie na localhost: 9000, i jestem w stanie przejść do konsoli i używać jej. Kiedy próbuję uruchomić sonaru-runner z wiersza polecenia dla projektu, pojawia się błąd 500:Nie działa sonar-runner lokalnie
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)
...
...
Ale kiedy odwiedzam adres URL w przeglądarce, otrzymuję następującą odpowiedź XML:
<server>
<id>20131007131041</id>
<version>3.4.1</version>
<status>UP</status>
</server>
Nie jestem pewien, dokąd się udać. Jakakolwiek rada?
Czy możesz potwierdzić, że ustawienia bazy danych są takie same w SONARQUBE_HOME/conf/sonar.properties i SONARQUBE_RUNNER_HOME/conf/sonar-runner.properties? –