当前位置:   article > 正文

RabbitMq无法连接([AMQP Connection xx.xx.xx.xx:5672-119] ERROR com.rabbitmq.client.impl.ForgivingExcept)_[amqp connection 192.168.11.100:5672] error com.ra

[amqp connection 192.168.11.100:5672] error com.rabbitmq.client.impl.forgivi

报错信息

[AMQP Connection xx.xx.xx.xx:5672-119] ERROR com.rabbitmq.client.impl.ForgivingExceptionHandler 119 log - An unexpected connection driver error occured java.net.SocketException: socket closed
我的服务器原来安装过RabbitMq 而且一直用的挺舒适,大概几个月没用,今天想用mqtt协议,但是启动的时候给我提示这个错误。一脸懵逼,之前明明好好的,怎么就突然不让连接了呢?这种事情最讨厌了。

  • 第一反应是账号权限问题,但是发现没问题。
  • 然后看了一下状态rabbitmqctl status
C:\Users\Administrator>rabbitmqctl status
Status of node rabbit@xxxxxx ...
Error: unable to perform an operation on node 'xxxxxxx'. Please s
ee diagnostics information and suggestions below.

Most common reasons for this are:

* Target node is unreachable (e.g. due to hostname resolution, TCP connection o
r firewall issues)
* CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang
cookie not matching that of the server)
* Target node is not running

In addition to the diagnostics info below:

* See the CLI, clustering and networking guides on http://rabbitmq.com/document
ation.html to learn more
* Consult server logs on node rabbit@xxxxxx

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

attempted to contact: [xxxxxxx]

rabbit@iZpa12hzjf4z5qZ:
 * connected to epmd (port 4369) onxxxxx
 * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traff
ic
 * TCP connection succeeded but Erlang distribution failed

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


Current node details:
* node name: rabbitmqcli72@xxxxxx
* effective user's home directory: C:\Users\Administrator
* Erlang cookie hash: xxxxxx
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38

然后参考了一下 https://blog.csdn.net/J_Shine/article/details/78833456

找到C:\Windows\System32\config\systemprofile下有个.erlang.cookie文件,内容与C:\User\lujie.erlang.cookie不一样,不让编辑,于是复制了一下,使内容一致,然后重启,再rabbitmqctl status 正常了,但是连接仍然报错。没完没了了还…

Virtual host / experienced an error on node rabbit@wohu-rabbit and may be  inaccessible
  • 1

在这里插入图片描述
发现这个问题后 我找到了RabbitMq的安装目录 下面有个db文件夹,我把里面东西都删掉了(需要权限->先进去删,然后再出来删)。
重启,解决。

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号