190117-Rabbitmq启动失败的问题

文章目录
  1. II. 其他
    1. 1. 一灰灰Blog: https://liuyueyi.github.io/hexblog
    2. 2. 声明
    3. 3. 扫描关注

rabbitmq启动,死活起不来,一直报错,记录下解决方式

1
2
Redirecting to /bin/systemctl start rabbitmq-server.service
Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.

然后查看对应的日志

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--
-- Unit NetworkManager-dispatcher.service has begun starting up.
1月 17 11:21:58 localhost.localdomain dbus[683]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
1月 17 11:21:58 localhost.localdomain systemd[1]: Started Network Manager Script Dispatcher Service.
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is done.
1月 17 11:21:58 localhost.localdomain nm-dispatcher[7892]: req:1 'dhcp4-change' [enp2s0]: new request (2 scripts)
1月 17 11:21:58 localhost.localdomain nm-dispatcher[7892]: req:1 'dhcp4-change' [enp2s0]: start running ordered scripts...
1月 17 11:22:04 localhost.localdomain named[964]: network unreachable resolving 'www.coinbull.one/A/IN': 2400:cb00:2049:1::adf5:3a4e#53
1月 17 11:22:04 localhost.localdomain named[964]: network unreachable resolving 'www.coinbull.one/A/IN': 2400:cb00:2049:1::adf5:3b6d#53
1月 17 11:22:04 localhost.localdomain polkitd[682]: Registered Authentication Agent for unix-process:7906:175390 (system bus name :1.47 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale zh_CN.UTF-8
1月 17 11:22:04 localhost.localdomain systemd[1]: Starting RabbitMQ broker...
-- Subject: Unit rabbitmq-server.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rabbitmq-server.service has begun starting up.
1月 17 11:22:05 localhost.localdomain rabbitmq-server[7922]: RabbitMQ 3.6.15. Copyright (C) 2007-2018 Pivotal Software, Inc.
1月 17 11:22:05 localhost.localdomain rabbitmq-server[7922]: ## ## Licensed under the MPL. See http://www.rabbitmq.com/
1月 17 11:22:05 localhost.localdomain rabbitmq-server[7922]: ## ##
1月 17 11:22:05 localhost.localdomain rabbitmq-server[7922]: ########## Logs: /var/log/rabbitmq/rabbit@localhost.log
1月 17 11:22:05 localhost.localdomain rabbitmq-server[7922]: ###### ## /var/log/rabbitmq/rabbit@localhost-sasl.log
1月 17 11:22:05 localhost.localdomain rabbitmq-server[7922]: ##########
1月 17 11:22:05 localhost.localdomain rabbitmq-server[7922]: Starting broker...
1月 17 11:22:08 localhost.localdomain rabbitmq-server[7922]: {"Kernel pid terminated",application_controller,"{application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{{badmatch,{error,{{{function_clause,[{rabbit_queue_index,journal_minus
1月 17 11:22:10 localhost.localdomain rabbitmq-server[7922]: Crash dump is being written to: erl_crash.dump...done
1月 17 11:22:10 localhost.localdomain rabbitmq-server[7922]: Kernel pid terminated (application_controller) ({application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{{badmatch,{error,{{{function_clause,[{rabbit_queue_index,journal_mi
1月 17 11:22:10 localhost.localdomain systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: Stopping and halting node rabbit@localhost
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: Error: unable to connect to node rabbit@localhost: nodedown
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: DIAGNOSTICS
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: ===========
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: attempted to contact: [rabbit@localhost]
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: rabbit@localhost:
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: * connected to epmd (port 4369) on localhost
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: * epmd reports: node 'rabbit' not running at all
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: no other nodes on localhost
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: * suggestion: start the node
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: current node details:
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: - node name: 'rabbitmq-cli-87@localhost'
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: - home dir: .
1月 17 11:22:10 localhost.localdomain rabbitmqctl[8241]: - cookie hash: xxx
1月 17 11:22:10 localhost.localdomain systemd[1]: Failed to start RabbitMQ broker.
-- Subject: Unit rabbitmq-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rabbitmq-server.service has failed.
--
-- The result is failed.
1月 17 11:22:10 localhost.localdomain systemd[1]: Unit rabbitmq-server.service entered failed state.
1月 17 11:22:10 localhost.localdomain systemd[1]: rabbitmq-server.service failed.
1月 17 11:22:10 localhost.localdomain polkitd[682]: Unregistered Authentication Agent for unix-process:7906:175390 (system bus name :1.47, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale zh_CN.UTF-8) (disconnected from bus)

按照各种手段进行尝试,没有啥效果,最终的一度想重新安装,偶然看到一篇文章,可以解决,问题就是扔掉了之前的所有配置

解决方法

1
var/lib/rabbitmq/mnesia 目录下存在rabbit@localhost.pid、rabbit@localhost、rabbit@localhost-plugins-expand,删除这3项后,再使用systemctl start rabbitmq-server启动,发现不报错了。

II. 其他

1. 一灰灰Bloghttps://liuyueyi.github.io/hexblog

一灰灰的个人博客,记录所有学习和工作中的博文,欢迎大家前去逛逛

2. 声明

尽信书则不如,已上内容,纯属一家之言,因个人能力有限,难免有疏漏和错误之处,如发现bug或者有更好的建议,欢迎批评指正,不吝感激

3. 扫描关注

一灰灰blog

QrCode

知识星球

goals

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×