Login Failed When Trying to Access Web Based Managment Console

2,649 views
Skip to first unread message

james....@gmail.com

unread,
Jul 18, 2017, 8:10:14 PM7/18/17
to rabbitmq-users
Downloaded and unzipped rabbitmq_server-3.6.10.zip on my macOS Sierra (10.12.5) computer.

Set my RABBITMQ_HOME to point to my install dir inside .bash_profile and added the $RABBITMQ_HOME/sbin dir to my PATH.

Noticed that I had to install openssl and did so using using Homebrew...

Installed the following plugins:

[e*] amqp_client                                    3.6.10
[e*] cowboy                                             1.0.4
[e*] cowlib                                               1.0.2
[E*] rabbitmq_management                 3.6.10
[e*] rabbitmq_management_agent      3.6.10
[E*] rabbitmq_stomp                            3.6.10
[e*] rabbitmq_web_dispatch                3.6.10
[E*] rabbitmq_web_stomp                   3.6.10
[e*] sockjs                                             0.3.4

When I start the server:

              RabbitMQ 3.6.10. Copyright (C) 2007-2017 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /Users/myuser/rabbitmq/rabbitmq_server-3.6.10/var/log/rabbitmq/rabbit at mycomputer.log
  ######  ##        /Users/myuser/rabbitmq/rabbitmq_server-3.6.10/var/log/rabbitmq/rabbit at mycomputer-sasl.log
  ##########
              Starting broker...
 completed with 9 plugins.

When open up Chrome and go to:


I am able to see the login screen for the RabbitMQ Management Console.

 After entering in guest for username and guest for password it says "Login Failed".

Inside the log it says this at the bottom:

=WARNING REPORT==== 18-Jul-2017::17:04:10 ===
HTTP access denied: user 'guest' - invalid credentials

Isn't the Broker create user guest with password guest by default?

What am I doing wrong? Is there a step that I am missing?

Michael Klishin

unread,
Jul 18, 2017, 8:24:45 PM7/18/17
to rabbitm...@googlegroups.com
RabbitMQ does create a guest/guest user on first boot with permissions to access vhost /
and tagged as "administrator". There are no extra steps other than enabling the plugin.

That user is not allowed to connect from remote hosts (http://www.rabbitmq.com/access-control.html) but you use localhost.

So my best guess is that something (a browser plugin such as LastPass, for example) modifies
credentials or it's a genuine typo. "Invalid credentials" is pretty unambiguous.

Use your browser's developer tools or Wireshark to see what's sent to the HTTP API. Management UI
uses basic HTTP authentication, so it's possible to decode the credentials.

Note that if this was a common issue it would be reported on this list multiple times a day, every day.


--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Michael Klishin

unread,
Jul 18, 2017, 8:43:53 PM7/18/17
to rabbitm...@googlegroups.com
One easy way to test HTTP API authentication without any possible interference from browser plugins and such
is via `curl`:

curl -X GET -u guest:guest -H "Content-Type: application/json" http://localhost:15672/api/overview

or, with nicer formatting:

curl -X GET -u guest:guest -H "Content-Type: application/json" http://localhost:15672/api/overview | python -m json.tool



To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages