RabbitMQ 出现 Nodedown 错误 [英] RabbitMQ has Nodedown Error

查看:49
本文介绍了RabbitMQ 出现 Nodedown 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 7 Enterprise 机器上,我全新安装了 Erlang 17.4 和 RabbitMQ 3.4.3 x64.安装成功且顺利.

On a Windows 7 Enterprise machine, I made a fresh install of Erlang 17.4 and RabbitMQ 3.4.3 x64. The installation was successful and uneventful.

我还没有尝试创建我的第一个队列或交换,但我已经看到了问题.这个问题类似于another SO post,但是其他帖子似乎涉及聚类,我没有.此外,其他发帖人可以通过重新启动 RabbitMQ 服务来规避他的问题;这种方法对我不起作用.

I have not yet tried to create my first queue or exchange, but I already see trouble. This problem is similar to another SO post, but that other post appears to involve clustering, which I don't have. Furthermore, that other poster can circumvent his issue by restarting the RabbitMQ service; that approach does not work for me.

我的nodedown"问题在 RabbitMQ 命令提示符下很明显:

My "nodedown" problem is evident at the RabbitMQ command prompt:

C:Program Files (x86)RabbitMQ 服务器 abbitmq_server-3.4.3sbin>rabbitmqctl 状态节点rabbit@TPAJ05421843的状态 ...
错误:无法连接到节点rabbit@TPAJ05421843:nodedown

C:Program Files (x86)RabbitMQ Server abbitmq_server-3.4.3sbin>rabbitmqctl status Status of node rabbit@TPAJ05421843 ...
Error: unable to connect to node rabbit@TPAJ05421843: nodedown

尝试联系:[rabbit@TPAJ05421843]

attempted to contact: [rabbit@TPAJ05421843]

兔子@TPAJ05421843:
* 连接到 TPAJ05421843 上的 epmd(端口 4369)
* epmd 报告:节点兔子"根本没有运行
TPAJ05421843 上的其他节点:['RabbitMQ']
* 建议:启动节点

rabbit@TPAJ05421843:
* connected to epmd (port 4369) on TPAJ05421843
* epmd reports: node 'rabbit' not running at all
other nodes on TPAJ05421843: ['RabbitMQ']
* suggestion: start the node

当前节点详情:
- 节点名称:'rabbitmqctl-19884@TPAJ05421843'
- 主目录:H:
- cookie 哈希:PD4QQCYrf0TME9vIko3Xuw==

current node details:
- node name: 'rabbitmqctl-19884@TPAJ05421843'
- home dir: H:
- cookie hash: PD4QQCYrf0TME9vIko3Xuw==

基于上述,我选择检查显式命名为RabbitMQ"的节点的状态.我明白了:

Based on the above, I chose to check the status of the node explicitly named 'RabbitMQ'. I get this:

C:Program Files (x86)RabbitMQ 服务器 abbitmq_server-3.4.3sbin>rabbitmqctl -n RabbitMQ 状态
节点RabbitMQ@TPAJ05421843"的状态 ...
错误:无法连接到节点RabbitMQ@TPAJ05421843":nodedown

C:Program Files (x86)RabbitMQ Server abbitmq_server-3.4.3sbin>rabbitmqctl -n RabbitMQ status
Status of node 'RabbitMQ@TPAJ05421843' ...
Error: unable to connect to node 'RabbitMQ@TPAJ05421843': nodedown

尝试联系:['RabbitMQ@TPAJ05421843']

attempted to contact: ['RabbitMQ@TPAJ05421843']

RabbitMQ@TPAJ05421843:
* 连接到 TPAJ05421843 上的 epmd(端口 4369)
* epmd 报告节点RabbitMQ"在端口 59301 上运行
* TCP 连接成功但 Erlang 分发失败
* 建议:主机名不匹配?
* 建议:cookie设置正确吗?

RabbitMQ@TPAJ05421843:
* connected to epmd (port 4369) on TPAJ05421843
* epmd reports node 'RabbitMQ' running on port 59301
* TCP connection succeeded but Erlang distribution failed
* suggestion: hostname mismatch?
* suggestion: is the cookie set correctly?

当前节点详情:
- 节点名称:'rabbitmqctl-23076@TPAJ05421843'
- 主目录:H:
- cookie 哈希:PD4QQCYrf0TME9vIko3Xuw==

current node details:
- node name: 'rabbitmqctl-23076@TPAJ05421843'
- home dir: H:
- cookie hash: PD4QQCYrf0TME9vIko3Xuw==

好吧,这好不了多少,因为至少它承认RabbitMQ"在端口 59301 上运行.但是Erlang 分发失败"到底意味着什么?

Ok, this is barely better since at least it acknowledges 'RabbitMQ' running on port 59301. But what the heck could it mean that "Erlang distribution failed"?

当我尝试研究这个主题时,我发现有文章说确保您有匹配的 cookie".基于此,我发现 这篇文章,它声称cookie 不匹配"与我无关,因为我没有创建(也不打算创建)RabbitMQ 集群.

When I try to research this topic, I found articles saying "be sure you have matched cookies." Based on that I found this article, which claims the "cookie mismatch" does not pertain to me, because I have not created (nor intend to create) a RabbitMQ cluster.

我该怎么办?

推荐答案

我今天也遇到了同样的问题.没有 cookie 或防火墙问题,windows 报告服务运行成功.这就是最终修复它的原因:

I had this same problem today. There were no cookie or firewall problems and windows reported that the service was running successfully. This is what finally fixed it:

  1. 以管理员身份运行 RabbitMQ sbin 命令提示符.
  2. 运行rabbitmq-service remove"
  3. 运行rabbitmq-service install"

由于某种原因,安装程序设置的服务没有配置多个注册表项.运行此设置正确并允许服务运行.

For some reason the service set up by the installer did not configure several registry entries. Running this set them correctly and allowed the service to run.

我注意到的一件事是,在我这样做之前,Windows 服务视图中没有服务描述.使用 rabbitmq-service 命令安装后,描述可见.如果您遇到同样的问题,这可能是一个快速指示.

One thing I noticed was that before I did this, there was no description of the service in the Windows Services view. After installing with the rabbitmq-service command, the description was visible. This might be a quick indicator if you are having the same problem.

这篇关于RabbitMQ 出现 Nodedown 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆