Management UI - Admin functions don't work for add, change, delete

77 views
Skip to first unread message

eric...@verizonwireless.com

unread,
Sep 14, 2018, 3:50:58 PM9/14/18
to rabbitmq-users
I have newly installed RabbitMQ in a 2 node cluster on a couple of Windows servers.  I've enabled the management ui plugin on both nodes.  I've added a new admin user via the command line tool (because "guest" is for local only).  I login to the management UI via port 15672 in a browser.  All seems well.  I can browse around in the UI soaking in all the "read-only" information.

Then I try to add a user using the UI, Nothing happens except a red error message briefly flashes in the header of the page.  Not long enough to be read before it disappears.  The same thing happens if I try to add a VHost or anything else.  Can't edit anything either.  Can't delete anything either.

Could it have something to do w/ the UI not knowing the cluster's "Erlang Cookie" or something?  I looked all over the clustering doc, it didn't say anything about putting the "Cookie" somewhere the management UI could access it.

I'm on RabbitMQ version 3.7.7 and Erlang version 21.0.1.

Thanks.

Michael Klishin

unread,
Sep 14, 2018, 5:39:20 PM9/14/18
to rabbitm...@googlegroups.com
What's in the server logs? What's in the browser console (JavaScript console and network requests table)?

The UI is a single page JavaScript application. It doesn't use Erlang node connectivity and thus doesn't use the Erlang cookie.

Please don't guess and try to collect clues in the logs and browser tools.

--
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

eric...@verizonwireless.com

unread,
Sep 17, 2018, 12:12:51 PM9/17/18
to rabbitmq-users
The only server logs I could find were in "%APPDATA%\RabbitMQ\log" folder and those files haven't been updated in several days.  If Rabbit MQ is running as a service, it has no business recording logs in a folder under my user ID anyway.  So, where are the logs when it runs as a service?  I couldn't find them.


Browser "Network" shows no response from the request.

Browser "Console" output:

sync_req @ main.js:1174
sync_put @ main.js:1136
(anonymous) @ dispatcher.js:191
nextRoute @ sammy-0.7.6.min.js:5
wrapped_route @ sammy-0.7.6.min.js:5
runRoute @ sammy-0.7.6.min.js:5
_checkFormSubmission @ sammy-0.7.6.min.js:5
(anonymous) @ sammy-0.7.6.min.js:5
listener_callback @ sammy-0.7.6.min.js:5
dispatch @ jquery-1.12.4.min.js:3
r.handle @ jquery-1.12.4.min.js:3

Luke Bakken

unread,
Sep 17, 2018, 4:38:40 PM9/17/18
to rabbitmq-users
Hi Eric,

That is the correct location for the log files, as documented in these places:



I realize it's a bit odd for logs to be stored in the %AppData%\RabbitMQ directory of the administrative user who installed the service, but that is how it works out-of-the-box for the time being. It is possible to re-direct via setting system environment variables prior to installing the service.

Anyway, back to your original issue. The console output you provided is not sufficient to diagnose this issue. Most browsers have tools that will show both the full HTTP request and response, including headers, response codes, and the body. Capturing that output to a file would be very useful.

An alternative would be to use the HTTP API to create a new user. This API is documented in the management UI via a link at the bottom of the page as well as here:


If you could use curl or Invoke-WebRequest to try and create the user with verbose output enabled, that could be useful.

I just tested adding a user via the Management UI with success, using Windows 8.1 (pro), Erlang 21 and RabbitMQ 3.7.7.

Thanks,
Luke

eric...@verizonwireless.com

unread,
Sep 17, 2018, 5:03:16 PM9/17/18
to rabbitmq-users
Thx for the info about the logs...

The downside of the situation:  I used my userid to install RabbitMQ,  No one else will have access to those logs but me.  ...but it is what it is.

Back to original issue:

I don't have curl for windows but I was able to follow the API docs and submit a test w/ Postman. ( https://www.getpostman.com/ )

I tried creating a vhost...
I passed basic authentication to the http://<host:port>/api/vhosts/test as a PUT w/ an additional header for Content-Type=application/json and passed the following payload:

{ name: "test" }

No response returned.  Its like it's timing out or something.  I was able to create a single user using the Web UI but only once.  Subsequent retries yielded the same result as before.

Luke Bakken

unread,
Sep 17, 2018, 5:09:00 PM9/17/18
to rabbitmq-users
Hi Eric,

At this point my next step would be to totally disable the firewall on the server running RabbitMQ and re-try. If that fixes it, add a rule to allow incoming access to port 15672 to the erl.exe process.

Thanks,
Luke

eric...@verizonwireless.com

unread,
Sep 17, 2018, 5:11:07 PM9/17/18
to rabbitmq-users
Correction:  Payload was bad.


Here's the corrected full request:

PUT /api/vhosts/test HTTP/1.1 Host: tbw<redacted>p.com:15672 Authorization: Basic YW<redacted>3bg== Content-Type: application/json Cache-Control: no-cache Postman-Token: b9931dfb-5fd3-eb0a-d7e2-9918f85cc425 {"name":"test"}


Still same non-response issue though.

Lord, Joseph Eric (Eric)

unread,
Sep 17, 2018, 5:14:28 PM9/17/18
to rabbitm...@googlegroups.com
We could try the FW thing, but it seems strange that it would only be blocking PUTs.  I can use the WebUI already... Just can't modify anything (most of the time).

--

Michael Klishin

unread,
Sep 17, 2018, 5:33:58 PM9/17/18
to rabbitm...@googlegroups.com
It's definitely unlikely to be a firewall issue if only PUTs are rejected but turning the firewall off for now
would eliminate a major source of confusion and issues.

Can you please take a traffic capture as you try to delete things? Response bodies are just as important
here as the request ones.

Are there any JS errors in the console? What browser is used?

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

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

--
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.

Luke Bakken

unread,
Sep 17, 2018, 7:22:59 PM9/17/18
to rabbitmq-users
Hey Eric,

This is a very bizarre issue. Do you have any internet proxy settings in place, automatic or otherwise?

If you could download a binary build of curl from the following location, you could use it to do the request since I'm pretty sure it will bypass Windows proxy settings:


Here's what the request would look like in a cmd.exe terminal to create a vhost named "test":

curl -4vvvu "user:password" -XPUT http://tbw<redacted>p.com:15672/api/vhosts/test

Note that there is no body required to create a vhost via this request.  You can then list vhosts with the following request:

curl -4vvvu "user:password" http://tbw<redacted>p.com:15672/api/vhosts

Let us know how that works -
Luke

eric...@verizonwireless.com

unread,
Sep 18, 2018, 2:12:13 PM9/18/18
to rabbitmq-users
Hi Luke,

I've done some more testing...

- Using curl, doing PUTs of several types seems to be reliable.  
- Using the WebUI in Chrome, is UNreliable.  
- Using the WebUI in IE, is very reliable.

So, it seems to be an issue in Chrome.  Perhaps I have too many other Chrome sessions running or something.  Who can say?

I hope this information gives you a way to reproduce the issue:  Open a bunch of Chrome windows (maybe 16ish) to various other sites.  Then try to use the WebUI to add/modify/delete objects.

Luke Bakken

unread,
Sep 18, 2018, 2:23:43 PM9/18/18
to rabbitmq-users
Hi Eric,

Thanks for that information. What version of Chrome are you using and on what OS? Any chance you can try with an incognito window to bypass the cache?

I can't remember the last time someone reported a very browser-specific issue like this one. FWIW, I use Chrome on OS X and Chromium on Arch Linux pretty much daily with the management UI and haven't seen this issue.

Luke

eric...@verizonwireless.com

unread,
Sep 18, 2018, 2:47:32 PM9/18/18
to rabbitmq-users
Chrome version:  Version 68.0.3440.106 (Official Build) (64-bit)

Incognito instance has the same issue.  I get a flash of an error message in the header area of the page but it disappears so fast, I can't read it.

Luke Bakken

unread,
Sep 19, 2018, 11:17:08 AM9/19/18
to rabbitmq-users
Hi Eric,

I'm pretty much out of ideas. This issue appears to be specific to your workstation is running Chrome. I would suggest that it could be an extension issue but incognito mode shows the same behavior ... ¯\_(ツ)_/¯

The latest version of Chrome appears to be 69 so I'd suggest upgrading.

Thanks,
Luke
Reply all
Reply to author
Forward
0 new messages