FS#3569 - Pacman proxy error

Attached to Project: Pacman
Opened by Michal Witkowski (Neuro) - Saturday, 03 December 2005, 15:26 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 29 December 2006, 17:50 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

My ISP uses a transparent proxy on all proxy ports (ex. 8080) and 80, so I can't get around it. Although ftp works without using a proxy (both active and passive), the proxy speeds up downloads from 40kB/s to about 130kB/s so I'm using it regularly to download from ftp.

Now to the point. Whenever I specify a proxy server in pacman.conf, pacman is unable to retrive more than one package. Downloading listings work flawlessly. Specifying a wget (using the same proxy) as XferCommand works without problems.

Example:
: Retrieving packages from extra...
gtk-xfce-engine-2.2.8-1 [----------------------------------------------------------------] 100% 25K 10.3K/s 00:00:02
failed downloading ftp://ftp.archlinux.org/extra/os/i686/libxfce4util-4.2.3.2-1.pkg.tar.gz from ftp.archlinux.org: (null)
failed downloading ftp://ftp.archlinux.org/extra/os/i686/libxfce4mcs-4.2.3-1.pkg.tar.gz from ftp.archlinux.org: (null)
failed downloading ftp://ftp.archlinux.org/extra/os/i686/libxfcegui4-4.2.3-1.pkg.tar.gz from ftp.archlinux.org: (null)
failed downloading ftp://ftp.archlinux.org/extra/os/i686/xfcalendar-4.2.3-1.pkg.tar.gz from ftp.archlinux.org: (null)
failed downloading ftp://ftp.archlinux.org/extra/os/i686/xfce-mcs-manager-4.2.3-1.pkg.tar.gz from ftp.archlinux.org: (null)

Everything is described in detail in http://bbs.archlinux.org/viewtopic.php?t=16864

I guess this is a pacman bug (everything works just fine without using proxy). If there is a way of acquiring some sort of a debug dump, give me a hint, I'll supply one.

Cheers
This task depends upon

This task blocks these from closing
 FS#6316 - Pacman 3 release bugcatcher 
Closed by  Aaron Griffin (phrakture)
Thursday, 15 February 2007, 16:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with libdownload
Comment by Judd Vinet (judd) - Monday, 05 December 2005, 19:38 GMT
>> Specifying a wget (using the same proxy) as XferCommand works without problems.

This is your best solution for now, and the one most proxy users take. Pacman's internal proxy support is pretty weak, and it's never been much of a priority for us since wget does such a good job. I'll leave this bug open so we can look at improving proxy support later. Currently, priorities are more towards finishing libpacman.

Thanks Michal.
Comment by Christian Hamar (krix) - Thursday, 15 December 2005, 02:07 GMT
Just an idea, don't know actually pacman how using the ftplib (in active or in passive mode?)

I found something on some forum (sorry, don't remember the site) that maybe you need to try with passive connection.

So if pacman uses active connection for connecting site with proxy, then maybe we can try to use passive in the code. Maybe helps maybe not. Just a weak idea.

Regards

Christian Hamar alias krix
Hungary
-- Frugalware Developer Team
Comment by Aaron Griffin (phrakture) - Friday, 29 December 2006, 17:50 GMT
Does anyone have the capability to test this with pacman3? The proxy support for libdownload is mostly complete, using the same environment variables that 90% of networked apps use (i.e. http_proxy).
Comment by Georg Grabler (STiAT) - Thursday, 15 February 2007, 10:50 GMT
I have, here at work.


I'll give it a shot, as soon as my system is not up to date anymore (i updated today)...
I still need to get the CVS version here... hard to cvs behind a proxy, and as i've written in the pacman thread, my laptop is broken :(.
Why don't we have a "nightly" source pack or similar, i'd love this :).

Kind regards,
Georg
Comment by Roman Kyrylych (Romashka) - Thursday, 15 February 2007, 11:07 GMT
STiAT: are you talking about pacman CVS? Then take a look at http://archlinux.org/~aaron/pacman/
Comment by Georg Grabler (STiAT) - Thursday, 15 February 2007, 16:19 GMT
I've tested this with pacman3.

I removed the http_proxy and ftp_proxy from /etc/wgetrc, and tried it.
Errors, since i havn't set the environment variables - so that ensures that libdownload uses the variables.

After this, i exported http_proxy and ftp_proxy to my companys ftp and http proxy.

Updated 3 packages simply using pacman -Syu.
Worked properly

I changed to http mirrors, and tried again, with pacman -S xfce4.
Worked properly.

Kind regards,
Georg
Comment by Aaron Griffin (phrakture) - Thursday, 15 February 2007, 16:20 GMT
Great, thanks a lot. Closing this one (one step closer!)

Loading...