Preface
System version: CentOS Linux release 7.7.1908 (Core)
Adding a user to rabbitmq via the rabbitmqctl add_user admin 12345 command prompts an error.
[root@localhost perl]# rabbitmqctl add_user admin 12345
Error: unable to connect to node rabbit@localhost: nodedown
DIAGNOSTICS
===========
attempted to contact: [rabbit@localhost]
rabbit@localhost:
* connected to epmd (port 4369) on localhost
* epmd reports node ‘rabbit’ running on port 25672
* TCP connection succeeded but Erlang distribution failed
* Authentication failed (rejected by the remote node), please check the Erlang cookie
current node details:
– node name: ‘rabbitmq-cli-49@localhost’
– home dir: /root
– cookie hash: BgvEr+lGkDjLTQzT85cpyw==
Solution:
1)Search the .erlang.cookie file
[root@localhost mnesia]# find/-name *.cookie
/root/.erlang.cookie
/opt/rabbitmq_server-3.6.10/.erlang.cookie
2)Overwrite the /root/.erlang.cookie file
cp /opt/rabbitmq_server-3.6.10/.erlang.cookie /root/
Cause:
RabbitMQ’s .erlang.cookie conflicts with the user’s cookie and needs to override the user’s cookie with RabbitMQ’s cookie
Read More:
- RabbitMQ:[error] Error when reading /Users/sixcandy/.erlang.cookie: eacces
- Rabbitmq Install Error (You have already installed the higher version of Erlang)
- How to Solve Rabbitmq Error: Failed to start RabbitMQ broker
- [Solved] rabbitmq Start service rabbitmq-server restart Error
- Rabbitmq failed to stop normally: ERROR: node with name “rabbit” already running on “localhost”
- [Solved] rabbitMQ: factory.newConnection() Error: com.rabbitmq.client.ShutdownSignalException
- [Solved] Rabbitmq Server Error: unable to perform an operation on node ‘rabbit@nscczzms‘. P
- CentOS8 Run rabbitmq-server Error: epmd error for host 172: badarg (unknown POSIX error)
- RabbitMQ:address (cannot connect to host/port) [How to Solve]
- RabbitMQ Configuration File Error: publisher-confirms=true [Solved]
- [Solved] Android Studio Compile error: Cannot use connection to Gradle distribution . as it has been stopped.
- Tomcat startup error: Failed to start component [StandardServer[8005]] solution
- Solution of “TCLs parsing failed” when dnf starts
- [Solved] Error: unable to perform an operation on node ‘rabbit@DESKTOP-xxx‘. Please see diagnostics informa
- Windows update failed to update, indicating the solution of 0x80244021
- Solution: from. Import ft2font importerror: DLL load failed: the specified module cannot be found
- Failed to load file or assembly “Microsoft.Office.Interop.Excel” Solution
- Solution: the solution to the wrong connection of rosdep init or rosdep update
- The reason and solution for the error ECONNRESET of the httpClieint request of Node.js
- The solution of no module named ‘jinja2. Asyncsupport’