认证失败(被远程节点拒绝),请检查 Erlang cookie [英] Authentication failed (rejected by the remote node), please check the Erlang cookie

查看:24
本文介绍了认证失败(被远程节点拒绝),请检查 Erlang cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照官方文档中提到的方式安装了erlang和rabbitmq.但是,当我这样做时

I installed erlang and rabbitmq in the way mentioned in the official documentation. But then, when I do this

C:Program FilesRabbitMQ Server abbitmq_server-3.7.0sbin>rabbitmqctl add_user XXXXXX YYYYYYY

它给了我以下错误...

it gives me the following error...

错误:无法在节点rabbit@C001741998"上执行操作.请参阅下面的诊断信息和建议.

Error: unable to perform an operation on node 'rabbit@C001741998'. Please see diagnostics information and suggestions below.

最常见的原因是:

  • 目标节点无法访问(例如,由于主机名解析、TCP 连接或防火墙问题)
  • CLI 工具无法通过服务器进行身份验证(例如,由于 CLI 工具的 Erlang cookie 与服务器的不匹配)
  • 目标节点未运行

除了以下诊断信息:

尝试联系:[rabbit@C001741998]

attempted to contact: [rabbit@C001741998]

兔子@C001741998:

rabbit@C001741998:

  • 在 C001741998 上连接到 epmd(端口 4369)

  • connected to epmd (port 4369) on C001741998

epmd 报告节点兔子"使用端口 25672 进行节点间和 CLI 工具流量

epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic

TCP 连接成功但 Erlang 分发失败

TCP connection succeeded but Erlang distribution failed

认证失败(被远程节点拒绝),请检查Erlang cookie

Authentication failed (rejected by the remote node), please check the Erlang cookie

当前节点详情:

  • 节点名称:rabbitmqcli49@C001741998

  • node name: rabbitmqcli49@C001741998

有效用户的主目录:C:UsersXYZ

effective user's home directory: C:UsersXYZ

Erlang cookie 哈希:QJlwBuAgrn8gN00mjqQYOw==

Erlang cookie hash: QJlwBuAgrn8gN00mjqQYOw==

我将 erlang cookie 从我的用户主文件夹复制到 C:Windows 文件夹.所以,他们都有相同的cookie.它仍然不断向我抛出错误.不知道应该如何修复.有什么帮助吗??

I copied the erlang cookie from my user home folder to C:Windows folder. So, they both have the same cookie. Still it keeps throwing me the error. Not sure how it should be fixed. Any help??

我发现运行 rabbitmq 的最佳方式是从 docker 容器中运行.这样,您无需担心任何 cookie 或依赖项,而且您可以在几分钟内启动并运行 rabbitmq.希望它可以帮助某人!

I figured out that the best way to run rabbitmq is from docker container. In that way, you do not need to bother about any cookie or dependencies, also you get rabbitmq up and running in few minutes. Hope it helps someone!

推荐答案

文档说你应该复制其他方式...

The docs says you should copy the other way...

如果使用 Windows 服务,则应将 cookie 从 C:Windowssystem32configsystemprofile.erlang.cookie 复制到用户运行 rabbitmqctl.bat 等命令的预期位置.

If the Windows service is used, the cookie should be copied from C:Windowssystem32configsystemprofile.erlang.cookie to the expected location for users running commands like rabbitmqctl.bat.

参见 http://www.rabbitmq.com/cli.html

这篇关于认证失败(被远程节点拒绝),请检查 Erlang cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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