Drb works on one system fails on other


#1

Attached is a simple test program. I’m running the server on Ubuntu
Linux
7.10, the client on Windows XP SP2. On one pair of such systems it
works
perfectly. On the other, it fails with the error given below. Any idea
why it behaves differently on the two pairs of systems and what I can do
to fix it?

Thanks,
–Mike

C:\home\ruby\drbtest>ruby gds_client.rb 134.252.17.114
D, [2008-11-17T20:11:51.514000 #948] DEBUG – : Connected to GDS server
(druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:736:in
open': druby: //sandia-925b175b:1035 - #<SocketError: getaddrinfo: Name or service not known> (DRb::DRbConnError) from (druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:729:in
each’
from (druby://134.252.17.114:9999)
/usr/lib/ruby/1.8/drb/drb.rb:729:in open' from (druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:1189:ininitialize’
from (druby://134.252.17.114:9999)
/usr/lib/ruby/1.8/drb/drb.rb:1169:in
new' from (druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:1169:inopen’
from (druby://134.252.17.114:9999)
/usr/lib/ruby/1.8/drb/drb.rb:1085:in
method_missing' from (druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:1103:inwith_friend’
“/tmp/output.txt” [dos] 30L, 1339C from
(druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:1084:in
method_missing' from (druby://134.252.17.114:9999) ./global_data_set.rb:13:input’
from gds_client.rb:27:in `run’
from gds_client.rb:44

                       1,0-1         Top

#2

On Tue, 18 Nov 2008, Mike G.sby wrote:

Attached is a simple test program. I’m running the server on Ubuntu
Linux
7.10, the client on Windows XP SP2. On one pair of such systems it
works
perfectly. On the other, it fails with the error given below. Any idea
why it behaves differently on the two pairs of systems and what I can do
to fix it?

My first thought would be “firewall configuration”. Are there any
errors
logged on the server?

Thanks,
–Mike

    Hugh

#3

Why, yes, Mike, I had a problem that was exactly like that.
In fact, it was exactly that problem. I fixed it by defining
the name of the Windows server (sandia-925b175b) in the Linux
/etc/hosts file. Next time just ask me–it may save you having
to post something.

–Mike

Mike G.sby wrote:

Attached is a simple test program. I’m running the server on Ubuntu
Linux
7.10, the client on Windows XP SP2. On one pair of such systems it
works
perfectly. On the other, it fails with the error given below. Any idea
why it behaves differently on the two pairs of systems and what I can do
to fix it?

Thanks,
–Mike

C:\home\ruby\drbtest>ruby gds_client.rb 134.252.17.114
D, [2008-11-17T20:11:51.514000 #948] DEBUG – : Connected to GDS server
(druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:736:in
open': druby: //sandia-925b175b:1035 - #<SocketError: getaddrinfo: Name or service not known> (DRb::DRbConnError) from (druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:729:in
each’
from (druby://134.252.17.114:9999)
/usr/lib/ruby/1.8/drb/drb.rb:729:in open' from (druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:1189:ininitialize’
from (druby://134.252.17.114:9999)
/usr/lib/ruby/1.8/drb/drb.rb:1169:in
new' from (druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:1169:inopen’
from (druby://134.252.17.114:9999)
/usr/lib/ruby/1.8/drb/drb.rb:1085:in
method_missing' from (druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:1103:inwith_friend’
“/tmp/output.txt” [dos] 30L, 1339C from
(druby://134.252.17.114:9999) /usr/lib/ruby/1.8/drb/drb.rb:1084:in
method_missing' from (druby://134.252.17.114:9999) ./global_data_set.rb:13:input’
from gds_client.rb:27:in `run’
from gds_client.rb:44

                       1,0-1         Top