[erlang-bugs] net_adm:ping annoying messages due to /etc/hosts content

Raimo Niskanen raimo+erlang-bugs@REDACTED
Mon Jun 4 09:15:20 CEST 2012


On Sun, Apr 15, 2012 at 07:27:34PM +0200, PAILLEAU Eric wrote:
> Hi,
> 
> I don't know if it is a bug but I get very annoying SASL error messages
> as below when I use net_adm:ping() :

What are the arguments when starting the node?
Which is the argument to net_adm:ping()?
Which is your Erlang/OTP version? [erlang:system_info(system_version)]


> 
> ---8<----------------------------------------------------
> =ERROR REPORT==== 15-Apr-2012::19:07:44 ===
> ** System running to use fully qualified hostnames **
> ** Hostname localhost is illegal **
> ---8<----------------------------------------------------
> 
> because I have in my /etc/hosts
> 
> ---8<----------------------------------------------------
> 127.0.0.1  localhost
> ---8<----------------------------------------------------
> 
> I understand that hostnames known by Erlang should be fully qualified
> when node is starting with -name but I wonder why it cares about
> shortnames and especially to localhost because :
> 
> the strange thing is that when I change to :
> ---8<----------------------------------------------------
> 127.0.0.1  mylocalhost
> ---8<----------------------------------------------------
> 
> I do not have the messages, even if it is not fully qualified too ...
> 
> Regards
> 
> 
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-bugs mailing list