[erlang-bugs] "erl -name app" fails if hostname doesn't contain a dot

Iván Martínez ivan.martinez@REDACTED
Thu Apr 24 14:01:14 CEST 2014


Accordingly to the documentation, "erl -name app" should work by taking the
domain from the hostame and naming the node "app@REDACTED". However, if the
hostname doesn't contain a dot, like

# hostname -f
localhost

then

# erl -name app
{error_logger,{{2014,4,24},{13,58,11}},"Can't set long node name!\nPlease
check your configuration\n",[]}
...

However, if the hostname contains a dot, like

# hostname -f
localhost.localdomain

then

# erl -name app
Erlang R16B01 (erts-5.10.2) [source-bdf5300] [64-bit] [smp:8:8]
[async-threads:10] [hipe] [kernel-poll:false]
...

This contradicts the fact

# erl -name app@REDACTED

always works.
Thank you,
Iván
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140424/1218f250/attachment.htm>


More information about the erlang-bugs mailing list