rabbitmq服务器启动错误

时间:2017-03-08 02:13:50

标签: .net windows rabbitmq

我几天前在Windows上安装了rabbitmq 3.2。今天,我卸载了rabbitmq 3.2,并安装了rabbitmq 3.6。安装完成后,事情似乎没问题,直到我启动了RabbitMQ Windows服务,几秒钟后服务自动停止。检查日志,我看到以下错误报告:

=ERROR REPORT==== 8-Mar-2017::09:29:20 ===
Cluster upgrade needed but other disc nodes shut down after this one.
Please first start the last disc node to shut down.

Note: if several disc nodes were shut down simultaneously they may all
show this message. In which case, remove the lock file on one of them and
start that node. The lock file on this node is:

 c:/Users/chengong/AppData/Roaming/RabbitMQ/db/RABBIT~1/nodes_running_at_shutdown 
=INFO REPORT==== 8-Mar-2017::09:29:20 ===
Error description:
   badarg

Log files (may contain more information):
   C:/Users/chengong/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
   C:/Users/chengong/AppData/Roaming/RabbitMQ/log/RABBIT~2.LOG

Stack trace:
   [{io,format,
        [<0.54.0>,
         "\n\n****\n\nCluster upgrade needed but other disc nodes shut down after this one.\nPlease first start the last disc node to shut down.\n\nNote: if several disc nodes were shut down simultaneously they may all\nshow this message. In which case, remove the lock file on one of them and\nstart that node. The lock file on this node is:\n\n c:/Users/chengong/AppData/Roaming/RabbitMQ/db/RABBIT~1/nodes_running_at_shutdown \n\n****\n\n\n",
         []],
        []},
    {rabbit_upgrade,die,2,[{file,"src/rabbit_upgrade.erl"},{line,200}]},
    {rabbit_upgrade,maybe_upgrade_mnesia,0,
                    [{file,"src/rabbit_upgrade.erl"},{line,145}]},
    {rabbit,'-boot/0-fun-0-',0,[{file,"src/rabbit.erl"},{line,271}]},
    {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,403}]},
    {init,start_em,1,[{file,"init.erl"},{line,1076}]},
    {init,do_boot,3,[{file,"init.erl"},{line,784}]}]

我还没有配置默认值以外的任何内容。 rabbitmq 3.6服务刚刚运行。

我该怎么做才能解决这个问题?非常感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

我首先要做的是错误消息建议,并删除此文件:

c:/Users/chengong/AppData/Roaming/RabbitMQ/db/RABBIT~1/nodes_running_at_shutdown

之后重新启动RMQ并查看它是否有效。