SonarQube 无法在 linux 中启动 [英] SonarQube failed to start in linux
问题描述
我像这样安装和配置 SonarQube link 但我无法正常启动.我看到 sonar.log 是这样的:
I install and configure SonarQube like this link but I can't start it properly. I see sonar.log and it was like this :
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2018.12.05 07:32:36 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/temp
2018.12.05 07:32:36 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2018.12.05 07:32:36 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonar/elasticsearch]: /opt/sonar/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonar/temp/conf/es
2018.12.05 07:32:36 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2018.12.05 07:32:37 INFO app[][o.e.p.PluginsService] no modules loaded
2018.12.05 07:32:37 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.12.05 07:32:45 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2018.12.05 07:32:45 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonar]: /usr/local/PA/jdk1.8.0_121/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonar/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:./lib/server/*:/opt/sonar/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer /opt/sonar/temp/sq-process3476754449645299131properties
2018.12.05 07:32:46 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped
2018.12.05 07:32:46 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.12.05 07:32:46 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2018.12.05 07:32:46 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
我使用非 root 用户启动它,但它对我没有帮助.我该怎么办?
I use non-root user to start it, but it doesn't help me. what could i do?
推荐答案
您的日志输出实际上是在告诉您在哪里可以找到更多信息.
Your log output is actually telling you where you can find more information.
Sonarqube 正在启动不同的进程
Sonarqube is starting different processes
- 弹性搜索
- web 层的 web
- 计算引擎
- 用于管理所有这些的声纳
当声纳日志告诉您其中一个进程已停止时,强烈建议查看这些进程的特殊日志.
when the sonar log is telling you, that one of those processes stopped, it is highly advised to take a look into the special logs for those.
在 <sonar-dir>/logs
中,您会找到每个进程的专用日志,并且您可以收集更多信息,这些信息很可能足以解决问题,或寻求进一步的帮助.
within <sonar-dir>/logs
you will find dedicated logs to each of the processes, and you can gather more information, most likely those will be sufficient enough to either solve the issue, or to ask for further help.
这篇关于SonarQube 无法在 linux 中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!