Press "Enter" to skip to content

cannot_delete_plugins_expand_dir “/var/lib/rabbitmq/mnesia/rabbit@iZbp1iiexwyqe7tpjigcg9Z-plugins-expand”

[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

Be First to Comment

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注