sonar6.7.2启动报错

sonar6.7.2启动报错;错误信息如下:

es.log

java.lang.RuntimeException: can not run elasticsearch as root
sonar.log

2018.03.05 21:16:48 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2018.03.05 21:16:49 INFO app[][o.e.p.PluginsService] no modules loaded
2018.03.05 21:16:49 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.03.05 21:16:50 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
2018.03.05 21:16:50 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.03.05 21:16:50 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
错误原因:因为安全问题elasticsearch 不让用root用户直接运行

解决方法:liunx创建新用户sonarUser,使用该用户(sonarUser)运行sonar即可。

步骤如下:

创建用户
$ adduser sonarUser
为用户创建密码
$ passwd sonarUser
输入两次密码,
修改sonar的目录和用户组为sonarUser
$ chown -R sonarUser:sonarUser sonarqube-6.7.2
重新启动sonar
$ ./sonar.sh start
为用户创建密码
输入两次密码,
修改sonar的目录和用户组为sonarUser
重新启动sonar
---------------------
作者:无名_四叶草
来源:CSDN
原文:https://blog.csdn.net/zdyueguanyun/article/details/79447260
版权声明:本文为博主原创文章,转载请附上博文链接!

原文地址:https://www.cnblogs.com/yln20170705/p/10450170.html

时间: 2024-11-09 00:12:00

sonar6.7.2启动报错的相关文章

sonar6.7启动报错: can not run elasticsearch as root

最近玩一下sonar, centos上启动报错: can not run elasticsearch as root,log如下: sonar.log 2017.11.20 21:16:48 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running2017.11.20 21:16:49 INFO app[][o.e.p.PluginsService] no modules loaded2017.1

安装mongodb后启动报错libstdc++

安装mongo后启动报错如下图 显然说是libstdc++.so文件版本的问题,这种一般都是gcc版本太低了 接着查询gcc的版本    strings /usr/lib/libstdc++.so.6 | grep GLIBCXX 接着去找下libstdc++.so新点的版本,一定要根据自己的系统版本去找啊,由于我找错了版本报错系统位数不对 随后下载了一个64位的libstdc++.so.6.0.17的文件,然后软链成libstdc++.so.6 ln -s libstdc++.so.6.0.1

tomcat启动报错:java.net.BindException: Permission denied <null>:80

1,启动报错显示 [org.springframework.web.servlet.DispatcherServlet]FrameworkServlet 'springMvc': initialization completed in 382 ms Jun 01, 2015 6:39:06 PM org.apache.coyote.http11.Http11Protocol start SEVERE: Error starting endpoint java.net.BindException:

Tomcat启动报错[org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed

Tomcat启动报错: [org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/E:/SoftwareDevelopment/Software/Eclipse4.3/eclipse-jee-kepler-SR1-win32-x86_64/Workspace/.metadata/.plugins/org.ec

zabbix启动报错:Connection to database 'xxx' failed解决方法

Zabbix 分布式系统监视系统 zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题. 本文讲解的是zabbix无法启动报错:Connection to database 'xxx' failed: [1045] Access denied for user 'xxx'@'localhost' (using password: NO)

Oracle11g 启动报错ORA-00845: MEMORY_TARGET not supported on this system报错解决

ORA-00845: MEMORY_TARGET not supported on this system报错解决 Oracle启动报错 ORA-00845: MEMORY_TARGET not supported on this system报错解决 SQL> startup ORA-00845: MEMORY_TARGET not supported on this system 查看原本大小 [[email protected] oracle]# df -h|grep shm tmpfs

VMware启动报错:The VMware Authorization Service is not running

The VMware Authorization Service is not running 今天在使用虚拟机的时候,竟然发现不能启动,而且伴有启动虚拟系统报错: The VMware Authorization Service is not running. 截图如下: 故障排除思路: 之前为系统做最大优化时将相关无用启动项及相关服务启动方式做了相应修改: 导致VMware Authorization Service 未启动 系统本地VMware相关服务截图: 解决故障步骤: 1:打开CMD

MySql启动报错,无法更新PID文件

MySql启动报错 Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql..) 1,查看错误日志 2017-08-10 19:38:14 31865 [Note] InnoDB: Initializing buffer pool, size = 50.0M InnoDB: mmap(53657600 bytes) failed; errno 12 2017-08-10 19:38:14

Apache无法启动报错

Apache无法启动报错:Name or service not known: mod_unique_id: unable to find IPv4 address of "xxxx"   解决方案: 修改 /etc/hosts,添加添加自己的主机名 127.0.0.1    主机名