登录rabbitmq后,收到以下错误:
通过正文获得了响应代码500 内部服务器错误 服务器在处理此请求时遇到错误:
{error,{error,{badmatch,{error,nxdomain}},
[{rabbit_nodes,cluster_name_default,0},
{rabbit_nodes,cluster_name,0},
{rabbit_mgmt_wm_overview,to_json,2},
{webmachine_resource,resource_call,3},
{webmachine_resource,do,3},
{webmachine_decision_core,resource_call,1},
{webmachine_decision_core,decision,1},
{webmachine_decision_core,handle_request,2}]}}
我在/ var / log / rabbitmq中的日志文件中看到以下错误:
=ERROR REPORT==== 31-Oct-2014::06:20:40 ===
webmachine error: path="/api/overview"
{error,{error,{badmatch,{error,nxdomain}},
[{rabbit_nodes,cluster_name_default,0},
{rabbit_nodes,cluster_name,0},
{rabbit_mgmt_wm_overview,to_json,2},
{webmachine_resource,resource_call,3},
{webmachine_resource,do,3},
{webmachine_decision_core,resource_call,1},
{webmachine_decision_core,decision,1},
{webmachine_decision_core,handle_request,2}]}}
工作人员能够连接到代理并正在接收消息,而且rabbitmq的新relic插件似乎工作正常。但是我无法通过管理插件登录。这方面的任何指示都会有所帮助。
答案 0 :(得分:2)
我更新了系统的主机名并导致了问题。请参阅以下链接
https://groups.google.com/forum/#!msg/rabbitmq-users/9P-BAwGVHJU/fwOpZPJywwYJ
我在/ etc / hosts中添加了127.0.0.1'hostname'。这解决了管理插件问题。但是,rabbitmqctl仍显示以下错误。重新启动了rabbitmq,它也解决了rabbitmqctl问题
Listing queues ...
Error: unable to connect to node 'rabbit@<hostname>': nodedown
DIAGNOSTICS
===========
attempted to contact: ['rabbit@<hostname>']
rabbit@<hostname>:
* connected to epmd (port 4369) on <hostname>
* epmd reports node 'rabbit' running on port 25672
* TCP connection succeeded but Erlang distribution failed
* suggestion: hostname mismatch?
* suggestion: is the cookie set correctly?
current node details:
- node name: <nodename>
- home dir: <homedir>
- cookie hash: <cookiehash>