更改cookie文件后RabbitMQ节点身份验证失败 [英] RabbitMQ node authentification failed after changing cookie file

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

问题描述

我有多个运行在不同计算机上的RabbitMQ节点.安装每个节点后,我无法为每个节点指定一个通用cookie,因此我不得不返回并手动更改文件.erlang.cookie.我的问题是,执行此操作后,我收到了冲突的错误消息.如果我做rabbitmqctl状态 我收到以下错误:

I have multiple RabbitMQ nodes running on different machines. After installing each node I failed to specify a common cookie for each of them to use so I had to go back and manually change the file .erlang.cookie . My issue is that after doing this I get conflicting error messages. If i do rabbitmqctl status I get the following error:

诊断

试图联系:['rabbit @ nc-mso-test01']

DIAGNOSTICS

attempted to contact: ['rabbit@nc-mso-test01']

rabbit @ nc-mso-test01:*连接到epmd(端口4369) nc-mso-test01 * epmd报告节点兔子"在端口25672上运行* TCP连接成功,但Erlang分发失败

rabbit@nc-mso-test01: * connected to epmd (port 4369) on nc-mso-test01 * epmd reports node 'rabbit' running on port 25672 * TCP connection succeeded but Erlang distribution failed

  • 身份验证失败(被远程节点拒绝),请检查 Erlang cookie
  • Authentication failed (rejected by the remote node), please check the Erlang cookie

当前节点详细信息: -节点名称:"rabbitmq-cli-45 @ nc-mso-test01" -主目录:C:\ Users \ jol -Cookie哈希:9/Hx6l + wLQv3NkmSDFqBog ==

current node details: - node name: 'rabbitmq-cli-45@nc-mso-test01' - home dir: C:\Users\jol - cookie hash: 9/Hx6l+wLQv3NkmSDFqBog==

无论我调用什么脚本,都会遇到相同的错误.我尝试重新启动服务,并通过rabbitmq-service删除并安装它.错误仍然存​​在.从其他文章中我可以得出,原因可能是节点和erlang代理在不同的用户上运行,并且每个用户都有不同版本的cookie,一个停留在旧版本上.

Whatever script I call, I get the same error. I tried restarting the service, removing and installing it through rabbitmq-service. The error persists. From what I can gather from other posts, the reason might be that the node and the erlang broker are running on separate users and each of them have a different version of the cookie, one is stuck with the old one.

如何使服务器和节点重新启动,以便它们都使用新的cookie文件?

How can I make the server and node restart, so that both of them use the new cookie file?

推荐答案

我解决了我的问题.我错过了RabbitMQ安装程序有两个cookie文件的事实,一个在erlang组件的c:\ Windows中,一个在C:\ Users \%USER%中.据我了解,如果erlan VM是在其自己的应用程序用户上启动的,而RabbitMQ节点是在其他用户上启动的(这就是我的情况),则这两个cookie文件是不同的,在同步之前,我必须先将它们同步群集cookie.

I solved my issue. I missed the fact that the RabbitMQ setup has two cookie files, one in c:\Windows for the erlang component, and one in C:\Users\%USER%. From what I understand, if the erlan VM is started on it's own application user and the RabbitMQ node is started on a different user, which would have been my case, then the two cookie files were different and I had to sync those up before syncing the cluster cookies.

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

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