当前位置: 首页 > 工具软件 > rabbit-ex > 使用案例 >

cannot_delete_plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@iZbp1iiexwyqe7tpjigcg9Z-plugins-ex...

牧熙云
2023-12-01

[root@iZbp1iiexwyqe7tpjigcg9Z rabbitmq]# cat startup_err
/usr/lib/rabbitmq/bin/rabbitmq-env: line 91: cd: /var/lib/rabbitmq/mnesia/rabbit@iZbp1iiexwyqe7tpjigcg9Z-plugins-expand: Permission denied

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
[root@iZbp1iiexwyqe7tpjigcg9Z rabbitmq]# cat startup_log


BOOT FAILED
===========

Error description:
{error,
{cannot_delete_plugins_expand_dir,
["/var/lib/rabbitmq/mnesia/rabbit@iZbp1iiexwyqe7tpjigcg9Z-plugins-expand",
{cannot_delete,
"/var/lib/rabbitmq/mnesia/rabbit@iZbp1iiexwyqe7tpjigcg9Z-plugins-expand",
eacces}]}}

Log files (may contain more information):
/var/log/rabbitmq/rabbit@iZbp1iiexwyqe7tpjigcg9Z.log
/var/log/rabbitmq/rabbit@iZbp1iiexwyqe7tpjigcg9Z-sasl.log

Stack trace:
[{rabbit_plugins,setup,0},
{rabbit,broker_start,0},
{rabbit,start_it,1},
{init,start_it,1},
{init,start_em,1}]

{"init terminating in do_boot",{error,{cannot_delete_plugins_expand_dir,["/var/lib/rabbitmq/mnesia/rabbit@iZbp1iiexwyqe7tpjigcg9Z-plugins-expand",{cannot_delete,"/var/lib/rabbitmq/mnesia/rabbit@iZbp1iiexwyqe7tpjigcg9Z-plugins-expand",eacces}]}}}

经查,/var/lib/rabbitmq/rabbit@iZbp1iiexwyqe7tpjigcg9Z-plugins-expand的权限为root,而非rabbitmq用户,导致重启无法成功的情况,chown -R rabbitmq:rabbitmq之后,问题解决。

转载于:https://www.cnblogs.com/zhjh256/p/6685947.html

 类似资料: