drb works on one system fails on other

M

Mike Goldsby

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

Attachments:
http://www.ruby-forum.com/attachment/2939/code.txt
 
H

Hugh Sasse

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

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
 
M

Mike Goldsby

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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

dchat 0
trying to get drb to work ... 0
DRbFire testing fails 2
error message help 1
drb load limit 3
DRb recycled objects. 7
DRb connection issues 4
Interaction of debug.h and DRb 0

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top