StrangeCube
StrangeCube

Reputation: 169

RabbitMQ Failed to initialize erlang distribution

I have installed RabbitMQ but when I try to use rabbitmqctl status in cmd I have next result:

D:\RabbitMQ\rabbitmq_server-3.6.2\sbin>rabbitmqctl status
Error: Failed to initialize erlang distribution: {{shutdown, {failed_to_start_child, net_kernel, {'EXIT',nodistribution}}}, {child,undefined, net_sup_dynamic, {erl_distribution, start_link, [['rabbitmq-cli-70', shortnames]]}, permanent,1000,supervisor, [erl_distribution]}}.

Folder with Erlang : D:\erl7.3

I have following environment variables :
ERLANG_HOME : D:\erl7.3
ERLANG_SERVICE_MANAGER_PATH : D:\erl7.3\erts-7.3\bin

How can I fix this to RabbitMQ install correctly?

Additionally: I've done all steps from this tutorial programmershandbook.wordpress.com/2015/03/22/rabbitmq-setup but when I try work with cmd i have the same error.

And erl_crush.dump have following first strings:

=erl_crash_dump:0.3
Fri May 20 12:29:12 2016
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k
System version: Erlang/OTP 18 [erts-7.3] [64-bit] [smp:4:4] [async-threads:10]
Compiled: Mon Mar 14 21:51:02 2016
Taints: 
Atoms: 4811
Calling Thread: scheduler:3

It can be connected with using Windows 10 or something else?

Upvotes: 13

Views: 15778

Answers (3)

Rafael Ramon
Rafael Ramon

Reputation: 47

I solved this error running the same command with sudo permission

Upvotes: 2

Dr Manhattan
Dr Manhattan

Reputation: 14097

Running the command with sudo worked for me

 » sudo rabbitmq-plugins enable rabbitmq_management                                                  
The following plugins have been enabled:
  mochiweb
  webmachine
  rabbitmq_web_dispatch
  amqp_client
  rabbitmq_management_agent
  rabbitmq_management

Upvotes: 35

mynameisdaniil
mynameisdaniil

Reputation: 1178

It is very abstract error and many misconfigurations may lead to this. Have you tried to set also NODE_NAME to something like bunny@localhost?

Upvotes: 0

Related Questions