以前rabbitMq运行正常,但是今天报错:
Error description:
init:do_boot/3
init:start_em/1
rabbit:start_it/1 line 478
rabbit:broker_start/0 line 352
rabbit_plugins:setup/0 line 136
throw:{error,
{cannot_delete_plugins_expand_dir,
["/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand",
{cannot_delete,
"/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand/rabbitmq_amqp1_0-3.7.15/ebin/rabbit_amqp1_0_message.beam",
eacces}]}}
Log file(s) (may contain more information):
/usr/local/var/log/rabbitmq/rabbit@localhost.log
/usr/local/var/log/rabbitmq/rabbit@localhost_upgrade.log
{"init terminating in do_boot",{error,{cannot_delete_plugins_expand_dir,["/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand",{cannot_delete,"/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand/rabbitmq_amqp1_0-3.7.15/ebin/rabbit_amqp1_0_message.beam",eacces}]}}}
init terminating in do_boot ({error,{cannot_delete_plugins_expand_dir,[/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand,{cannot_delete,[_],eacces}]}})
Crash dump is being written to: /usr/local/var/log/rabbitmq/erl_crash.dump...done
解决办法:
删除提示信息目录下的文件夹即可
目录:/usr/local/var/lib/rabbitmq/mnesia/