Rabbitmq fails while C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.3\sbin>rabbitmq-plugins enable rabbitmq_management pasing the command

303 views
Skip to first unread message

Anudeep Sett

unread,
Aug 2, 2020, 11:28:37 AM8/2/20
to rabbitmq-users
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.3\sbin>rabbitmq-plugins enable rabbitmq_management
Enabling plugins on node rabbit@DESKTOP-29RVEOE:
rabbitmq_management
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@DESKTOP-29RVEOE...
** (CaseClauseError) no case clause matching: {:badrpc, {:EXIT, {{{:could_not_start_server, :inet_gethost_native}, {:gen_server, :call, [:net_kernel, {:connect, :normal, :"rabbit@DESKTOP-29RVEOE"}, :infinity]}}, {:gen_server, :call, [{:rex, :"rabbit@DESKTOP-29RVEOE"}, {:call, :net_kernel, :get_net_ticktime, [], #PID<0.50.0>}, :infinity]}}}}
    (rabbitmqctl) lib/rabbitmq/cli/plugins/plugins_helpers.ex:176: RabbitMQ.CLI.Plugins.Helpers.update_enabled_plugins/2
    (rabbitmqctl) lib/rabbitmq/cli/plugins/plugins_helpers.ex:98: RabbitMQ.CLI.Plugins.Helpers.update_enabled_plugins/4
    (rabbitmqctl) lib/rabbitmq/cli/plugins/commands/enable_command.ex:98: anonymous fn/6 in RabbitMQ.CLI.Plugins.Commands.EnableCommand.do_run/2
    (elixir) lib/stream.ex:1179: anonymous fn/2 in Stream.iterate/2
    (elixir) lib/stream.ex:1354: Stream.do_unfold/4
    (elixir) lib/stream.ex:1405: Enumerable.Stream.do_each/4
    (elixir) lib/stream.ex:849: Stream.do_enum_transform/10
    (elixir) lib/stream.ex:1405: Enumerable.Stream.do_each/4


20:49:05.438 [error] Error in process #PID<0.82.0> on node :"rabbitmqcli88@DESKTOP-29RVEOE" with exit value:
{:eacces,
 [{:erlang, :open_port,
   [{:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary]],
   [file: 'erlang.erl', line: 2118]},
  {:inet_gethost_native, :server_init, 2,

Luke Bakken

unread,
Aug 4, 2020, 4:19:06 PM8/4/20
to rabbitmq-users
Hello,

What version of Erlang are you using? What version of Windows?

You should remove both Erlang and RabbitMQ, and ensure you are using the latest versions of both:



When you remove and re-install Erlang and RabbitMQ ensure you are using a local administrative account.

Thanks -
Luke

Gulzar Ahamed

unread,
Jul 14, 2021, 12:32:28 PM7/14/21
to rabbitmq-users
is this issue get resolved? I am also facing same issue like below

2021-07-14 19:36:11 =CRASH REPORT====
  crasher:
    initial call: supervisor_bridge:inet_gethost_native/1
    pid: <0.636.0>
    registered_name: inet_gethost_native_sup
    exception exit: {{eacces,[{erlang,open_port,[{spawn,"inet_gethost 4 "},[{packet,4},eof,binary]],[{file,"erlang.erl"},{line,2272}]},{inet_gethost_native,server_init,2,[{file,"inet_gethost_native.erl"},{line,184}]}]},[{gen_server,handle_common_reply,8,[{file,"gen_server.erl"},{line,805}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
    ancestors: [kernel_safe_sup,kernel_sup,<0.47.0>]
    message_queue_len: 0
    messages: []
    links: [<0.74.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 1598
    stack_size: 28
    reductions: 1099
  neighbours:
2021-07-14 19:36:11 =SUPERVISOR REPORT====
     Supervisor: {local,kernel_safe_sup}
     Context:    child_terminated
     Reason:     {eacces,[{erlang,open_port,[{spawn,"inet_gethost 4 "},[{packet,4},eof,binary]],[{file,"erlang.erl"},{line,2272}]},{inet_gethost_native,server_init,2,[{file,"inet_gethost_native.erl"},{line,184}]}]}
     Offender:   [{pid,<0.636.0>},{id,inet_gethost_native_sup},{mfargs,{inet_gethost_native,start_link,undefined}},{restart_type,temporary},{shutdown,1000},{child_type,worker}]

2021-07-14 19:36:11 =ERROR REPORT====
Error in process <0.637.0> on node rabbit@md2se77c with exit value:
{eacces,[{erlang,open_port,[{spawn,"inet_gethost 4 "},[{packet,4},eof,binary]],[{file,"erlang.erl"},{line,2272}]},{inet_gethost_native,server_init,2,[{file,"inet_gethost_native.erl"},{line,184}]}]}
2021-07-14 19:36:21 =SUPERVISOR REPORT====
     Supervisor: {local,inet_gethost_native_sup}
     Context:    child_terminated
     Reason:     {eacces,[{erlang,open_port,[{spawn,"inet_gethost 4 "},[{packet,4},eof,binary]],[{file,"erlang.erl"},{line,2272}]},{inet_gethost_native,server_init,2,[{file,"inet_gethost_native.erl"},{line,184}]}]}
     Offender:   [{pid,<0.751.0>},{mod,inet_gethost_native}]

Michal Kuratczyk

unread,
Jul 14, 2021, 12:40:52 PM7/14/21
to rabbitm...@googlegroups.com
This is a filesystem permission issue ("eaccess"). It's trying to call the "inet_gethost" command but the operating system doesn't allow that.

--
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/7b20df47-26a7-4ffd-8d80-f340f111eb71n%40googlegroups.com.


--
Michał
RabbitMQ team

Gulzar Ahamed

unread,
Jul 14, 2021, 12:58:42 PM7/14/21
to rabbitmq-users
it was working 4 days before after that I try to re-install after cleaning all the rabbitmq and erlang stuff, end up this issue, I could not proceed further, plan to format my laptop, is there any alternate solution for the below issue.

RabbitMQ Version: 3.8.17
Erlang Version: -23.2,  
erts Version: 11.1.4

22:22:43.333 [error] GenServer :net_kernel terminating
** (stop) {:could_not_start_server, :inet_gethost_native}
    (kernel 7.2) inet_gethost_native.erl:549: :inet_gethost_native.ensure_started/0
    (kernel 7.2) inet_gethost_native.erl:488: :inet_gethost_native.getit/2
    (kernel 7.2) inet.erl:1295: :inet.gethostbyname_tm_native/4
    (kernel 7.2) inet.erl:1246: :inet.getaddrs_tm/3
    (kernel 7.2) inet.erl:658: :inet.getaddr_tm/3
    (kernel 7.2) inet.erl:653: :inet.getaddr/3
    (kernel 7.2) inet_tcp_dist.erl:59: :inet_tcp_dist.gen_select/2
    (kernel 7.2) net_kernel.erl:1532: :net_kernel.select_mod/2
Last message: {:auto_connect, :rabbit@MD2SE77C, {1, #Reference<0.1827087575.2892365827.48587>}}

22:22:43.333 [error] Process #PID<0.103.0> on node :"rabbitmqcli-943-rabbit@MD2SE77C" raised an exception
** (ErlangError) Erlang error: :eacces
    erlang.erl:2272: :erlang.open_port({:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary])
    (kernel 7.2) inet_gethost_native.erl:184: :inet_gethost_native.server_init/2

22:22:43.333 [error] GenServer :inet_gethost_native_sup terminating
** (stop) :eacces
    erlang.erl:2272: :erlang.open_port({:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary])
    (kernel 7.2) inet_gethost_native.erl:184: :inet_gethost_native.server_init/2
Last message: {:EXIT, #PID<0.103.0>, {:eacces, [{:erlang, :open_port, [{:spawn, 'inet_gethost 4 '}, [{:packet, 4}, :eof, :binary]], [file: 'erlang.erl', line: 2272]}, {:inet_gethost_native, :server_init, 2, [file: 'inet_gethost_native.erl', line: 184]}]}}
:noproc

with regards
Gulzar

Michal Kuratczyk

unread,
Jul 14, 2021, 1:10:01 PM7/14/21
to rabbitm...@googlegroups.com
I don't think there is an alternative - just set up Windows permissions appropriately. I've never used Windows in my life so can't help with the details but I don't see why formatting the disk would be necessary - just find the file and set the permissions. Also, check if you have any security tools installed that could prevent this file access operation.



--
Michał
RabbitMQ team

Umesh Sharma

unread,
Dec 13, 2021, 8:52:20 AM12/13/21
to rabbitmq-users
I am also scratching my head around this issue, disabled all firewalls, no luck. Surprisingly, it gets installed on windows machines of few of my colleagues but not mine. Were you able to figure out this @gulzar?
Reply all
Reply to author
Forward
0 new messages