Re: [squid-users] Squid FTP problem: can't download files

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Sat, 16 Apr 2005 18:46:24 +0200

Hi,

At 18.17 16/04/2005, eupec@supereva.it wrote:

>Hi all,
> I've a problem with my SquidNT setup: in short, I cannot download
> files from FTP sites:( I've read the Squid FAQ & docs and I use ftp from
> Internet Explorer, so it must work.
>
>In detail: if I want to download a Linux Mandrake distro, in Mandrake
>website there are some links to public ftp mirrors; if I choose a ftp
>site, like
>ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/iso/10.1/i586/
>, I can see Squid doing its html page for the ftp site (and I also notice
>that a filesize is NEGATIVE),

This is normal in the current Squid build for files bigger then 2 GB. With
the STABLE10 release this should be fixed for al platforms.

>when I try to download an iso (or another type of file) I receive this
>error from Squid:
>
>ERROR
>
>The requested URL could not be retrieved
>
>The following URL could not be retrieved:
>ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/iso/10.1/Mandrakelinux-10.1-Official-Download-CD1.i586.iso
>
>Squid sent the following FTP command:
>
> RETR Mandrakelinux-10.1-Official-Download-CD1.i586.iso
>
>and then received this reply
>
> Failed to open file.
>
>This might be caused by an FTP URL with an absolute path (which does not
>comply with RFC 1738). If this is the cause, then the file can be found at
>ftp://ftp-stud.fht-esslingen.de/%2f/pub/Mirrors/Mandrakelinux/official/iso/10.1/Mandrakelinux-10.1-Official-Download-CD1.i586.iso
>
>Generated Sat, 16 Apr 2005 10:56:50 GMT by
>MVSERVER.HNK.locale (Squid/2.5.STABLE9-NT-CVS)
>
>I've tried to click on the suggested link, but got no luck :(
>
>There's something to do in squid.conf to permit the download from ftp
>sites (from internet browser, I know Squid isn't a ftp proxy so client ftp
>programs won't run)?
>
>Any advice is greatly appreciated :)
>
>bye, Euepec

There is something strange here:

The link generated in the error page is wrong:
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/iso/10.1/Mandrakelinux-10.1-Official-Download-CD1.i586.iso

The correct is:

ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/iso/10.1/i586/Mandrakelinux-10.1-Official-Download-CD1.i586.iso

I have just tried on my development machine, and all work fine. I think
that this problem was fixed from the following patches:

http://www1.it.squid-cache.org/Versions/v2/2.5/bugs/#squid-2.5.STABLE9-ftp_base_href
http://www1.it.squid-cache.org/Versions/v2/2.5/bugs/#squid-2.5.STABLE9-ftp_EPLF

The fixes will be available with Windows STABLE10 binaries.

You could try to use another ftp mirror or download using http.

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135 Fax. : +39.011.9781115
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Sat Apr 16 2005 - 10:47:03 MDT

This archive was generated by hypermail pre-2.1.9 : Sun May 01 2005 - 12:00:04 MDT