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

Max Lapshin max.lapshin@REDACTED
Fri Jun 28 11:06:27 CEST 2019


myserver.l and 127.0.0.1  is the same server. I run it from this server.

There is node  called "master" in epmd and I do not understand why I can
connect to it via hostname: master@REDACTED and
cannot connect to it via 127.0.0.1


On Fri, Jun 28, 2019 at 11:53 AM Gerhard Lazu <gerhard@REDACTED> wrote:

> My understanding is that you are opening a remote shell to a node with a
> specific name.
>
> There is a node with name *master@REDACTED* on *myserver.l*
>
> There is no node with name *master@REDACTED <master@REDACTED> *on host
> *127.0.0.1*
>
> On Fri, Jun 28, 2019 at 9:47 AM Max Lapshin <max.lapshin@REDACTED> wrote:
>
>>
>> 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.
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190628/b588d87e/attachment.htm>


More information about the erlang-questions mailing list