[erlang-questions] Interconnect question: how to work with names

Max Lapshin max.lapshin@REDACTED
Fri Jun 28 10:46:37 CEST 2019


I have server with hostname   myserver.l
This hostname is in /etc/hosts and it is pingable

I have master node running on it with:   erl -name master@REDACTED

When I write software, I don't know what will be the hostname, so I write
shell script for connecting to shell:

erl -name debug -remsh master@REDACTED

It fails:

Erlang/OTP 21 [erts-10.3.5.2] [source] [64-bit] [smp:8:8] [ds:8:8:10]
[async-threads:1] [hipe]

*** ERROR: Shell process terminated! (^G to start new job) ***

When I provide hostname, it works:

erl -name debug -remsh master@REDACTED
Erlang/OTP 21 [erts-10.3.5.2] [source] [64-bit] [smp:8:8] [ds:8:8:10]
[async-threads:1] [hipe]

Eshell V10.3.5.2  (abort with ^G)
(master@REDACTED)1>



What is the proper way to deal with this situation?
I can see the master node in epmd names, I can connect to it, I can pass
interconnect protocol.
But I do not understand, why remsh doesn't connect to it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190628/0fe3ea30/attachment.htm>


More information about the erlang-questions mailing list