如何为Sonarqube设置haproxy

时间:2015-10-19 15:30:07

标签: jenkins sonarqube

当我们使用重定向和反向代理从http://sonar.company.com设置haproxy到http://sonar-server.company.com:8080时。虽然网址开放正常,但我们在Jenkins运行声纳跑步时遇到了问题 -

INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 0.185s
Final Memory: 1M/117M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
java.lang.IllegalStateException: Fail to download libraries from server
    at org.sonar.runner.impl.Jars.dowloadFiles(Jars.java:78)
    at org.sonar.runner.impl.Jars.download(Jars.java:57)
    at org.sonar.runner.impl.JarDownloader.download(JarDownloader.java:46)
    at org.sonar.runner.impl.JarDownloader.checkVersionAndDownload(JarDownloader.java:37)
    at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:71)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
    at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
    at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
    at org.sonar.runner.api.Runner.execute(Runner.java:100)
    at org.sonar.runner.Main.executeTask(Main.java:70)
    at org.sonar.runner.Main.execute(Main.java:59)
    at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
    at org.sonar.runner.impl.Jars.dowloadFiles(Jars.java:72)
    ... 12 more

关于问题的任何想法或者这是sonarqube的错误?

1 个答案:

答案 0 :(得分:1)

您应检查您的代理设置是否未更改/ batch_bootstrap / index的响应。请比较来自: http://sonar.company.com/batch_bootstrap/indexhttp://sonar-server.company.com:8080/batch_bootstrap/index

++