我是RabbitMQ的新手。尝试在RHEL 7服务器上创建3个节点的集群。需要将node3作为主节点,将node2作为其从节点。我将主节点的.erlang.cookie内容复制到从节点。尝试制作集群但出现了nodedown错误消息。
然而,作为此前讨论过的故障排除的一部分,我杀了兔子进程。
停止了rabbitmq经纪人,试图启动经纪人但不能。 发布" systemctl启动rabbitmq-server.service" 然后 发行" journalctl -xe"有关错误的更多详细信息
错误讯息:
**
Jan 29 03:56:37 vmrabbitmqt02 systemd[1]:
Starting RabbitMQ broker...
-- Unit rabbitmq-server.service has begun starting up.
Jan 29 03:56:38 vmrabbitmqt02 systemd[1]: Cannot find unit for notify message of PID 5041.
Jan 29 03:56:38 vmrabbitmqt02 systemd[1]: Cannot find unit for notify message of PID 5043.
Jan 29 03:56:38 vmrabbitmqt02 rabbitmq-server[4839]: {"could not start kernel pid",application_controller,"error in config file \"/etc/rabbitmq/rabbitmq.config\" (5): s
Jan 29 03:56:39 vmrabbitmqt02 rabbitmq-server[4839]: Crash dump was written to: erl_crash.dump
Jan 29 03:56:39 vmrabbitmqt02 rabbitmq-server[4839]: could not start kernel pid (application_controller) (error in config file "/etc/rabbitmq/rabbitmq.config" (5): synt
Jan 29 03:56:39 vmrabbitmqt02 systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE
Jan 29 03:56:40 vmrabbitmqt02 systemd[1]: Cannot find unit for notify message of PID 5222.
Jan 29 03:56:40 vmrabbitmqt02 systemd[1]: Cannot find unit for notify message of PID 5223.
Jan 29 03:56:40 vmrabbitmqt02 systemd[1]: Cannot find unit for notify message of PID 5224.
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: Stopping and halting node rabbit@vmrabbitmqt02 ...
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: Error: unable to connect to node rabbit@vmrabbitmqt02: nodedown
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: DIAGNOSTICS
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: ===========
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: attempted to contact: [rabbit@vmrabbitmqt02]
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: rabbit@vmrabbitmqt02:
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: *** connected to epmd (port 4369) on vmrabbitmqt02
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: * epmd reports: node 'rabbit' not running at all
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: no other nodes on vmrabbitmqt02
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: * suggestion: start the node
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: current node details:**
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: - node name: 'rabbitmq-cli-51@vmrabbitmqt02'
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: - home dir: /var/lib/rabbitmq
Jan 29 03:56:40 vmrabbitmqt02 rabbitmqctl[5115]: - cookie hash: E8X5sOmIM3Y+Ju6lgvSIhA==
Jan 29 03:56:40 vmrabbitmqt02 systemd[1]: Failed to start RabbitMQ broker.
**
v
* epmd reports: node 'rabbit' not running at all
Snapshot of rabbitmq-env.conf file along with details of hosts 请尽早提出一些措施。
答案 0 :(得分:1)
使用的配置文件:
[root @ vmrabbitmqt02 rabbitmq] #cat rabbitmq.config
%此文件由Puppet管理
%模板路径:rabbitmq / templates / rabbitmq.config
[
{兔,
[{cluster_nodes,{['rabbit @ vmrabbitmqt01','rabbit @ vmrabbitmqt02','rabbit @ vmrabbitmqt03'],disc}}, {cluster_partition_handling,ignore},
{ssl_listeners, [5671]},
{ssl_options, [{cacertfile,"/etc/rabbitmq/ssl/rabbitmq_wildcard_root_ca.crt"},
{certfile,"/etc/rabbitmq/ssl/rabbitmq_wildcard.crt"},
{keyfile,"/etc/rabbitmq/ssl/rabbitmq_wildcard.key"},
{verify,verify_none},
{fail_if_no_peer_cert,false}]},
{default_user, <<"guest">>},
{default_pass, <<"guest">>}
]} ]。 %EOF
我从root用户退出了。 再次登录.. 现在减少节点错误..
停止节点rabbit @ vmrabbitmqt02 ...
错误:无法连接到节点rabbit @ vmrabbitmqt02:nodedown
试图联系:[rabbit @ vmrabbitmqt02]
兔@ vmrabbitmqt02:
连接到vmrabbitmqt02上的epmd(端口4369)
epmd报告节点'rabbit'在端口25672上运行
TCP连接成功但Erlang分发失败
建议:主机名不匹配?
建议:cookie设置正确吗?
建议:是使用TLS的Erlang发行版吗?
当前节点详细信息:
节点名称:'rabbitmq-cli-90 @ vmrabbitmqt02'
home dir:/ var / lib / rabbitmq
cookie hash:xy56ebUJo + 5exKrQIexXrg ==