"Can't set short node name!" when starting RabbitMQ server

1,698 views
Skip to first unread message

Nikita Kovalenko

unread,
Apr 10, 2017, 9:51:10 AM4/10/17
to rabbitmq-users
I didn't find a topic like this. A few of my students are having this weird issue. I find myself unable to help them.

When installing RabbitMQ Server and Erlang, they encounter no problems (though there was an "Error opening file for writing: ...\erl8.3\erts-8.3\bin" a few times). 

But, when they're trying to start the RabbitMQ server, there's an error every time with the following output in the console. It has happened on three different laptops: one with "Windows 7 x86", and two with "Windows 10 x64".

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.6\sbin>rabbitmq-server.bat start
2017-04-10 13:22:39 Can't set short node name!
Please check your configuration

2017-04-10 13:22:39 crash_report
initial_call: {net_kernel,init,['
Argument__1']}
pid: <0.45.0>
registered_name: []
error_info: {exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,344}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
ancestors: [net_sup,kernel_sup,<0.34.0>]
messages: []
links: [<0.42.0>]
dictionary: [{longnames,false}]
trap_exit: true
status: running
heap_size: 376
stack_size: 27
reductions: 241
2017-04-10 13:22:39 supervisor_report
supervisor: {local,net_sup}
errorContext: start_error
reason: {'
EXIT',nodistribution}
offender: [{pid,undefined},{id,net_kernel},{mfargs,{net_kernel,start_link,[[rabbitmqprelaunch428509,shortnames],true]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]
2017-04-10 13:22:39 supervisor_report
supervisor: {local,kernel_sup}
errorContext: start_error
reason: {shutdown,{failed_to_start_child,net_kernel,{'
EXIT',nodistribution}}}
offender: [{pid,undefined},{id,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]
2017-04-10 13:22:39 crash_report
initial_call: {application_master,init,['
Argument__1','Argument__2','Argument__3','Argument__4']}
pid: <0.33.0>
registered_name: []
error_info: {exit,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'
EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,134}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
ancestors: [<0.32.0>]
messages: [{'
EXIT',<0.34.0>,normal}]
links: [<0.32.0>,<0.31.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 376
stack_size: 27
reductions: 153
2017-04-10 13:22:39 std_info
application: kernel
exited: {{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'
EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}
type: permanent
{"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}}}}},{kernel,start,[normal,[]]}}}"}
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}}}}},{ker

Crash dump is being written to: erl_crash.dump...
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.6\sbin>


Michael Klishin

unread,
Apr 10, 2017, 10:58:30 AM4/10/17
to rabbitm...@googlegroups.com
What is your hostname like on this machine?

You can override RabbitMQ node name and use long node names, see
http://www.rabbitmq.com/configure.html and http://rabbitmq.com/ec2.html (I realise that you are not running on
EC2 or Linux but that guide has a section,

Hostname Changes, which is relevant).

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

Nikita Kovalenko

unread,
Apr 14, 2017, 10:22:30 AM4/14/17
to rabbitmq-users
Hmmm.. Do I understand correctly, that I need to set the RABBITMQ_NODENAME and RABBITMQ_USE_LONGNAME environment variables? Because I tried doing that, but it didn't have any effect, there's still an error while trying to start the RabbitMQ server.

понедельник, 10 апреля 2017 г., 17:58:30 UTC+3 пользователь Michael Klishin написал:
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 email to rabbitm...@googlegroups.com.

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

Michael Klishin

unread,
Apr 14, 2017, 10:34:27 AM4/14/17
to rabbitm...@googlegroups.com
It depends on what hostnames are used on your machines. You can certainly give long names a try.
Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages