栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

RabbitMQ Node rabbit@emily1 thinks its clustered with node rabbit@emily2, but rabbit disagrees

RabbitMQ Node rabbit@emily1 thinks its clustered with node rabbit@emily2, but rabbit disagrees

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 running

In 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 tools

DIAGNOSTICS
===========

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 node

Current 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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/742261.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号