[erlang-questions] Interconnect question: how to work with names
Dániel Szoboszlay
dszoboszlay@REDACTED
Fri Jun 28 11:07:17 CEST 2019
The host part of the node name has to match, otherwise the master node
would believe the debug node is trying to connect to someone else and would
refuse the connection.
Try this command instead:
erl -name debug -remsh master@$(hostname)
On Fri, 28 Jun 2019 at 10:53, 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
>>
> _______________________________________________
> 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/5f0db509/attachment.htm>
More information about the erlang-questions
mailing list