码迷,mamicode.com
首页 > 其他好文 > 详细

sonarqube启动报错

时间:2020-06-16 00:58:07      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:adl   proc   sql   enc   process   name   x86_64   arc   last   

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启动报错

标签:adl   proc   sql   enc   process   name   x86_64   arc   last   

原文地址:https://www.cnblogs.com/lzq70112/p/13138478.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!