Reg: Setting up the RabbitMQ In Development Environment

98 views
Skip to first unread message

Sudhir Yadav

unread,
Jan 12, 2021, 12:24:33 AM1/12/21
to rabbitm...@googlegroups.com
Hi Team, 
WHile setting up the Develop environment in Windows machine, it's not allowing me to login with guest guest credentials.
So, I tried to add different users but I am not able to do so. I am getting below mentioned error.
Could you guys , please help me out?

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9\sbin>rabbitmqctl add_user test test
Error: unable to perform an operation on node 'rabbit@sudhir-pc'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or 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 https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node rabbit@sudhir-pc
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

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

attempted to contact: ['rabbit@sudhir-pc']

rabbit@sudhir-pc:
  * connected to epmd (port 4369) on sudhir-pc
  * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
  * TCP connection succeeded but Erlang distribution failed

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


Current node details:
 * node name: 'rabbitmqcli-5636-rabbit@sudhir-pc'
 * effective user's home directory: C:\Users\sudhir
 * Erlang cookie hash: UBWXFSfAIKgspiMY4w8qnA==



Best Regards,
Sudhir Yadav

Luke Bakken

unread,
Jan 12, 2021, 11:45:06 AM1/12/21
to rabbitmq-users
Hello,

By default, the "guest" user can only connect from localhost - https://www.rabbitmq.com/access-control.html#loopback-users

In the output you provided, please note the following message:

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

Have you checked that the Erlang cookie for your user is the same as what is being used by RabbitMQ?


You probably have to run this command:

copy %SystemRoot%\system32\config\systemprofile\.erlang.cookie %HOMEDRIVE%%HOMEPATH%

Thanks,
Luke

Sudhir Yadav

unread,
Jan 13, 2021, 2:27:09 PM1/13/21
to rabbitm...@googlegroups.com
Hi Luke ,
Thank you so much for your help.
This issue I have resolved after deleting db folder  and installed the service again.
Thank you so much once again.
Best regards
Sudhir Yadav 

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/7c9e1999-b478-429c-9a81-e7d6669b9bb9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages