即使设置了 cookie 也使 RabbitMQ 身份验证失败 [英] Getting RabbitMQ authentication failing even with cookie is set

查看:65
本文介绍了即使设置了 cookie 也使 RabbitMQ 身份验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在运行 lattePanda 的 Windows 10 上安装了带有 ErlanOTP 的 rabbitmq

I have recently installed rabbitmq with ErlanOTP on Windows 10 running on lattePanda

我运行 rabbitmqctl status 并收到以下错误:

I ran rabbitmqctl status and got the following error:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.5\sbin>rabbitmqctl status
节点rabbit@DESKTOP-V6GQ6RF状态...
错误:无法对节点rabbit@DESKTOP-V6GQ6RF"执行操作.请参阅下面的诊断信息和建议.

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.5\sbin>rabbitmqctl status
Status of node rabbit@DESKTOP-V6GQ6RF ...
Error: unable to perform an operation on node 'rabbit@DESKTOP-V6GQ6RF'. Please see diagnostics information and suggestions below.

最常见的原因是:

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

除了以下诊断信息:

诊断

尝试联系:['rabbit@DESKTOP-V6GQ6RF']

attempted to contact: ['rabbit@DESKTOP-V6GQ6RF']

rabbit@DESKTOP-V6GQ6RF:

rabbit@DESKTOP-V6GQ6RF:

  • 连接到 DESKTOP-V6GQ6RF 上的 epmd(端口 4369)
  • epmd 报告节点rabbit"使用端口 25672 进行节点间和 CLI 工具流量
  • TCP 连接成功但 Erlang 分发失败
  • 认证失败(被远程节点拒绝),请检查Erlang cookie

当前节点详情:

  • 节点名称:'rabbitmqcli2@DESKTOP-V6GQ6RF'
  • 有效用户的主目录:C:\Users\LattePanda
  • Erlang cookie 哈希:8Kq9f/AaeixMvahU4G2v8A==

如何启动和运行 RabbitMQ?

How can I get RabbitMQ up and running?

在排除故障时,我发现了这个帖子 https://groups.google.com/forum/#!topic/rabbitmq-users/a6sqrAUX_Fg

While trouble-shooting I discovered this thread https://groups.google.com/forum/#!topic/rabbitmq-users/a6sqrAUX_Fg

并将环境变量设置为我在 %HOMEDRIVE%%HOMEPATH%\.erlang.cookie 中找到的 Erlang Cookie,但它似乎仍然不起作用.

and set the environment variable to Erlang Cookie I found in %HOMEDRIVE%%HOMEPATH%\.erlang.cookie but it still doesn't seem to work.

推荐答案

RabbitMQ 团队监控 rabbitmq-users 邮件列表 并且只有时在 StackOverflow 上回答问题.

The RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.

从正确的位置复制 cookie 很重要.本文档 解释了基于 Erlang 版本和视窗版.您没有提到您使用的是哪个 Erlang 版本,但我怀疑您想将 C:\WINDOWS\system32\config\systemprofile\.erlang.cookie 文件复制到 %HOMEDRIVE%%HOMEPATH%\.erlang.cookie.您不应该设置任何环境变量,所以如果您有,我建议删除它们并重新启动您的服务器.

It is important to copy the cookie from the correct location. This document explains where it is located based on Erlang version and Windows version. You don't mention which Erlang version you are using, but I suspect you will want to copy the C:\WINDOWS\system32\config\systemprofile\.erlang.cookie file to %HOMEDRIVE%%HOMEPATH%\.erlang.cookie. You should not have to set any environment variables so if you have, I recommend removing them and restarting your server.

这篇关于即使设置了 cookie 也使 RabbitMQ 身份验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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