sonarqube启动报错

Posted lzq70112

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sonarqube启动报错相关的知识,希望对你有一定的参考价值。

sonarque root启动报错

cat /usr/local/sonarqube/logs/sonar.log #查看日志
WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedException: /usr/local/sonarqube/temp/conf/es/elasticsearch.yml
java.nio.file.AccessDeniedException: /usr/local/sonarqube/temp/conf/es/elasticsearch.yml
[sonar@localhost root]$ ll -d /usr/local/sonarqube/temp/conf/  #原因是root启动配置文件生成时 被修改为root
drwxr-xr-x 3 root root 16 6月  13 10:38 /usr/local/sonarqube/temp/conf/

解决方法

rm -fr /usr/local/sonarqube/temp/conf  
su - sonar -c "/usr/bin/sonar restart"

启动成功

2020.06.15 23:10:04 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2020.06.15 23:10:04 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘web‘, ipcIndex=2, logFilenamePrefix=web]] from [/usr/local/sonarqube]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/usr/local/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:./lib/server/*:/usr/local/sonarqube/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer /usr/local/sonarqube/temp/sq-process5151984946331936009properties
2020.06.15 23:10:21 INFO  app[][o.s.a.SchedulerImpl] Process[web] is up
2020.06.15 23:10:21 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘ce‘, ipcIndex=3, logFilenamePrefix=ce]] from [/usr/local/sonarqube]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/usr/local/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:./lib/server/*:./lib/ce/*:/usr/local/sonarqube/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.ce.app.CeServer /usr/local/sonarqube/temp/sq-process1847175796324308037properties
2020.06.15 23:10:27 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
2020.06.15 23:10:27 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up

以上是关于sonarqube启动报错的主要内容,如果未能解决你的问题,请参考以下文章

Nginx——Nginx启动报错Job for nginx.service failed because the control process exited with error code(代码片段

项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde(代码片段

静态代码扫描工具 - sonarQube快速安装和启动(mac平台)

静态代码扫描工具 - sonarQube快速安装和启动(mac平台)

静态代码扫描工具 - sonarQube快速安装和启动(windows平台)

静态代码扫描工具 - sonarQube快速安装和启动(windows平台)