简体   繁体   English

Rabbit MQ 错误:无法对节点“rabbit@USERNAME”执行操作

[英]Rabbit MQ Error : unable to perform an operation on node 'rabbit@USERNAME'

Error: unable to perform an operation on node 'rabbit@YASHODIP-PC'.错误:无法对节点“rabbit@YASHODIP-PC”执行操作。 Please see diagnostics information and suggestions below.请参阅下面的诊断信息和建议。

Most common reasons for this are:最常见的原因是:

  • Target node is unreachable (eg due to hostname resolution, TCP connection or firewall issues)目标节点不可访问(例如由于主机名解析、TCP 连接或防火墙问题)
  • CLI tool fails to authenticate with the server (eg due to CLI tool's Erlang cookie not matching that of the server) CLI 工具无法通过服务器进行身份验证(例如,由于 CLI 工具的 Erlang cookie 与服务器的不匹配)
  • 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请参阅https://rabbitmq.com/documentation.html上的 CLI、集群和网络指南以了解更多信息
  • Consult server logs on node rabbit@YASHODIP-PC在节点 rabbit@YASHODIP-PC 上查询服务器日志
  • If target node is configured to use long node names, don't forget to use --longnames with CLI tools如果目标节点配置为使用长节点名称,请不要忘记将 --longnames 与 CLI 工具一起使用

DIAGNOSTICS诊断

attempted to contact: ['rabbit@YASHODIP-PC']试图联系:['rabbit@YASHODIP-PC']

rabbit@YASHODIP-PC: * connected to epmd (port 4369) on YASHODIP-PC * epmd reports: node 'rabbit' not running at all no other nodes on YASHODIP-PC * suggestion: start the node rabbit@YASHODIP-PC: * 连接到 YASHODIP-PC 上的 epmd(端口 4369) * epmd 报告:节点“rabbit”根本没有运行 YASHODIP-PC 上没有其他节点 * 建议:启动节点

Current node details: * node name: 'rabbitmqcli-17388-rabbit@YASHODIP-PC' * effective user's home directory: C:\Users\yasho * Erlang cookie hash: 96Pe9121Rb1vncp1IqXA6Q==当前节点详细信息: * 节点名称:'rabbitmqcli-17388-rabbit@YASHODIP-PC' * 有效用户的主目录:C:\Users\yasho * Erlang cookie hash: 96Pe9121Rb1vncp1IqXA6Q==


I am not able to view the status of the rabbitMQ service installed on my local machine.我无法查看安装在本地计算机上的 rabbitMQ 服务的状态。 Please suggest resolution.请提出解决方案。

This error can occur due to发生此错误的原因可能是

  1. Clustering between nodes are not proper节点之间的集群不正确
  2. The erlang cookie is irrelevant erlang cookie 无关紧要

If you are not working on Clustering then second can be your problem, Please study RabbitMQ, erlang: how to "make sure the erlang cookies are the same" If you are not working on Clustering then second can be your problem, Please study RabbitMQ, erlang: how to "make sure the erlang cookies are the same"

This type of errors could happen if you have too long hostname.如果您的主机名太长,可能会发生这种类型的错误。 It's the reason why it explains:这就是它解释的原因:

If target node is configured to use long node names, don't forget to use --longnames with CLI tools

Solution解决方案

edit the rabbit's config file (for RHEL type it's /etc/rabbitmq/rabbitmq.conf ).编辑 rabbit 的配置文件(对于 RHEL 类型,它是/etc/rabbitmq/rabbitmq.conf )。 In the networking section:在网络部分:

#IPv4
listeners.tcp.local = 127.0.0.1:5672
#...

## write your ip and not your hostname
listeners.tcp.ohter_ip = 164.81.0.0:5672 

Old topic, but I stumbled across it looking for reasons.老话题,但我在寻找原因时偶然发现了它。 So I will write what I have.所以我会写我所拥有的。 In the file /etc/rabbitmq/rabbitmq-env.conf在文件 /etc/rabbitmq/rabbitmq-env.conf

export RABBITMQ_NODENAME=rabbit@domain.com

replaced by取而代之

export RABBITMQ_NODENAME=rabbit@localhost

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM