SonarQube Process以退出值退出[es]:137

时间:2017-12-15 15:15:00

标签: elasticsearch sonarqube debian

我想在我的vps(linux x86_64 debian 9)上安装声纳,但是当我执行这个cdm:./ sonar.sh控制台时,我有以下日志:

Running SonarQube...
wrapper  | --> Wrapper Started as Console wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2017.12.14 18:45:28 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /etc/sonarqube/temp
jvm 1    | 2017.12.14 18:45:28 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from     [/etc/sonarqube/elasticsearch]: /etc/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/etc/sonarqube/temp/conf/es
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | 2017.12.14 18:45:29 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 137
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.e.p.PluginsService] no modules loaded
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1    | 2017.12.14 18:45:30 WARN  app[][i.n.u.i.MacAddressUtil] Failed to find a usable hardware address from the network interfaces; using random bytes: 05:2b:7f:2f:de:90:ca:4a
wrapper  | <-- Wrapper Stopped

了解服务器立即关闭的原因?我搜索了[es]:137,但我一无所获:(

1 个答案:

答案 0 :(得分:0)

我发现此页面正在寻找SonarQube Process exited with exit value [es]: 1

对于我来说,答案不是内存,而是我尝试以root身份运行的事实。 感谢@Varun对原始问题的评论。

以非特权用户身份运行为我解决了

root@hostname # useradd sonar
root@hostname # chown -R sonar:sonar /opt/sonarqube
root@hostname # su - sonar
sonar@hostname # cd /opt/sonarqube
sonar@hostname # bin/linux-x86-64/sonar.sh console

/ opt / sonarqube的权限可能太宽,但这只是试用安装。