Package: apt-proxy
Version: 1.9.32

apt-proxy was not serving allready cached packages, but was able to serve packages that it also had to fetch at the time of the request.

on server with apt-proxy
2005/09/22 22:38 EST [Channel,42,10.1.100.1] Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 56, in callWithLogger
           return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 41, in callWithContext
           return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 52, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 31, in callWithContext
           return func(*args,**kw)
       --- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/twisted/internet/selectreactor.py", line 139, in _doReadOrWrite
           why = getattr(selectable, method)()
File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 351, in doRead
           return self.protocol.dataReceived(data)
File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line 221, in dataReceived
           why = self.lineReceived(line)
File "/usr/lib/python2.3/site-packages/twisted/web/http.py", line 961, in lineReceived
           self.allContentReceived()
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1669, in allContentReceived
           http.HTTPChannel.allContentReceived(self)
File "/usr/lib/python2.3/site-packages/twisted/web/http.py", line 1002, in allContentReceived
           req.requestReceived(command, path, version)
File "/usr/lib/python2.3/site-packages/twisted/web/http.py", line 557, in requestReceived
           self.process()
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1406, in process
           self.fetch()
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1477, in fetch
           running[self.uri].insert_request(self)
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1168, in insert_request log.debug("Serving from cache for additional client: " + self.local_file + " size:" + str(self.size)) exceptions.AttributeError: FetcherCachedFile instance has no attribute 'size'

2005/09/22 22:38 EST [Channel,42,10.1.100.1] [Fetcher] Last request removed

on other pc having trouble fetching packages a message indicating that the server disconnected/source was unavailable was being displayed

procedure that showed problem
apt-get update
did a dist-upgrade on a machine - including upgrade to apt-proxy
apt-get install gnupg
gpg --keyserver keyring.debian.org --recv 4F368D5D
on secondary machine did apt-get update
followed by apt-get install gnupg

noticed that new packages only used on second pc - such as iptables/ppoe could be downloaded, while other packages used on apt-proxy pc couldn't be fetched.

possible fix
line 1166
       Fetcher.insert_request(self, request)
       self.size = request.local_size      # added this

log.debug("Serving from cache for additional client: " + self.local_file + " size:" + str(self.size))

restarted server - problem fixed
removed fix - restarted server - can no longer get same problem to occur... I don't know whats going on anymore!

Linux data 2.6.10-1-386 #1 Fri Mar 11 02:31:59 EST 2005 i686 GNU/Linux
libc6 Version: 2.3.5-6



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to