板卡掉电以后发现rabbitmq服务被停了,重启之:
root@firefly:/var/lib/rabbitmq/mnesia# cd /usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin/
root@firefly:/usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin# service rabbitmq-server start
* Starting message broker rabbitmq-server
* FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
...fail!
发现失败!!!!!
查看报错log:
root@firefly:/usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin# cat /var/log/rabbitmq/startup_log
BOOT FAILED
===========
Error description:
{error,
{cannot_delete_plugins_expand_dir,
["/var/lib/rabbitmq/mnesia/rabbit@firefly-plugins-expand",
{cannot_delete,
"/var/lib/rabbitmq/mnesia/rabbit@firefly-plugins-expand",
eacces}]}}
Log files (may contain more information):
Stack trace:
[{rabbit_plugins,prepare_plugins,3,
[{file,"src/rabbit_plugins.erl"},{line,123}]},
{rabbit,'-boot/0-fun-1-',0,[{file,"src/rabbit.erl"},{line,332}]},
{rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,354}]},
{init,start_it,1,[]},
{init,start_em,1,[]}]
{"init terminating in do_boot",{rabbit,failure_during_boot,{error,{cannot_delete_plugins_expand_dir,["/var/lib/rabbitmq/mnesia/rabbit@firefly-plugins-expand",{cannot_delete,"/var/lib/rabbitmq/mnesia/rabbit@firefly-plugins-expand",eacces}]}}}}
提示无法删除文件夹/var/lib/rabbitmq/mnesia/rabbit@firefly-plugins-expand
上网查找类似错误,说是文件权限问题,发现报错文件夹属性为root:root
root@firefly:/usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin# cd /var/lib/rabbitmq/mnesia/
root@firefly:/var/lib/rabbitmq/mnesia# ll
total 20
drwxr-xr-x 4 root root 4096 May 31 01:44 ./
drwxr-xr-x 3 rabbitmq rabbitmq 4096 May 30 22:25 ../
drwxr-xr-x 4 rabbitmq rabbitmq 4096 May 31 01:50 rabbit@firefly/
drwxr-xr-x 2 root root 4096 May 31 01:44 rabbit@firefly-plugins-expand/
修改文件夹权限: chown -R rabbitmq:rabbitmq rabbit@firefly-plugins-expand/
重启仍然报错!!!!
发现mnesia的属性也是root:
root@firefly:/var/lib/rabbitmq# ll
total 1212
drwxr-xr-x 3 rabbitmq rabbitmq 4096 May 30 22:25 ./
drwxr-xr-x 46 root root 4096 May 21 05:45 ../
-r-------- 1 rabbitmq rabbitmq 20 May 21 00:00 .erlang.cookie
-rw-r----- 1 rabbitmq rabbitmq 1220937 May 31 01:52 erl_crash.dump
drwxr-xr-x 4 root root 4096 May 31 01:44 mnesia/
修改之: chown -R rabbitmq:rabbitmq mnesia/root@firefly:/var/lib/rabbitmq# chown -R rabbitmq:rabbitmq mnesia/
重启服务OK:
root@firefly:/var/lib/rabbitmq# ll
total 1212
drwxr-xr-x 3 rabbitmq rabbitmq 4096 May 30 22:25 ./
drwxr-xr-x 46 root root 4096 May 21 05:45 ../
-r-------- 1 rabbitmq rabbitmq 20 May 21 00:00 .erlang.cookie
-rw-r----- 1 rabbitmq rabbitmq 1220937 May 31 01:52 erl_crash.dump
drwxr-xr-x 4 rabbitmq rabbitmq 4096 May 31 01:44 mnesia/
root@firefly:/var/lib/rabbitmq#
root@firefly:/var/lib/rabbitmq#
root@firefly:/var/lib/rabbitmq#
root@firefly:/var/lib/rabbitmq# cd /usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin
root@firefly:/usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin# service rabbitmq-server start
* Starting message broker rabbitmq-server
...done.
查看进程,正常
root@firefly:/usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin# ps -aux|grep rabbitmq
rabbitmq 884 0.0 0.0 1804 248 ? S 01:48 0:00 /usr/lib/erlang/erts-5.10.4/bin/epmd -daemon
rabbitmq 2170 0.0 0.0 1392 444 ? S 01:55 0:00 /bin/sh /usr/sbin/rabbitmq-server
rabbitmq 2179 13.4 1.3 111216 26808 ? Sl 01:55 0:07 /usr/lib/erlang/erts-5.10.4/bin/beam.smp -W w -K true -A30 -P 1048576 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin/../ebin -noshell -noinput -s rabbit boot -sname rabbit@firefly -boot start_sasl -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/var/log/rabbitmq/
rabbit@firefly.log"} -rabbit sasl_error_logger {file,"/var/log/rabbitmq/
rabbit@firefly-sasl.log"} -rabbit enabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin/../plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@firefly-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@firefly"
rabbitmq 2310 0.0 0.0 1776 252 ? Ss 01:55 0:00 inet_gethost 4
rabbitmq 2311 0.0 0.0 1840 512 ? S 01:55 0:00 inet_gethost 4
root 2325 2.0 0.0 3776 668 pts/0 S+ 01:56 0:00 grep --color=auto rabbitmq
- rabbitmq 启动报错
=============================================== 2017/10/24_第1次修改 ccb_warlock = ...
- rabbitmq 启动报错 Failed to get nic info
这个报错 基本搜索不到什么有效信息 解决办法: hostnamectl set-hostname xxx.local # 先把rabbitmq进程杀掉$ ps -ef | grep rabbitmq ...
- tomcat启动报错,找不到相应的 queue,从而引发内存泄漏
tomcat启动报错,无法创建 bean listenerStatusChangeDealHandler, no queue 'STOCK.NOTIFY_CHANGE.INTER.CACHE.QUEU ...
- Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误——SHH框架
SHH框架工程,Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误 1.查看配置文件web.xml中是否配置.or ...
- 【原】tomcat 7 启动报错:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig的解决
现象: tomcat 7 启动报错:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig() ...
- Oracle启动报错ORA-03113解决
环境:RHEL6.4 + Oracle 11.2.0.4 步骤摘要:1.启动报错ORA-031132.查看alert日志查找原因3.根据实际情况采取合理的措施,这里我们先增加闪回区大小,把库启动起来4 ...
- Oracle启动报错ORA-27102解决
环境:RHEL5.5 + Oracle 10.2.0.4 此错误一般是因为数据库的初始化参数文件的内存设置不当导致.本例是因为操作系统参数设置问题导致. 当前现象:Oracle启动报错ORA-2710 ...
- ssh启动报错:org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
ssh项目启动报错: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection t ...
- SVN 服务启动报错 0x8007042a
服务器环境:Windows Server 2008 R2 企业版,Visual SVNServer 2.6.5 不能签出代码,发现svn服务关闭,手动启动报错: 事件查看器: Error: no li ...
随机推荐
- Linux connect: Network is unreachable
在虚拟机中ping,发现网络不通: [root@node01 ~]# ping 114.114.114.114 connect: Network is unreachable 发生此问题时,环境如下: ...
- spring框架中用到了哪些设计模式
1.代理模式:在AOP和remoting中被用的比较多 2.单例模式:在spring配置文件中定义的bean默认为单例模式 3.模板方法模式:解决代码重复问题 4.前端控制器模式:spring提供了D ...
- 转载:arm neon intrinsic
转自:https://blog.csdn.net/hemmingway/article/details/44828303/ https://blog.csdn.net/chshplp_liaoping ...
- [CF269B] Greenhouse Effect - dp
给出 N 个植物,每个植物都属于一个品种,共计 m 个品种,分落在不同的位置上(在一个数轴上,而且数轴是无限长度的),保证读入的位置是按照升序读入的. 现在我们可以进行一个操作:取任意一个位置上的植物 ...
- Loj514「LibreOJ β Round #2」模拟只会猜题意 - 模拟
注意初始化即可. #include <bits/stdc++.h> using namespace std; ],a[],t1,t2,t3,t4; int main(){ memset(a ...
- [转]memory analyzer 使用方法
[转]http://wensong.iteye.com/blog/1986449 最近一段时间一直在研究热部署,热部署中涉及到一个比较头痛的问题就是查内存泄露(Memory Leak),于是乎在研究热 ...
- 占位 LR
占位 LR include: LR403
- MySQL主键设计盘点
目录 主键定义 主键设计和应用原则 主键生成策略 自增ID UUID 自建的id生成器 Twitter的snowflake算法 @ 最近在项目中用了UUID的方式生成主键,一开始只是想把这种UUID的 ...
- macOS系统下安装ChromeDriver
1.对应的chrome浏览器需要安装对应的驱动,对应列表如下: chromedriver版本 支持的chrome版本 v2.43 v69-71 v2.42 v68-70 v2.41 v ...
- PTA-1003 我要通过!
1003 我要通过!https://pintia.cn/problem-sets/994805260223102976/problems/994805323154440192 “答案正确”是自动判题系 ...