failure to start rabbitmq installed via homebrew which worked formerly

1,773 views
Skip to first unread message

David Rekowski

unread,
Dec 20, 2016, 11:35:45 AM12/20/16
to rabbitmq-users
Hello

I have a problem with starting rabbitmq installed via homebrew. It worked, but must have been broken by a recent update. rabbitmqctl status tells me a node rabbitmq-cli-65 is running, but rabbit not (see http://pastebin.com/kvv4C3uu). Any help is appreciated.

$ brew info rabbitmqrabbitmq: stable 3.6.4


- David

Michael Klishin

unread,
Dec 20, 2016, 11:37:40 AM12/20/16
to rabbitm...@googlegroups.com, David Rekowski
It is not possible to suggest anything without server logs and the exact output from
`rabbitmqctl status`.
> --
> 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 post to this group, send an email to rabbitm...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
MK

Staff Software Engineer, Pivotal/RabbitMQ


David Rekowski

unread,
Dec 20, 2016, 11:48:58 AM12/20/16
to rabbitmq-users, agn...@gmail.com
Oh right, I could have just pasted it here instead of linking to pastebin, sorry:

$ rabbitmqctl status

Status of node rabbit@localhost ...

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' not running at all

                  other nodes on localhost: ['rabbitmq-cli-65']

  * suggestion: start the node

Michael Klishin

unread,
Dec 20, 2016, 12:09:17 PM12/20/16
to rabbitm...@googlegroups.com, David Rekowski
What is in RabbitMQ log files?

I have Homebrew under /usr/local and RabbitMQ logs are under
/usr/local/var/log/rabbitmq/

David Rekowski

unread,
Dec 20, 2016, 12:16:49 PM12/20/16
to rabbitmq-users, agn...@gmail.com
Nothing new appears in either log file (rab...@localhost-sasl.log or rab...@localhost.log) when I try to restart the server:

$ brew services restart rabbitmq
Stopping `rabbitmq`... (might take a while)
==> Successfully stopped `rabbitmq` (label: homebrew.mxcl.rabbitmq)
==> Successfully started `rabbitmq` (label: homebrew.mxcl.rabbitmq)



$ rabbitmqctl status
Status of node rabbit@localhost ...
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' not running at all
                  other nodes on localhost: ['rabbitmq-cli-37']
  * suggestion: start the node

Michael Klishin

unread,
Dec 20, 2016, 12:21:15 PM12/20/16
to rabbitm...@googlegroups.com, David Rekowski
What does running it in the foreground (`/usr/local/Cellar/rabbitmq/3.6.4/sbin/rabbitmq-server`) output?
What about `ps aux | grep beam`?

David Rekowski

unread,
Dec 20, 2016, 12:24:48 PM12/20/16
to rabbitmq-users, agn...@gmail.com
Strangely, there is no rabbitmq-server binary. Let me try to reinstall it.

David Rekowski

unread,
Dec 20, 2016, 12:44:45 PM12/20/16
to rabbitmq-users, agn...@gmail.com
And here we go, it works after a reinstall. I can't tell how this could happen as I can't imagine having deleted the rabbitmq-server binary explicitly. Anyway, thanks for the very helpful, to the point troubleshooting support.

Cheers,
David

Michael Klishin

unread,
Dec 20, 2016, 12:44:53 PM12/20/16
to rabbitm...@googlegroups.com, David Rekowski
OK, that explains why the node doesn’t start :)

There’s nothing wrong with running RabbitMQ from Homebrew but as an FYI, it is quite
trivial to run it in the foreground when you need it, either as a standalone OS X build [1] — which
is what Homebrew uses! — or a generic UNIX binary package (then Erlang has to be installed e.g. via Homebrew).

1. http://www.rabbitmq.com/install-standalone-mac.html
http://www.rabbitmq.com/install-generic-unix.html
Reply all
Reply to author
Forward
0 new messages