From: SourceForge.net <no...@so...> - 2006-01-27 06:17:48
|
Bugs item #1217563, was opened at 2005-06-10 00:13 Message generated for change (Comment added) made by naaman You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112078&aid=1217563&group_id=12078 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Apt-proxy and http_proxy Initial Comment: Hi! I moved from Debian's Woody apt-proxy to Debian's Sarge apt-proxy. apt-proxy-v1tov2 converted my old apt-proxy.conf configuration file to apt-proxy-v2.conf new format. I usually use a HTTP Proxy server with user authentication to fetch packages from Debian repositories. wget works properly. In the new configuration file I use: http_proxy = http://nameuser:passworduser@httphost:hostport When I try to apt-get from a client, it hangs on client's side and later I receive "Connection failed". On server side I receive this error in the log file: 2005/06/09 15:56 CEST [Channel,0,10.26.226.231] [Fetcher.activate] (debian) servers:4/debian/dists/stable/main/binary-i386/Packages.gz 2005/06/09 15:56 CEST [Channel,0,10.26.226.231] Unhandled error in Deferred: 2005/06/09 15:56 CEST [Channel,0,10.26.226.231] Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 557, in requestReceived self.process() File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1375, in process self.fetch() File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1454, in fetch (dummyFetcher, 0, running,), None) File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 205, in addCallbacks self._runCallbacks() --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 338, in _runCallbacks self.result = callback(self.result, *args, **kw) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1422, in fetch_real fetcher = dummyFetcher.apEndTransfer(fetcher_class) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 463, in apEndTransfer fetcher = fetcher_class(req) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 317, in __init__ self.activate(request) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 553, in activate (self.proxy_host, self.proxy_port) = request.factory.http_proxy.split(':') exceptions.ValueError: unpack list of wrong size Is it an authentication problem with Http proxy server? With the previous version it worked without problems. thank you in advance, riccardo ---------------------------------------------------------------------- Comment By: Naaman Campbell (naaman) Date: 2006-01-27 16:17 Message: Logged In: YES user_id=1354179 Chris, I am experiencing the same issue as Fran�ois and, along with him, I believe that the issue is not related to passwords containing '@' or ':' characters and could be fixed by a more robust section of python code. I have tried configuration of the http_proxy variable to point to a proxy server that requires authentication and a proxy server that does not require authentication. Both proxy servers did not provide a successful connection to the Internet. Also the same error message as above had appeared in /var/log/apt-proxy.conf I have installed apt-proxy 1.9.31 on Ubuntu Breezy Badger. ---------------------------------------------------------------------- Comment By: François Ouellet (ouef) Date: 2005-07-09 12:49 Message: Logged In: YES user_id=1166285 I am using apt-proxy 1.9.31 from debian unstable and I get the same behavior. I have an all alphanumeric username and passord. Looking at /usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py and searching for http_proxy, It seems it's not expecting anything else than a host:port. I can't program in python. It must be real easy to fix for a knowledgeable python programmer. Thanks François ---------------------------------------------------------------------- Comment By: Chris Halls (haggai) Date: 2005-06-10 03:21 Message: Logged In: YES user_id=161154 Hi it looks like you have this problem: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=309288 Do you have special characters (: or @) in the proxy password? Can you replace them with another special character as a workaround for the problem? Thanks Chris ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112078&aid=1217563&group_id=12078 |