sonarqube - Failure running sonar-runner locally -
i have instance of sonar running on local machine @ localhost:9000, , i'm able go , use console. when try run sonar-runner command line project, 500 error:
exception in thread "main" org.sonar.runner.runnerexception: org.picocontainer.picolifecycleexception: picolifecycleexception: method 'public void org.sonar.batch.bootstrap.databasecompatibility.start()', instance 'org.sonar.batch.bootstrap.databasecompatibility@3848110b, org.sonar.api.utils.httpdownloader$httpexception: fail download [http://localhost:9000/api/server]. response code: 500 @ org.sonar.runner.runner.delegateexecution(runner.java:288) @ org.sonar.runner.runner.execute(runner.java:151) @ org.sonar.runner.main.execute(main.java:84) @ org.sonar.runner.main.main(main.java:56) caused by: org.picocontainer.picolifecycleexception: picolifecycleexception: method 'public void org.sonar.batch.bootstrap.databasecompatibility.start()', instance 'org.sonar.batch.bootstrap.databasecompatibility@3848110b, org.sonar.api.utils.httpdownloader$httpexception: fail download [http://localhost:9000/api/server]. response code: 500 @ org.picocontainer.monitors.nullcomponentmonitor.lifecycleinvocationfailed(nullcomponentmonitor.java:77) ... ... but when visit url in browser, following xml response:
<server> <id>20131007131041</id> <version>3.4.1</version> <status>up</status> </server> i'm not sure go here. advice?
the current workaround unset gem_path , gem_home variables before launching sonar webservice:
unset gem_path gem_home ./sonar.sh console this doesn't have done sonar-runner environment.
the problem caused due conflict ruby local installation.
Comments
Post a Comment