Why can't I run the Erlang node name on Windows?

I am trying to run the Erlang node name using the -sname parameter in Windows XP Home, but when I run erl, it displays a long error message that I don’t understand, and exits:

> erl -sname allyourcode
{error_logger, {{2009,5,25}, {16,20,57}}, "Protocol: ~ p: register error: ~ p ~ n", ["in
et_tcp ", {{badmatch, {error, econnrefused}}, [{inet_tcp_dist, listen, 1}, {net_kernel, s
tart_protos, 4}, {net_kernel, start_protos, 3}, {net_kernel, init_node, 2}, {net_kernel,
init, 1}, {gen_server, init_it, 6}, {proc_lib, init_p_do_apply, 3}]}]}
{error_logger, {{2009,5,25}, {16,20,57}}, crash_report, [[{initial_call, {net_kernel,
init, ['Argument__1']}}, {pid,}, {registered_name, []}, {error_info, {exit, {er
ror, badarg}, [{gen_server, init_it, 6}, {proc_lib, init_p_do_apply, 3}]}}, {ancestors, [
net_sup, kernel_sup,]}, {messages, []}, {links, [# Port,]}, {dicti
onary, [{longnames, false}]}, {trap_exit, true}, {status, running}, {heap_size, 610}, {st
ack_size, 24}, {reductions, 490}], []]}
{error_logger, {{2009,5,25}, {16,20,57}}, supervisor_report, [{supervisor, {local, net
_sup}}, {errorContext, start_error}, {reason, {'EXIT', nodistribution}}, {offender, [{p
id, undefined}, {name, net_kernel}, {mfa, {net_kernel, start_link, [[allyourcode, shortn
ames]]}}, {restart_type, permanent}, {shutdown, 2000}, {child_type, worker}]}]}
{error_logger, {{2009,5,25}, {16,20,57}}, supervisor_report, [{supervisor, {local, ker
nel_sup}}, {errorContext, start_error}, {reason, shutdown}, {offender, [{pid, undefined
}, {name, net_sup}, {mfa, {erl_distribution, start_link, []}}, {restart_type, permanent}
, {shutdown, infinity}, {child_type, supervisor}]}]}}
{error_logger, {{2009,5,25}, {16,20,57}}, std_info, [{application, kernel}, {exited, {s
hutdown, {kernel, start, [normal, []]}}}, {type, permanent}]}
{"Kernel pid terminated", application_controller, "{application_start_failure, kern
el, {shutdown, {kernel, start, [normal, []]}}} "}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure, kerne
l, {shutdown, {kernel, start, [normal, []]}}})

I would like to include the erl_crash.dump file, but I do not know how to do this because it is quite long.

, , , , , , ; , , .

-name .

+3
3

, , - , , node , , :

erl -name rambo@127.0.0.1 -setcookie KILLER

, :

erl -name terminator@127.0.0.1 -setcookie KILLER

ping node:

net_adm:. ('rambo@127.0.0.1' )

"".

().

.

+4

, , node . Erlang .

+2
  • You need to make sure that you are not using an already registered name (of course): this includes any name already claimed by Erlang.

  • If you are starting on the same computer but under a different user, make sure your cookies match.

+2
source

Source: https://habr.com/ru/post/1709048/


All Articles