Mac OS X Panther FTP problem

Discussion in 'Ruby' started by George Girton, Nov 10, 2003.

  1. 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'
     
    George Girton, Nov 10, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jasper Dozer
    Replies:
    0
    Views:
    291
    Jasper Dozer
    Dec 15, 2003
  2. w chun
    Replies:
    1
    Views:
    309
    Russell E. Owen
    Mar 29, 2006
  3. kleefaj
    Replies:
    1
    Views:
    376
    Tommy Nordgren
    Jan 4, 2009
  4. George Girton

    Ruby FTP broken in Panther?

    George Girton, Nov 17, 2003, in forum: Ruby
    Replies:
    0
    Views:
    105
    George Girton
    Nov 17, 2003
  5. D. Buck
    Replies:
    2
    Views:
    492
    D. Buck
    Jun 29, 2004
Loading...

Share This Page