rabbitmq启动报错

  • A+
所属分类:杂记

启动rabbitmq时,出现如下错误信息

[root@test bin]# ./rabbitmq-server start

RabbitMQ 3.6.0. Copyright (C) 2007-2015 Pivotal Software, Inc.

##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/

##  ##

##########  Logs: /var/log/rabbitmq/rabbit@test.log

######  ##        /var/log/rabbitmq/rabbit@test-sasl.log

##########

Starting broker...

 

BOOT FAILED

===========

 

Error description:

{could_not_start,rabbit,

{{badmatch,

{error,

{{{badmatch,

{error,

{not_a_dets_file,

"/var/lib/rabbitmq/mnesia/rabbit@test/recovery.dets"}}},

[{rabbit_recovery_terms,open_table,0,

[{file,"src/rabbit_recovery_terms.erl"},{line,130}]},

{rabbit_recovery_terms,init,1,

[{file,"src/rabbit_recovery_terms.erl"},{line,111}]},

{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},

{proc_lib,init_p_do_apply,3,

[{file,"proc_lib.erl"},{line,239}]}]},

{child,undefined,rabbit_recovery_terms,

{rabbit_recovery_terms,start_link,[]},

transient,4294967295,worker,

[rabbit_recovery_terms]}}}},

[{rabbit_queue_index,start,1,

[{file,"src/rabbit_queue_index.erl"},{line,480}]},

{rabbit_variable_queue,start,1,

[{file,"src/rabbit_variable_queue.erl"},{line,439}]},

{rabbit_priority_queue,start,1,

[{file,"src/rabbit_priority_queue.erl"},{line,92}]},

{rabbit_amqqueue,recover,0,

[{file,"src/rabbit_amqqueue.erl"},{line,234}]},

{rabbit,recover,0,[{file,"src/rabbit.erl"},{line,538}]},

{rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,

[{file,"src/rabbit_boot_steps.erl"},{line,49}]},

{rabbit_boot_steps,run_step,2,

[{file,"src/rabbit_boot_steps.erl"},{line,49}]},

{rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,

[{file,"src/rabbit_boot_steps.erl"},{line,26}]}]}}

 

Log files (may contain more information):

/var/log/rabbitmq/rabbit@test.log

/var/log/rabbitmq/rabbit@test-sasl.log

 

{"init terminating in do_boot",{could_not_start,rabbit,{{badmatch,{error,{{{badmatch,{error,{not_a_dets_file,"/var/lib/rabbitmq/mnesia/rabbit@test/recovery.dets"}}},[{rabbit_recovery_terms,open_table,0,[{file,"src/rabbit_recovery_terms.erl"},{line,130}]},{rabbit_recovery_terms,init,1,[{file,"src/rabbit_recovery_terms.erl"},{line,111}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},{child,undefined,rabbit_recovery_terms,{rabbit_recovery_terms,start_link,[]},transient,4294967295,worker,[rabbit_recovery_terms]}}}},[{rabbit_queue_index,start,1,[{file,"src/rabbit_queue_index.erl"},{line,480}]},{rabbit_variable_queue,start,1,[{file,"src/rabbit_variable_queue.erl"},{line,439}]},{rabbit_priority_queue,start,1,[{file,"src/rabbit_priority_queue.erl"},{line,92}]},{rabbit_amqqueue,recover,0,[{file,"src/rabbit_amqqueue.erl"},{line,234}]},{rabbit,recover,0,[{file,"src/rabbit.erl"},{line,538}]},{rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,[{file,"src/rabbit_boot_steps.erl"},{line,49}]},{rabbit_boot_steps,run_step,2,[{file,"src/rabbit_boot_steps.erl"},{line,49}]},{rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,[{file,"src/rabbit_boot_steps.erl"},{line,26}]}]}}}

Crash dump was written to: erl_crash.dump

init terminating in do_boot ()

 

根据错误信息提示,应该是recovery.dets文件出现了问题

rabbitmq启动报错

 

删除recovery.dets文件后,重启rabbitmq即可。

 

weinxin
我的微信公众号
关注"实用运维笔记"微信公众号,当博客中有新文章时,可第一时间得知哦~
朱双印

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: