[ejabberd] Cookie Confusion

Bill Brazell bill.brazell at cingular.com
Tue Apr 19 20:43:41 MSD 2005


I'm trying to interconnect a couple of nodes and am having problems with the
cookies.  I believe I did this before, but now it's giving me errors.  Here is
what I'm attempting (following the instructions from
http://ejabberd.jabber.ru/interconnect-erl-nodes)

$ su ejabberd

$ cd ~

$ erl -setcookie mycookie12345

1> mycookie12345

1> erlang:set_cookie(node(), 'mycookie12345').
** 2: syntax error before: erlang **

1> erlang:get_cookie().
nocookie

2> erlang:set_cookie(node(), 'mycookie12345').

=ERROR REPORT==== 19-Apr-2005::09:43:11 ===
Error in process <0.31.0> with exit value:
{function_clause,[{erlang,set_cookie,['nonode at nohost',mycookie12345]},
{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}

** exited: {function_clause,[{erlang,set_cookie,[nonode at nohost,mycookie12345]},
                             {erl_eval,do_apply,5},
                             {shell,exprs,6},
                             {shell,eval_loop,3}]} **
3>

I'm not sure what's going wrong here.  Seems odd that I get a "syntax error"
after the mycookie12345 entry.  Even worse that it errors out when trying to set
the cookie.

Any ideas on this one???



More information about the ejabberd mailing list