apt-proxy crash

Bug #198331 reported by okparanoid
4
Affects Status Importance Assigned to Milestone
apt-proxy (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When i try to make an "aptitude update" on my desktop using a server on local network with apt-proxy aptitude stops randomly (very often) and seems to be waiting something from apt-proxy server.

Here is the log of apt-proxy on the server :

2008/03/04 13:13 +0200 [-] Log opened.
2008/03/04 13:13 +0200 [-] twistd 2.5.0 (/usr/bin/python 2.5.2) starting up
2008/03/04 13:13 +0200 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008/03/04 13:13 +0200 [-] Loading /usr/sbin/apt-proxy...
2008/03/04 13:13 +0200 [-] /usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: exceptions.DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
2008/03/04 13:13 +0200 [-] None
2008/03/04 13:13 +0200 [-] Loaded.
2008/03/04 13:13 +0200 [-] Changing process name to apt-proxy
2008/03/04 13:13 +0200 [-] Log opened.
2008/03/04 13:13 +0200 [-] twistd 2.5.0 (/usr/sbin/apt-proxy 2.5.2) starting up
2008/03/04 13:13 +0200 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008/03/04 13:13 +0200 [-] Loading /usr/sbin/apt-proxy...
2008/03/04 13:13 +0200 [-] /usr/lib/python2.5/site-packages/twisted/manhole/telnet.py:8: exceptions.DeprecationWarning: As of Twisted 2.1, twisted.protocols.telnet is deprecated. See twisted.conch.telnet for the current, supported API.
2008/03/04 13:13 +0200 [-] None
2008/03/04 13:13 +0200 [-] Loaded.
2008/03/04 13:13 +0200 [-] apt_proxy.apt_proxy.Factory starting on 9999
2008/03/04 13:13 +0200 [-] Starting factory <apt_proxy.apt_proxy.Factory instance at 0xd08950>
2008/03/04 13:13 +0200 [-] set uid/gid 104/65534
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy/Release.gpg
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy/Release.gpg
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] Starting factory <apt_proxy.fetchers.HttpFetcher instance at 0x1059e60>
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] Starting factory <twisted.protocols.policies.TimeoutFactory instance at 0x1059ef0>
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy/main/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy/main/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy/restricted/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy/restricted/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy/universe/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy/universe/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy/multiverse/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy/multiverse/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy/proposed/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy/proposed/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy-updates/Release.gpg
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy-updates/Release.gpg
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy-updates/main/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy-updates/main/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy-updates/restricted/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy-updates/restricted/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy-backports/Release.gpg
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy-backports/Release.gpg
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy-backports/main/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy-backports/main/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [TimeoutProtocol,client] [CacheEntry] download started:/var/cache/apt-proxy/ubuntu/dists/hardy/Release.gpg
2008/03/04 13:13 +0200 [TimeoutProtocol,client] [CacheEntry] download_data_end: /var/cache/apt-proxy/ubuntu/dists/hardy/Release.gpg (1 clients)
2008/03/04 13:13 +0200 [TimeoutProtocol,client] [CacheEntry] file_sent:/var/cache/apt-proxy/ubuntu/dists/hardy/Release.gpg
2008/03/04 13:13 +0200 [TimeoutProtocol,client] Unhandled Error
        Traceback (most recent call last):
          File "/usr/lib/python2.5/site-packages/twisted/application/app.py", line 113, in runReactorWithLogging
            reactor.run()
          File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line 220, in run
            self.mainLoop()
          File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line 231, in mainLoop
            self.doIteration(t)
          File "/usr/lib/python2.5/site-packages/twisted/internet/selectreactor.py", line 133, in doSelect
            _logrun(selectable, _drdw, selectable, method, dict)
        --- <exception caught here> ---
          File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 48, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/log.py", line 33, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 59, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python2.5/site-packages/twisted/python/context.py", line 37, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python2.5/site-packages/twisted/internet/selectreactor.py", line 149, in _doReadOrWrite
            self._disconnectSelectable(selectable, why, method=="doRead")
          File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line 252, in _disconnectSelectable
            selectable.readConnectionLost(f)
          File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 405, in readConnectionLost
            self.connectionLost(reason)
          File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 576, in connectionLost
            Connection.connectionLost(self, reason)
          File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 416, in connectionLost
            protocol.connectionLost(reason)
          File "/usr/lib/python2.5/site-packages/twisted/protocols/policies.py", line 401, in connectionLost
            ProtocolWrapper.connectionLost(self, reason)
          File "/usr/lib/python2.5/site-packages/twisted/protocols/policies.py", line 76, in connectionLost
            self.wrappedProtocol.connectionLost(reason)
          File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 397, in connectionLost
            self.handleResponseEnd()
          File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 403, in handleResponseEnd
            self.handleResponse(b)
          File "/usr/lib/python2.5/site-packages/apt_proxy/fetchers.py", line 363, in handleResponse
            self.download_complete()
          File "/usr/lib/python2.5/site-packages/apt_proxy/fetchers.py", line 344, in download_complete
            self.fetcher.download_complete()
          File "/usr/lib/python2.5/site-packages/apt_proxy/fetchers.py", line 115, in download_complete
            self.cacheEntry.download_data_end()
          File "/usr/lib/python2.5/site-packages/apt_proxy/cache.py", line 420, in download_data_end
            self.file_sent()
          File "/usr/lib/python2.5/site-packages/apt_proxy/cache.py", line 448, in file_sent
            self.backend.file_served(self)
          File "/usr/lib/python2.5/site-packages/apt_proxy/apt_proxy.py", line 137, in file_served
            self.get_packages_db().file_updated(entry)
          File "/usr/lib/python2.5/site-packages/apt_proxy/apt_proxy.py", line 123, in get_packages_db
            self.packages = packages.AptPackages(self.base, self.factory.config.cache_dir)
          File "/usr/lib/python2.5/site-packages/apt_proxy/packages.py", line 168, in __init__
            self.packages = PackageFileList(backendName, cache_dir)
          File "/usr/lib/python2.5/site-packages/apt_proxy/packages.py", line 64, in __init__
            self.open()
          File "/usr/lib/python2.5/site-packages/apt_proxy/packages.py", line 68, in open
            self.packages = shelve.open(self.packagedb_dir+'/packages.db')
          File "/usr/lib/python2.5/shelve.py", line 225, in open
            return DbfilenameShelf(filename, flag, protocol, writeback)
          File "/usr/lib/python2.5/shelve.py", line 209, in __init__
            Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
          File "/usr/lib/python2.5/anydbm.py", line 83, in open
            return mod.open(file, flag, mode)
          File "/usr/lib/python2.5/dbhash.py", line 16, in open
            return bsddb.hashopen(file, flag, mode)
          File "/usr/lib/python2.5/bsddb/__init__.py", line 310, in hashopen
            d.open(file, db.DB_HASH, flags, mode)
        bsddb.db.DBInvalidArgError: (22, 'Invalid argument -- /var/cache/apt-proxy/.apt-proxy/backends/ubuntu/packages.db: unsupported hash version: 9')

2008/03/04 13:13 +0200 [-] Exception exceptions.AttributeError: "AptPackages instance has no attribute 'loaded'" in <bound method AptPackages.__del__ of <apt_proxy.packages.AptPackages instance at 0x10c74d0>> ignored
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] this is a real request:/var/cache/apt-proxy/ubuntu/dists/hardy-backports/restricted/i18n/Translation-fr.bz2
2008/03/04 13:13 +0200 [Channel,0,165.170.96.170] [CacheEntry] start download:dists/hardy-backports/restricted/i18n/Translation-fr.bz2

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 or 9.04?

Changed in apt-proxy:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in apt-proxy:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.