Thursday, August 2, 2012

Erlang: problems connecting to node

How did you start the nodes, did you use
erl -setcookie my_cookie

Sometimes it is common to write

erl -cookie my_cookie % wrong, use setcooke, not cookie

erl --setcookie my_cookie % wrong, use only 1 dash

erl -setcookie=my_cookie % wrong, do not use an equals sign

What does the shell think the cookie value is ?
Try
1> erlang:get_cookie().

Is the value returned the same as the value as you intended to use for the cookie ?  If not, check the common mistakes above.


net_adm:ping fails:
Did you specify the remote node name as an atom ?
e.g. try 'a@localhost' instead of a@localhost

1 comment:

Unknown said...

As claimed by Stanford Medical, It's really the one and ONLY reason this country's women live 10 years more and weigh 19 KG lighter than us.

(And really, it has totally NOTHING to do with genetics or some secret exercise and EVERYTHING around "how" they eat.)

P.S, What I said is "HOW", and not "WHAT"...

CLICK on this link to find out if this short test can help you decipher your real weight loss possibility