Forum: Ruby drb works on one system fails on other

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mike G. (Guest)
on 2008-11-17 23:30
Attachment: code.txt (0 Bytes)
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
Hugh S. (Guest)
on 2008-11-18 00:34
(Received via mailing list)
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
Mike G. (Guest)
on 2008-11-18 00:34
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
This topic is locked and can not be replied to.