When I start RabbitMQ by typing rabbitmq-server
it fails with the error message below.
When I use brew services start rabbitmq
it responds with “succesfully started rabbitmq” but when I type rabbitmqctl help
, after a long pause (2 min or so), it returns about the same error (less text).
Part of the response to rabbitmq-server
:
2022-08-12 20:10:04.756965+02:00 [notice] <0.145.0> Protocol 'inet_tcp': register/listen error: etimedout
2022-08-12 20:10:04.756965+02:00 [notice] <0.145.0>
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> supervisor: {local,net_sup}
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> errorContext: start_error
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> reason: {'EXIT',nodistribution}
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> offender: [{pid,undefined},
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> {id,net_kernel},
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> {mfargs,{net_kernel,start_link,
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> [#{clean_halt => false,
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> name => rabbit_prelaunch_3696@localhost,
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> name_domain => shortnames,
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> net_tickintensity => 4,
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> net_ticktime => 60,
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> supervisor => net_sup_dynamic}]}},
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> {restart_type,permanent},
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> {significant,false},
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> {shutdown,2000},
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0> {child_type,worker}]
2022-08-12 20:10:04.764490+02:00 [error] <0.142.0>
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0>
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> BOOT FAILED
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> ===========
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> Exception during startup:
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0>
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> error:{badmatch,{error,{{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[#{clean_halt => false,name => rabbit_prelaunch_3696@localhost,name_domain => shortnames,net_tickintensity => 4,net_ticktime => 60,supervisor => net_sup_dynamic}]},permanent,false,1000,supervisor,[erl_distribution]}}}}
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0>
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> rabbit_prelaunch_dist:duplicate_node_check/1, line 80
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> rabbit_prelaunch_dist:setup/1, line 23
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> rabbit_prelaunch:do_run/0, line 115
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> rabbit_prelaunch:run_prelaunch_first_phase/0, line 32
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> supervisor:do_start_child_i/3, line 414
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> supervisor:do_start_child/2, line 400
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> supervisor:-start_children/2-fun-0-/3, line 384
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0> supervisor:children_map/4, line 1250
2022-08-12 20:10:04.773521+02:00 [error] <0.130.0>
BOOT FAILED
it ends with: Crash dump is being written to: erl_crash.dump...done
but I have not been able to find the file so far. A terminal find command on the whole system didn’t help.
Response I get from rabbitmqctl help
(after initiating it with homebrew):
20:04:53.162 [error] rabbit_env: Failed to setup distribution (as rabbit_ctl_46@localhost) to query node rabbit@localhost: {:error,
{{:shutdown, {:failed_to_start_child, :net_kernel, {:EXIT, :nodistribution}}},
{:child, :undefined, :net_sup_dynamic,
{:erl_distribution, :start_link,
[
%{
clean_halt: false,
name: :rabbit_ctl_46@localhost,
name_domain: :shortnames,
net_tickintensity: 4,
net_ticktime: 60,
supervisor: :net_sup_dynamic
}
]}, :permanent, false, 1000, :supervisor, [:erl_distribution]}}}
about the setup: MacOS, Homebrew installation out of the box. RabbitMQ 3.10.7 Erlang 25.0.3
I installed RabbitMQ recently for the first time, only used for some testing, no (manual) configuration. Now, a week later it fails to start. I have reinstalled it, using homebrew, hoping that would help, but no luck.
Any idea’s?
Frankly, I don’t know anything about erlang. Based on the error and the posts I have read I am guessing it has something to do with the Erlang distribution.
I also posted this on stackoverflow: