Error: unable to perform an operation on node ‘rabbit@Aron‘. Please see diagnostics...

电脑配置:
Window10 + RabbitMQ 3.10.7 + Erlang 25.0.4

安装Erlang,RabbitMQ成功(已经可以在127.0.0.1:15672访问rabbitmq服务)之后,执行 rabbitmqctl status 出现以下错误:

Error: unable to perform an operation on node 'rabbit@Aron'. 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@Aron
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

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

attempted to contact: [rabbit@Aron]

rabbit@Aron:
  * connected to epmd (port 4369) on Aron
  * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
  * TCP connection succeeded but Erlang distribution failed
  * suggestion: check if the Erlang cookie is identical for all server nodes and CLI tools
  * suggestion: check if all server nodes and CLI tools use consistent hostnames when addressing each other
  * suggestion: check if inter-node connections may be configured to use TLS. If so, all nodes and CLI tools must do that
   * suggestion: see the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more


Current node details:
 * node name: 'rabbitmqcli-643-rabbit@Aron'
 * effective user's home directory: c:/Users/HIAPAD
 * Erlang cookie hash: V3adEeARK63Xu3X0GhXqRA==


D:\Program File\RabbitMQ\rabbitmq_server-3.10.7\sbin>

根据错误日志:
* suggestion: check if the Erlang cookie is identical for all server nodes and CLI tools
* suggestion: check if all server nodes and CLI tools use consistent hostnames when addressing each other
* suggestion: check if inter-node connections may be configured to use TLS. If so, all nodes and CLI tools must do that
* suggestion: see the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more

检查Erlang cookie对所有服务器节点和CLI工具是否相同,强烈建议使用Everything(全盘扫描文件)查看.erlang.cookie隐藏文件,位置如下:
在这里插入图片描述
打开两个位置的.erlang.cookie文件,将/systemprofile(注:有的cookie会在C:\Windows\System32\config\systemprofile,我的实在\Windows\SysWOW64…目录下)的.erlang.cookie文件替换为家目录(\Users\HIAPAD)下的.erlang.cookie文件,重启RabbitMQ服务,再次执行rabbitmqctl status命令出现:

Status of node rabbit@Aron ...
Runtime

OS PID: 13016
OS: Windows
Uptime (seconds): 7616
Is under maintenance?: false
RabbitMQ version: 3.10.7
Node name: rabbit@Aron
Erlang configuration: Erlang/OTP 25 [erts-13.0.4] [source] [32-bit] [smp:12:12] [ds:12:12:10] [async-threads:1]
Crypto library: OpenSSL 1.1.1d  10 Sep 2019
Erlang processes: 398 used, 1048576 limit
Scheduler run queue: 1
Cluster heartbeat timeout (net_ticktime): 60

Plugins

Enabled plugin file: c:/Users/HIAPAD/AppData/Roaming/RabbitMQ/enabled_plugins
Enabled plugins:

 * rabbitmq_management
 * amqp_client
 * rabbitmq_web_dispatch
 * cowboy
 * cowlib
 * rabbitmq_management_agent

bug修复成功!

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值