I'm trying to do call from nitrogen to a separate Erlang node on the same machine (currently testing it from the Nitrogen console, but the eventual goal is to have a call from a webapp to this other node). I've got an .erlang.cookie
file set up in my home directory.
First attempt, starting the other node with erl -name node_a
, then load
ing and start
ing an application, then doing
nitrogen@127.0.0.1> rpc:call(node_a@mymachine.fully.qualified.host, ps_bc, generate, [arglist]).
gives me
{badrpc, nodedown}
in the Nitrogen console, and
=ERROR REPORT==== 9-May-2012::14:25:28 ===
** Connection attempt from disallowed node 'nitrogen@127.0.0.1' **
in the node_a
console. I assume this means that Nitrogen isn't reading the same cookie file as node_a
. Is there a way of setting its cookie manually? Is there a way of getting the two nodes to play nice without setting the same cookie for both?