Answer the question
In order to leave comments, you need to log in
What is wrong with the server that erlang net_adm:names() throws {error,address} on startup?
Subj. Ubuntu Server 16.04.
On another server, which is generally configured the same way, everything starts without problems.
Ports are not occupied, iptables is pinned on these ports so that it does not touch them at all. The server where it does not work is old, a lot of things stood on it and all sorts of experiments were carried out on it.
I don't really understand Erlang yet. It would be necessary to debug, but I still do not understand how. Softinka even does not reach the logs and in no way swears anymore.
Answer the question
In order to leave comments, you need to log in
erlang.org/doc/man/net_adm.html#names-0
names() -> {ok, [{Name, Port}]} | {error, Reason}
names(Host) -> {ok, [{Name, Port}]} | {error, Reason}
Types
Host = atom() | string() | inet:ip_address()
Name = string()
Port = integer() >= 0
Reason = address | file:posix()
Similar to epmd -names, see erts:epmd(1). Host defaults to the localhost. Returns the names and associated port numbers of the Erlang nodes that epmd registered at the specified host. Returns {error, address} if epmd is not operational.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question