I’m looking forward to the answer to this question, I had the
same getaddrinfo error on Mac OS 10.3 last month. Except it
was with the Net ftp object rather than SMPT as in your case.
Works fine on Windows, and no idea how to debug it. (Debug mode
shows connection being made ok)
cheers!
George Girton
···
On Wednesday, December 03, 2003, at 01:11PM, Zach Dennis zdennis@mktec.com wrote:
I am moving my ruby program file from my winbox to my linux( redhat 9 ) box.
I’ve got ruby 1.8.1 installed on my linux box. However when I run my script
the following lines error out:
smtp = Net::SMTP::new( server )
smtp.start( domain , username , password , “cram_md5” )
It complains about:
/usr/local/lib/ruby/1.8/net/protocol.rb:83:in ‘initialize’: getaddrinfo:
Name or service not known( SocketError )
from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in ‘new’
from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in ‘connect’
from /usr/local/lib/ruby/1.8/net/protocol.rb:82:in ‘timeout’
etc…etc…etc…
It works beautifully on my Windows box. Any ideas?
Zach
Is the TCPSocket attempting to connect to an IPv6 host then, and does
DNS resolve correctly?
···
Zach Dennis (zdennis@mktec.com) wrote:
Eric Hodel wrote:
IPv6?
Nope, not here. Not yet.
–
Eric Hodel - drbrain@segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
I observed I was running with IPv6, but then
changed it back to 4. No change. For me,
DNS resolves OK, and with FTP, I’m in.
The host might have changed at the exact time
I updated to OS X 10.3, but I don’t think so. Could always
boot back to 10.1 to see if problem exists as a result
of host IPv6, but don’t think that’s it.
cheers!
George Girton
···
On Dec 3, 2003, at 2:18 PM, Eric Hodel wrote:
Zach Dennis (zdennis@mktec.com) wrote:
Eric Hodel wrote:
IPv6?
Nope, not here. Not yet.
Is the TCPSocket attempting to connect to an IPv6 host then, and does
DNS resolve correctly?
–
Eric Hodel - drbrain@segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
A penny here, a penny there … pretty soon you’re talking two cents.
The problem had to due to line endings. On a Windows machine it appears that
the protocol.rb file allows you to pass in parameters with a CRLF on the
end. It works! On a Linux machine it didn’t.
Solution: I 'chomp’ed the line endings off.
Zach