2014-10-31 203 views
2

後,我登錄到RabbitMQ的,我得到以下錯誤:RabbitMQ的管理:webmachine錯誤:路徑=「/ API /概覽」

得到了與身體 內部服務器錯誤響應代碼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日誌文件/日誌/ 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插件似乎也能正常工作。但是我無法通過管理插件登錄。任何在這方面的指針都會有所幫助。

回答

2

我已經更新了系統的主機名,導致了這個問題。見下面

https://groups.google.com/forum/#!msg/rabbitmq-users/9P-BAwGVHJU/fwOpZPJywwYJ

我在/ etc/hosts中添加127.0.0.1 '主機名' 的鏈接。這解決了管理插件問題。但是rabbitmqctl仍然顯示以下錯誤。重新啓動rabbitmq並解決了rabbitmqctl問題

Listing queues ... 
Error: unable to connect to node '[email protected]<hostname>': nodedown 

DIAGNOSTICS 
=========== 

attempted to contact: ['[email protected]<hostname>'] 

[email protected]<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>