rabbitmq报错:not_a_dets_file,"/var/lib/rabbitmq/mnesia/rabbit@Sfabrici-Demo01/recovery.dets"的解决办法

1,故障现象,rabbitmq无法启动,报错截图如下:

 

 

2,解决办法:删除掉这个文件

(base) root@Sfabrici-Demo01:/usr/lib/rabbitmq/bin# cd /var/lib/rabbitmq/mnesia/rabbit@Sfabrici-Demo01/
(base) root@Sfabrici-Demo01:/var/lib/rabbitmq/mnesia/rabbit@Sfabrici-Demo01# ls
cluster_nodes.config  msg_store_persistent       queues                       rabbit_durable_queue.DCD       rabbit_serial               rabbit_vhost.DCD  schema_version
DECISION_TAB.LOG      msg_store_transient        rabbit_durable_exchange.DCD  rabbit_durable_route.DCD       rabbit_user.DCD             recovery.dets
LATEST.LOG            nodes_running_at_shutdown  rabbit_durable_exchange.DCL  rabbit_runtime_parameters.DCD  rabbit_user_permission.DCD  schema.DAT
(base) root@Sfabrici-Demo01:/var/lib/rabbitmq/mnesia/rabbit@Sfabrici-Demo01# rm -f recovery.dets 

 

3,再次启动,正常了

(base) root@Sfabrici-Demo01:/usr/lib/rabbitmq/bin# ./rabbitmq-server start

              RabbitMQ 3.6.10. Copyright (C) 2007-2017 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /var/log/rabbitmq/rabbit@Sfabrici-Demo01.log
  ######  ##        /var/log/rabbitmq/rabbit@Sfabrici-Demo01-sasl.log
  ##########
              Starting broker...

4,启动rabbitmq的web端,就是启动15672端口

(base) root@Sfabrici-Demo01:~# cd /usr/lib/rabbitmq/bin/
(base) root@Sfabrici-Demo01:/usr/lib/rabbitmq/bin# ls
erl_crash.dump  rabbitmqctl  rabbitmq-defaults  rabbitmq-env  rabbitmq-plugins  rabbitmq-script-wrapper  rabbitmq-server  rabbitmq-server-wait
(base) root@Sfabrici-Demo01:/usr/lib/rabbitmq/bin# ./rabbitmq-plugins enable rabbitmq_management
Plugin configuration unchanged.

Applying plugin configuration to rabbit@Sfabrici-Demo01... nothing to do.

 

posted @ 2020-08-12 16:01  开始认识  阅读(1393)  评论(0编辑  收藏  举报