[erlang-questions] badrpc, nodedown - newbie question

Kevin A. Smith <>
Sat Jan 5 16:53:45 CET 2008


Can you ping one host from the other using the same host names you use  
inside the Erlang repl? Whenever I've gotten a 'pang' (which I think  
is Swedish for bang - ha ha) it means that I've either got the wrong  
node name or the hosts cannot see each other.

--Kevin
On Jan 5, 2008, at 10:25 AM, Jim Cook wrote:

> Kevin, Jack:
>
> Thanks for the suggestions. node() returns the expected names on  
> both nodes
>
> 
> 
>
> but the net_adm:ping command returns the atom 'pang' for both nodes.  
> How do I find out what that means? I will search the ref manual, but  
> all suggestions are greatly appreciated.
>
> Thanks for the help!
> Jim
>
>
> On Jan 5, 2008 9:31 AM, Kevin A. Smith <>  
> wrote:
> Try pinging one node from the other before doing the rpc call. I've
> found that I need to do that so the nodes can find one another. Any
> result other than the atom 'pong' indicates that the nodes are unable
> to see each other.
>
> For example, to ping the node running on arcturus from kodiak you'd
> enter:
>
> net_adm:ping().
>
> --Kevin
> On Jan 5, 2008, at 8:29 AM, Jim Cook wrote:
>
> > HI everyone:
> >
> > I'm sorry to ask a newbie question but I have run out of ideas, and
> > just don't know what I'm missing.
> >
> > I'm trying to replicate Joe Armstrong's name server example on page
> > 172 of "Programming Erlang", which is my favorite book at the
> > moment :).
> >
> > I've got two PCs: one is running Fedora 8, the other SuSE 9.3. I've
> > used /etc/hosts to configure their names and I've verified that the
> > names (kodiak.abcd.home and arcturus.abcd.home) work in both
> > directions by pinging and by accessing their httpds via a browser.
> >
> > I start erl on the fedora box (kodiak) with
> >
> > erl -name gandalf -setcookie abc
> >
> > then I start kvs and store some values just like in the book. Local
> > lookups work fine as described on pages 170-172 of the book.
> >
> > Then I switch to the SuSE box (arcturus) and launch erl like this
> >
> > erl -name joe -setcookie abc
> >
> > Breathless with anticipation (well, nearly) I then run
> >
> > rpc:call( , kvs, lookup, weather).
> >
> > and I get
> >
> > {badrpc, nodedown}
> >
> > I have tried everything I can think of to get the names working
> > including IP addresses and various name combinations.
> >
> > For example I tried starting erl with fully qualified names on both
> > sides, e.g.:
> >
> > erl -name  -setcookie abc
> >
> > etc.
> >
> > Basically I've decided that I just don't understand how erl is doing
> > its name resolution and before I start wading through the code
> > trying to figure it out, I wanted to see if anybody could straighten
> > me out.  Thanks in advance for any suggestions.
> >
> > Best,
> > Jim
> >
> > _______________________________________________
> > erlang-questions mailing list
> > 
> > http://www.erlang.org/mailman/listinfo/erlang-questions
>
>




More information about the erlang-questions mailing list