# Drb works on one system fails on other

**URL:** <https://www.ruby-forum.com/t/drb-works-on-one-system-fails-on-other/153488>\
**Category:** Ruby\
**Created:** [November 17, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/drb-works-on-one-system-fails-on-other/153488 "2008-11-17T22:30:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![random52k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7bcc69/32.png) [@random52k](https://www.ruby-forum.com/u/random52k)\
**Post date:** [November 17, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/drb-works-on-one-system-fails-on-other/153488/1 "2008-11-17T22:30:59Z")

</div>

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:in`initialize’  
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:in`open’  
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:in`with\_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:in`put’  
from gds\_client.rb:27:in `run’  
from gds\_client.rb:44

```
                       1,0-1 Top
```

---

<div class="post-metadata">

**Author:** ![random52k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7bcc69/32.png) [@random52k](https://www.ruby-forum.com/u/random52k)\
**Post date:** [November 17, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/drb-works-on-one-system-fails-on-other/153488/2 "2008-11-17T23:34:00Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![random52k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7bcc69/32.png) [@random52k](https://www.ruby-forum.com/u/random52k)\
**Post date:** [November 17, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/drb-works-on-one-system-fails-on-other/153488/3 "2008-11-17T23:34:40Z")

</div>

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:in`initialize’  
> 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:in`open’  
> 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:in`with\_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:in`put’  
> from gds\_client.rb:27:in `run’  
> from gds\_client.rb:44
> 
> ```
> 1,0-1 Top
> ```
