epmd 報告:節點“兔子”根本沒有執行
我的 RabbitMQ 曾經在我的 Ubuntu 16.04 LTS 伺服器上執行得很好,但突然它只是拒絕啟動。
伺服器的主機名是
canvas1
。我使用標準的 apt-get 方法安裝了它:
sudo apt-get update sudo apt-get install rabbitmq-server
我已經嘗試過this thread
sudo rm -rf /var/log/rabbitmq/*
的建議,但沒有幫助。我試過
sudo rm -rf /var/lib/rabbitmq/mnesia/*
然後重新啟動,它沒有工作。我也嘗試過 add
127.0.0.0 canvas1
to/etc/hosts
和 addexport ERL_EPMD_ADDRESS=127.0.0.1
to/etc/default/rabbitmq-server
,但都沒有奏效。我試過解除安裝rabbitmq-server,清除它,然後自動刪除和自動清除,然後重新安裝rabbitmq-server,它也不起作用。
這是顯示的日誌
sudo service rabbitmq-server status
:● rabbitmq-server.service - RabbitMQ Messaging Server Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2019-05-20 16:00:11 CST; 7s ago Process: 5830 ExecStop=/usr/sbin/rabbitmqctl stop (code=exited, status=2) Process: 5523 ExecStartPost=/usr/lib/rabbitmq/bin/rabbitmq-server-wait (code=exited, status=0/SUCCESS) Process: 5522 ExecStart=/usr/sbin/rabbitmq-server (code=exited, status=1/FAILURE) Main PID: 5522 (code=exited, status=1/FAILURE) May 20 16:00:11 canvas1 rabbitmq[5830]: * epmd reports: node 'rabbit' not running at all May 20 16:00:11 canvas1 rabbitmq[5830]: no other nodes on canvas1 May 20 16:00:11 canvas1 rabbitmq[5830]: * suggestion: start the node May 20 16:00:11 canvas1 rabbitmq[5830]: current node details: May 20 16:00:11 canvas1 rabbitmq[5830]: - node name: 'rabbitmq-cli-5838@canvas1' May 20 16:00:11 canvas1 rabbitmq[5830]: - home dir: . May 20 16:00:11 canvas1 rabbitmq[5830]: - cookie hash: KCGs/YQo59BuMnMdMM416A== May 20 16:00:11 canvas1 systemd[1]: rabbitmq-server.service: Control process exited, code=exited status=2 May 20 16:00:11 canvas1 systemd[1]: rabbitmq-server.service: Unit entered failed state. May 20 16:00:11 canvas1 systemd[1]: rabbitmq-server.service: Failed with result 'exit-code'.
和中的內容
/var/log/rabbitmq/startup_log
:BOOT FAILED =========== Error description: noproc Log files (may contain more information): /var/log/rabbitmq/rabbit@canvas1.log /var/log/rabbitmq/rabbit@canvas1-sasl.log Stack trace: [{gen,do_for_proc,2,[{file,"gen.erl"},{line,228}]}, {gen_event,rpc,2,[{file,"gen_event.erl"},{line,239}]}, {rabbit,ensure_working_log_handlers,0, [{file,"src/rabbit.erl"},{line,697}]}, {rabbit,'-boot/0-fun-0-',0,[{file,"src/rabbit.erl"},{line,328}]}, {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,356}]}, {init,start_em,1,[]}, {init,do_boot,3,[]}] =INFO REPORT==== 20-May-2019::16:00:09.809084 === Error description: noproc Log files (may contain more information): /var/log/rabbitmq/rabbit@canvas1.log /var/log/rabbitmq/rabbit@canvas1-sasl.log Stack trace: [{gen,do_for_proc,2,[{file,"gen.erl"},{line,228}]}, {gen_event,rpc,2,[{file,"gen_event.erl"},{line,239}]}, {rabbit,ensure_working_log_handlers,0, [{file,"src/rabbit.erl"},{line,697}]}, {rabbit,'-boot/0-fun-0-',0,[{file,"src/rabbit.erl"},{line,328}]}, {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,356}]}, {init,start_em,1,[]}, {init,do_boot,3,[]}] {"init terminating in do_boot",noproc}
和中的內容
/var/log/rabbitmq/startup_err
:init terminating in do_boot (noproc) Crash dump is being written to: erl_crash.dump...done
並且沒有
/var/log/rabbitmq/rabbit@canvas1.log
。中的所有文件/var/log/rabbitmq/
都是startup_log
和startup_err
.也沒有dets文件
/var/lib/rabbitmq/mnesia
。那裡只有一個 pid 文件,並且沒有該 pid 的程序。
erl_crash.dump
可以在這裡找到:https ://drive.google.com/file/d/1aRSQ-DXkMUZr2domAB-oc6AbeI6-y07c/view?usp=sharing我怎麼解決這個問題?
似乎 RabbitMQ 在 Ubuntu 上不能很好地與 esl-erlang 配合使用,但我不知道為什麼。
完全解除安裝 RabbitMQ 和 esl-erlang 後,僅重新安裝 RabbitMQ,一切正常。