Net::FTP broken on OS X (Tiger) / Ruby 1.8.2


#1

I’m running Ruby 1.8.2 on my Tiger machine. I’m trying to use Net::FTP
on the machine.

I can login to the server fine, but when I try a ftp.list IRB just
hangs, then gives me something like this:

Net::FTPTempError: 425 Could not open data connection to port 54406:
Connection timed out

If I run the same code on my Debian Linux box (also Ruby 1.8.2) it works
flawlessly.

Ideas??? This is driving me nuts. I need to be able to dev on my mac…

Thanks in advance.


#2

Subimage wrote:

I’m running Ruby 1.8.2 on my Tiger machine. I’m trying to use Net::FTP
on the machine.

I can login to the server fine, but when I try a ftp.list IRB just
hangs, then gives me something like this:

Net::FTPTempError: 425 Could not open data connection to port 54406:
Connection timed out

If I run the same code on my Debian Linux box (also Ruby 1.8.2) it works
flawlessly.

Ideas??? This is driving me nuts. I need to be able to dev on my mac…

Thanks in advance.

PS: I doubt it’s a network config error because I can use Net::HTTP just
fine.


#3

Ruby 1.8.2 that comes with Tiger is broken anyway. You should
download and compile 1.8.4 yourself.

On 17-Apr-06, at 5:19 AM, Subimage wrote:

works

!DSPAM:44435d84136742298113909!


Jeremy T.
removed_email_address@domain.invalid

“You cannot depend on your eyes, when your imagination is out of
focus.” – Mark Twain


#4

Jeremy T. wrote:

Ruby 1.8.2 that comes with Tiger is broken anyway. You should
download and compile 1.8.4 yourself.

I’m quite aware. I compiled it myself so Rails would work…Any other
suggestions besides recompiling?


#5

“S” == Subimage removed_email_address@domain.invalid writes:

S> I’m quite aware. I compiled it myself so Rails would work…Any
other
S> suggestions besides recompiling?

Try to use passive mode.

Guy Decoux


#6

ts wrote:

“S” == Subimage removed_email_address@domain.invalid writes:

S> I’m quite aware. I compiled it myself so Rails would work…Any
other
S> suggestions besides recompiling?

Try to use passive mode.

Guy Decoux

I’ve done that. Like I said, I can run the same code on my Debian box
and it’s broken. This is really infuriating…


#7

FYI: The same code tested works on my XP box & my Debian box with Ruby
1.8.2 (all behind the same router, so it’s not a firewall issue).

I guess recompiling the latest Ruby (1.8.4) is recommended on my OSX
box? Will this break any of my installed gems like RMagick?