Results 1 to 4 of 4

Thread: ftp hang - has to be simple problem...

  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    2

    ftp hang - has to be simple problem...

    Knoppix installed perfectly to HD and uses the network nicely through my DSL modem. But attempts to install code using perl CPAN fail: any attempt to download data just hangs until it is killed.

    To make this as simple as possible I use the ftp command, with these results:
    Code:
    ftp -nv ftp.cs.colorado.edu
    Connected to www-users.cs.colorado.edu.
    220-------- Welcom to Pure-FTPd [privsep] [TLS] --------------
    220-You are user number 9 of 50 allowed.
    220-Local time is now 12:24. Server port: 21.
    220-Only anonymous FTP is allowed here
    220 You will be disconnected after 15 minutes of inactivity.
    remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> user anonymous
    230 Anonymouse user logged in
    ftp> cd pub/perl/CPAN/authors
    250 OK. Current directory is /pub/per/CPAN/authors
    ftp> get 01mailrc.txt.gz
    local: 01mailrc.txt.gz remote: 01mailrc.txt.gz
    200 PORT command successful
    150-Connecting to port 29449
    150 91.9 kbytes to download
    ...and that is that, nothing more happens, the modem lights don't flash, zip, until I hit ^C to abort the receive, then ftp successfully negotiates an abort.

    Clearly the network is working, name lookup ok, status data transferred in both directions, but when it comes time to transfer a stream of data, nothing. (Same result to the 'dir' command, btw)

    What simple stupid thing could I be overlooking, do you think?

  2. #2
    Member registered user
    Join Date
    Jan 2005
    Posts
    71
    Do you use a firewall?

    Background: FTP is one of the more complex protocols; if you use a FTP client, you open a connection from your computer to port 21 on the requested FTP server; and unless you use passive FTP, your FTP client in turn opens another port on your computer where it listens for incoming traffic from the FTP server. Most firewalls (legitimatley) block attempts to connect to a (more or less) random port on your computer - that might be your problem.

    Therefore passive FTP was "invented". The difference is, that your computer no longer provides the server side for the incoming data stream, but instead opens another connection to the FTP server connecting to a port told by the FTP server for the data connection, thus circumventing the blocking of the firewall.

    So my advice would be to try reading the ftp command man page and find out how to use passive ftp.

    Ciao,
    Thomas

  3. #3
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Something wrong with their ftp setup since there's an "l" missing from perl on the second line here:
    ftp> cd pub/perl/CPAN/authors
    250 OK. Current directory is /pub/per/CPAN/authors

    Just get the file with a browser from ftp://ftp.cs.colorado.edu/pub/perl/C...1mailrc.txt.gz

  4. #4
    Junior Member
    Join Date
    Feb 2005
    Posts
    2
    The problem is not a firewall nor use of passive/active ftp, the failure is the same with both. The problem seems to be that any transfer of streamed data exceeding about 1k hangs. Using manual ftp, if I use the "dir" command, which opens an ASCII transfer for a file list from the host, it works great as long as there are only a few files to display. If the directory is big, it hangs. I discovered the problem attempting to use cpan to get a perl module, but it is evident also using dselect and apt-get, and shows up in http as well, like if I try to post a short reply here, Konqueror times out trying to preview a long post but works for one this small!

Similar Threads

  1. UDEV problem: Starting udev hardware detection ....( hang)
    By Vetrivela in forum Hardware & Booting
    Replies: 9
    Last Post: 02-12-2009, 04:46 PM
  2. Solving the hang problem for dvb cards systems
    By linmoos in forum Hardware & Booting
    Replies: 0
    Last Post: 03-17-2006, 03:30 PM
  3. simple c++ compile problem
    By turbine in forum General Support
    Replies: 2
    Last Post: 01-26-2005, 06:01 AM
  4. Simple but impossible problem:ppponATM,winmodem and Red Hat
    By Gianluca Impei in forum Networking
    Replies: 1
    Last Post: 11-03-2004, 05:31 AM
  5. Hang while booting Knoppix -- VIA IDE problem?
    By preater in forum Hardware & Booting
    Replies: 7
    Last Post: 03-31-2003, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


(2) Seagate SAS Hard Drive Exos 7E8 3TB 7200RPM 128MB 12Gb/s 3.5 ST3000NM0035 picture

(2) Seagate SAS Hard Drive Exos 7E8 3TB 7200RPM 128MB 12Gb/s 3.5 ST3000NM0035

$49.99



Dell EMC WD-HITACHI H5H72101CLAR10T0 10TB 7.2K SAS 12Gb/s SED 3.5in A POH 0-50k picture

Dell EMC WD-HITACHI H5H72101CLAR10T0 10TB 7.2K SAS 12Gb/s SED 3.5in A POH 0-50k

$189.99



Seagate BarraCuda ST3000DM008 3TB Internal SATA 6Gb 3.5

Seagate BarraCuda ST3000DM008 3TB Internal SATA 6Gb 3.5" Hard Drive 7200RPM 64MB

$91.99



WD Ultrastar DC HC530 14TB SATA 6G 3.5

WD Ultrastar DC HC530 14TB SATA 6G 3.5" 7200RPM Enterprise HDD - WUH721414ALE604

$329.99



Seagate ST500DM009 BarraCuda 500 GB 3.5

Seagate ST500DM009 BarraCuda 500 GB 3.5" SATA III Desktop Hard Drive

$14.99



Toshiba MG04ACA400 4TB 3.5-inch SATA 6 Gb/s 7,200 RPM Internal Hard Drive picture

Toshiba MG04ACA400 4TB 3.5-inch SATA 6 Gb/s 7,200 RPM Internal Hard Drive

$49.99



Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5

Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5" Enterprise HDD

$299.00



Seagate ST28000NM001C 28TB 256MB 7200RPM 3.5

Seagate ST28000NM001C 28TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive

$669.99



Seagate 6TB HDD ST6000NM0034 7.2K 3.5

Seagate 6TB HDD ST6000NM0034 7.2K 3.5" SAS 12Gb/s (NOT FOR PC - FOR SERVER ONLY)

$87.00



Western Digital X376_WVELE08TA07 8TB 3.5

Western Digital X376_WVELE08TA07 8TB 3.5" SAS-3 HDD

$159.99