由于没有找到弹性搜索二进制文件,Sonarqube 7无法启动

时间:2018-03-27 06:15:34

标签: sonarqube7

我已经设置了sonarqube 7,问题是我在启动时遇到错误 -

2018.03.27 08:02:15 ERROR app[][o.s.a.p.SQProcess] Fail to launch process [es]
java.lang.IllegalStateException: Cannot find elasticsearch binary
        at org.sonar.application.command.CommandFactoryImpl.createEsInstallation(CommandFactoryImpl.java:111)
        at org.sonar.application.command.CommandFactoryImpl.createEsCommandForUnix(CommandFactoryImpl.java:80)
        at org.sonar.application.command.CommandFactoryImpl.createEsCommand(CommandFactoryImpl.java:76)
        at org.sonar.application.SchedulerImpl$$Lambda$12/1128486197.get(Unknown Source)
        at org.sonar.application.SchedulerImpl.lambda$tryToStartProcess$2(SchedulerImpl.java:153)
        at org.sonar.application.SchedulerImpl$$Lambda$13/1288526896.get(Unknown Source)
        at org.sonar.application.process.SQProcess.start(SQProcess.java:68)
        at org.sonar.application.SchedulerImpl.tryToStart(SchedulerImpl.java:160)
        at org.sonar.application.SchedulerImpl.tryToStartProcess(SchedulerImpl.java:152)
        at org.sonar.application.SchedulerImpl.tryToStartEs(SchedulerImpl.java:110)
        at org.sonar.application.SchedulerImpl.tryToStartAll(SchedulerImpl.java:102)
        at org.sonar.application.SchedulerImpl.schedule(SchedulerImpl.java:98)
        at org.sonar.application.App.start(App.java:64)

不知道为什么它无法找到elasticsearch二进制文件,因为它已经位于其安装目录中。

我必须在sonarqube 7的任何配置文件中提到它的路径吗? 这是一个新的装置&我周围没有找到任何解决方案。 谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

我的Gentoo Linux系统出现了同样的错误。所有6.7.x版本都无法使用相同的错误(找不到elasticsearch binary)。

我从sonarqube网站(https://www.sonarqube.org/downloads/)下载了一个新的zip文件。 zipfile包含一个elasticsearch子目录,但我的原始安装中缺少此文件夹(由Gentoo emerge使用Godin叠加层安装:https://data.gpo.zugaina.org/godin/dev-util/sonarqube-bin/)。

通过将elasticsearch文件夹复制到我的原始安装中,我的问题就解决了。

我发现这个拉动请求修复了sonarqube-bin的ebuild: https://github.com/Godin/gentoo-overlay/commit/d52d7491e10d3589832bf4785edb29caf9dd4012