欢迎您访问365答案网,请分享给你的朋友!
生活常识 学习资料

RabbitMQNoderabbit@emily1thinksitsclusteredwithnoderabbit@emily2,butrabbitdisagrees

时间:2023-05-11

warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8、Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)Error: unable to perform an operation on node 'rabbit@emily2'、Please see diagnostics information and suggestions below.Most common reasons for this are: * Target node is unreachable (e.g、due to hostname resolution, TCP connection or firewall issues) * CLI tool fails to authenticate with the server (e.g、due to CLI tool's Erlang cookie not matching that of the server) * Target node is not runningIn addition to the diagnostics info below: * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more * Consult server logs on node rabbit@emis2 * If target node is configured to use long node names, don't forget to use --longnames with CLI toolsDIAGNOSTICS===========attempted to contact: [rabbit@emis2]rabbit@emis2: * connected to epmd (port 4369) on emis2 * epmd reports: node 'rabbit' not running at all no other nodes on emis2 * suggestion: start the nodeCurrent node details: * node name: 'rabbitmqcli-2879-rabbit@emily2' * effective user's home directory: /var/lib/rabbitmq * Erlang cookie hash: MRFkIwPZlMRWZvXka/6Rsg==

RabbitMQ报以上错误时是由于当前节点mnesia数据库中记录还在集群之中,但是集群确认为其已经不咋集群中了,解决方案是:

删除当前节点/var/lib/rabbit/mnesia数据库记录确保/var/lib/rabbit/.erlang.cookie中的key和集群中的保持一致rabbitmq-server start -detached启动erlang和rabbitmq服务器rabbitmqctl stop_app停止rabbitmq服务器rabbitmqctl join_cluster rabbit@emily2 加入集群rabbitmqctl start_app启动当前节点rabbitmq

GitHub地址:https://github.com/mingyang66/spring-parent

Copyright © 2016-2020 www.365daan.com All Rights Reserved. 365答案网 版权所有 备案号:

部分内容来自互联网,版权归原作者所有,如有冒犯请联系我们,我们将在三个工作时内妥善处理。