[ejabberd] Node Interconnect-No Ping

Anastasia Gornostaeva ermine at ermine.pp.ru
Wed Apr 20 10:21:21 MSD 2005


On Tue, Apr 19, 2005 at 10:01:43PM +0000, Bill Brazell wrote:
> Here is another one that has me stumped.  I'm trying to ping between two nodes
> with the net_adm:ping command.  Here are the commands and output:
> 
> [ejabberd at vidconf1 ~]$ erl -sname node1 at wxl-jab01
> Erlang (BEAM) emulator version 5.4 [source] [hipe]
> 
> Eshell V5.4  (abort with ^G)
> (node1 at wxl-jab01)1> net_adm:world().
> ['node2 at wxl-jab02']
> (node1 at wxl-jab01)2> net_adm:ping(node2 at wxl-jab02).
> 
> =ERROR REPORT==== 19-Apr-2005::14:49:17 ===
> Error in process <0.37.0> on node 'node1 at wxl-jab01' with exit value:
> {badarith,[{erl_eval,eval_op,3},{erl_eval,expr_list,6},{erl_eval,expr,5},{shell,
> exprs,6},{shell,eval_loop,3}]}
> 
> ** exited: {badarith,[{erl_eval,eval_op,3},
>                       {erl_eval,expr_list,6},

Indeed, a symbol '-' cannot be used in atom name.
When you're using invalid symbols in atoms, you should use single quotes.
Try:

net_adm:ping('node2 at wxl-jab02').

ermine


More information about the ejabberd mailing list