Mac OS X Panther FTP problem

G

George Girton

Upgrading to Mac OS X 10.3 Panther has caused my ruby ftp script
to stop working that was working great for about a year in OS X 10.1.

When I call, in my code, @ftp.puttextfile(localname, servername),
I get the following error:

/usr/local/lib/ruby/1.8/net/ftp.rb:276:in `addr': getnameinfo: nodename
nor servname provided, or not known (SocketError)

As you can see, I have upgraded to 1.8, thinking that this might solve
my problem.
I was incorrect. The exact same error message appeared as in the default
Ruby that ships with Panther. This problem never occurred with 10.1 (I
skipped
10.2).

However, downstairs in the kitchen, the same script runs ok on the
Windows Server2000, in both 1.8 and 1.67 Ruby

When I turn on @ftp.debug_mode=true, I can see that the ftp connection
is made correctly, and login occurs ok, and so forth. Just a problem
with
puttextfile (also with putbinaryfile, as I tried something different
to perturb
the problem)


Any thoughts you can give me would be helpful; I prefer using the mac
upstairs
to the windows downstairs, and want 1.8 to work on the Mac for ftp.

thanks!
George Girton

here is the full stack trace for any further clue...

/usr/local/lib/ruby/1.8/net/ftp.rb:276:in `addr': getnameinfo: nodename
nor servname provided, or not known (SocketError)
from /usr/local/lib/ruby/1.8/net/ftp.rb:276:in `makeport'
from /usr/local/lib/ruby/1.8/net/ftp.rb:310:in `transfercmd'
from /usr/local/lib/ruby/1.8/net/ftp.rb:451:in `storlines'
from /usr/local/lib/ruby/1.8/net/ftp.rb:449:in `synchronize'
from /usr/local/lib/ruby/1.8/net/ftp.rb:463:in `storlines'
from /usr/local/lib/ruby/1.8/net/ftp.rb:554:in `puttextfile'
 

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

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top