Hi Otavio,

Sorry, bad news - even the newest apt-proxy still doesn't like volatile.

I've stopped apt-proxy, completely wiped /var/cache/apt-proxy, run apt-get 
update on a sources.list reduced to contain *only* volatile/main.  Then 
I've stopped apt-proxy again, so the shutdown in the log is *not* a crash 
but a regular shutdown.

The results are below.

Thanks for investigating - apt-proxy is a great tool otherwise.
-- vbi

==== log:
2005/08/29 09:23 CEST [-] Log opened.
2005/08/29 09:23 CEST [-] twistd 1.3.0rc1 (/usr/bin/python2.3 2.3.5) starting up
2005/08/29 09:23 CEST [-] reactor class: twisted.internet.default.SelectReactor
2005/08/29 09:23 CEST [-] Loading /usr/sbin/apt-proxy...
2005/08/29 09:23 CEST [-] Loaded.
2005/08/29 09:23 CEST [-] apt_proxy.apt_proxy.Factory starting on 9999
2005/08/29 09:23 CEST [-] Starting factory <apt_proxy.apt_proxy.Factory 
instance at 0xb78d8b2c>
2005/08/29 09:23 CEST [-] set uid/gid 102/65534
2005/08/29 09:23 CEST [Channel,0,192.168.1.130] Starting factory 
<twisted.internet.protocol._InstanceFactory instance at 0xb7555bcc>
2005/08/29 09:23 CEST [FTPClient,client] Traceback (most recent call last):
          File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", 
line 526, in doSelect
            _logrun(selectable, _drdw, selectable, method, dict)
          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)
        --- <exception caught here> ---
          File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", 
line 535, in _doReadOrWrite
            why = getattr(selectable, method)()
          File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 
255, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", 
line 223, in dataReceived
            why = self.lineReceived(line)
          File "/usr/lib/python2.3/site-packages/twisted/protocols/ftp.py", 
line 1986, in lineReceived
            if not (codeIsValid and line[3] == ' '):
        exceptions.IndexError: string index out of range

2005/08/29 09:23 CEST [FTPClient,client] Stopping factory 
<twisted.internet.protocol._InstanceFactory instance at 0xb7555bcc>
2005/08/29 09:23 CEST [Channel,1,192.168.1.130] Starting factory 
<twisted.internet.protocol._InstanceFactory instance at 0xb74a53ec>
2005/08/29 09:23 CEST [FTPClient,client] Traceback (most recent call last):
          File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", 
line 526, in doSelect
            _logrun(selectable, _drdw, selectable, method, dict)
          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)
        --- <exception caught here> ---
          File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", 
line 535, in _doReadOrWrite
            why = getattr(selectable, method)()
          File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 
255, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", 
line 223, in dataReceived
            why = self.lineReceived(line)
          File "/usr/lib/python2.3/site-packages/twisted/protocols/ftp.py", 
line 1986, in lineReceived
            if not (codeIsValid and line[3] == ' '):
        exceptions.IndexError: string index out of range

2005/08/29 09:23 CEST [FTPClient,client] Stopping factory 
<twisted.internet.protocol._InstanceFactory instance at 0xb74a53ec>
2005/08/29 09:23 CEST [-] Received SIGTERM, shutting down.
2005/08/29 09:23 CEST [-] (Port 9999 Closed)
2005/08/29 09:23 CEST [-] Stopping factory <apt_proxy.apt_proxy.Factory 
instance at 0xb78d8b2c>
2005/08/29 09:23 CEST [-] Traceback (most recent call last):
          File "/usr/lib/python2.3/site-packages/twisted/scripts/twistd.py", 
line 176, in runApp
            app.runReactorWithLogging(config, oldstdout, oldstderr)
          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 134, in mainLoop
            self.runUntilCurrent()
        --- <exception caught here> ---
          File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", 
line 423, in runUntilCurrent
            call.func(*call.args, **call.kw)
          File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 
683, in connectionLost
            self.factory.doStop()
          File "/usr/lib/python2.3/site-packages/twisted/internet/protocol.py", 
line 66, in doStop
            self.stopFactory()
          File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 
1930, in stopFactory
            packages.cleanup(self)
          File "/usr/lib/python2.3/site-packages/apt_proxy/packages.py", line 
298, in cleanup
            backend.get_packages_db().cleanup()
        exceptions.AttributeError: 'str' object has no attribute 
'get_packages_db'

2005/08/29 09:23 CEST [-] Received SIGTERM, shutting down.
2005/08/29 09:23 CEST [-] Unhandled error in Deferred:
2005/08/29 09:23 CEST [-] Traceback (most recent call last):
          File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", 
line 423, in runUntilCurrent
            call.func(*call.args, **call.kw)
          File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", 
line 257, in stop
            self.fireSystemEvent("shutdown")
          File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", 
line 307, in fireSystemEvent
            d = callable(*args, **kw)
          File 
"/usr/lib/python2.3/site-packages/twisted/application/service.py", line 218, in 
stopService
            l.append(defer.maybeDeferred(service.stopService))
        --- <exception caught here> ---
          File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", 
line 129, in maybeDeferred
            result = f(*args, **kw)
          File 
"/usr/lib/python2.3/site-packages/twisted/application/internet.py", line 68, in 
stopService
            d = self._port.stopListening()
        exceptions.AttributeError: TCPServer instance has no attribute '_port'

2005/08/29 09:23 CEST [-] Main loop terminated.
2005/08/29 09:23 CEST [-] Server Shut Down.
=====

==== apt-proxy-v2.conf
[DEFAULT]
port = 9999
min_refresh_delay = 1h
complete_clientless_downloads = 1
debug = all:0 db:0
timeout = 15
cache_dir = /var/cache/apt-proxy
cleanup_freq = 1d
max_age = 365d
max_versions = 3
dynamic_backends = off
; ... some other backends ...
[volatile]
backends =
        ftp://mirror.switch.ch/mirror/debian-volatile
        ftp://volatile.debian.net/debian-volatile
=====

==== sources.list
deb http://192.168.1.130:9999/volatile stable/volatile main
=====

-- 
featured link: http://fortytwo.ch/blog

Attachment: pgpBHhgLpK0EU.pgp
Description: PGP signature

Reply via email to