Package: apt-proxy Version: 1.9.29 Severity: important The default installation of apt-proxy in sarge silently fails to cache packages.
Upon installation the following directory is created in /var/cache drwxr-xr-x 2 root root 4096 May 16 16:29 apt-proxy However apt-proxy is started as user aptproxy, which does not have permission to write to that directory. The follow errors are logged to /var/log/apt-proxy.log when running apt-get update 2005/06/11 16:13 NZST [Channel,0,127.0.0.1] [debug] Request: GET /debian/dists/sarge/main/binary-i386/Packages.gz 2005/06/11 16:13 NZST [Channel,0,127.0.0.1] Starting factory <apt_proxy.apt_proxy.ClientFactory instance at 0x406d3bcc> 2005/06/11 16:13 NZST [FetcherHttp,client] [debug] Received: Date Sat, 11 Jun 2005 04:15:10 GMT 2005/06/11 16:13 NZST [FetcherHttp,client] [debug] Received: Server Apache/1.3.33 (Debian GNU/Linux) 2005/06/11 16:13 NZST [FetcherHttp,client] [debug] Received: Last-Modified Sat, 04 Jun 2005 19:25:13 GMT 2005/06/11 16:13 NZST [FetcherHttp,client] [debug] Received: ETag "7b8003-331159-42a20019" 2005/06/11 16:13 NZST [FetcherHttp,client] [debug] Received: Accept-Ranges bytes 2005/06/11 16:13 NZST [FetcherHttp,client] [debug] Received: Content-Length 3346777 2005/06/11 16:13 NZST [FetcherHttp,client] [debug] Received: Connection close 2005/06/11 16:13 NZST [FetcherHttp,client] [debug] Received: Content-Type text/plain; charset=iso-8859-1 2005/06/11 16:13 NZST [FetcherHttp,client] [debug] Received: Content-Encoding x-gzip 2005/06/11 16:15 NZST [FetcherHttp,client] Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/twisted/application/app.py", line 95, in runReactorWithLogging reactor.run() File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line 126, in run self.mainLoop() File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line 137, in mainLoop self.doIteration(t) File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line 526, in doSelect _logrun(selectable, _drdw, selectable, method, dict) --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 65, in callWithLogger callWithContext({"system": lp}, func, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 52, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 43, in callWithContext return func(*args,**kw) File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line 549, in _doReadOrWrite selectable.connectionLost(f) File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 447, in connectionLost Connection.connectionLost(self, reason) File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 294, in connectionLost protocol.connectionLost(reason) File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 361, in connectionLost self.handleResponseEnd() File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 367, in handleResponseEnd self.handleResponse(b) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 631, in handleResponse self.apDataEnd(self.transfered, True) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 371, in apDataEnd os.makedirs(dir) File "/usr/lib/python2.3/os.py", line 153, in makedirs makedirs(head, mode) File "/usr/lib/python2.3/os.py", line 153, in makedirs makedirs(head, mode) File "/usr/lib/python2.3/os.py", line 153, in makedirs makedirs(head, mode) File "/usr/lib/python2.3/os.py", line 153, in makedirs makedirs(head, mode) File "/usr/lib/python2.3/os.py", line 154, in makedirs mkdir(name, mode) exceptions.OSError: [Errno 13] Permission denied: '/var/cache/apt-proxy/debian' A subsequent ls -al of /var/cache/apt-proxy shows that none of the usual data directories have been created. Changing the ownership of /var/cache/apt-proxy fixes the problem. Strangely while apt-proxy does not function correctly (does not cache packages) this does not seem to affect it's ability to download packages for the client. This can result in the client having no idea that the desired behaviour (package caching) is not being achieved. -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.4.29 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages apt-proxy depends on: ii bzip2 1.0.2-7 high-quality block-sorting file co ii debconf 1.4.30.13 Debian configuration management sy ii logrotate 3.7-5 Log rotation utility ii python 2.3.5-2 An interactive high-level object-o ii python-apt 0.5.10 Python interface to libapt-pkg ii python-bsddb3 3.3.0-6 Python interface to libdb3 ii python-twisted 1.3.0-8 Event-based framework for internet ii python2.3 2.3.5-3 An interactive high-level object-o -- debconf information: apt-proxy/upgrading-v2: apt-proxy/upgrading-v2-result: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]