On Tue, Nov 01, 2005 at 02:55:45PM +0000, Chris Halls wrote: > On Tuesday 01 Nov 2005 13:42, Geert Stappers wrote: > > > > What is needed to get the debug port working? > > The configuration looks fine. Did you restart apt-proxy after changing the > configuration? Are there any error messages in the logfile?
No error message in the logfile. No signs that it is listing on port 9998. At shutdown there are many messages. Attached is the log file. startup and telnet attempt is at 17:32 shutdown at 17:33. GSt
2005/11/01 17:32 CET [-] Log opened. 2005/11/01 17:32 CET [-] twistd 2.0.1 (/usr/bin/python2.3 2.3.5) starting up 2005/11/01 17:32 CET [-] reactor class: twisted.internet.selectreactor.SelectReactor 2005/11/01 17:32 CET [-] Loading /usr/sbin/apt-proxy... 2005/11/01 17:32 CET [-] Loaded. 2005/11/01 17:32 CET [-] apt_proxy.apt_proxy.Factory starting on 9999 2005/11/01 17:32 CET [-] Starting factory <apt_proxy.apt_proxy.Factory instance at 0x7082b530> 2005/11/01 17:32 CET [-] set uid/gid 104/65534 2005/11/01 17:33 CET [-] Received SIGTERM, shutting down. 2005/11/01 17:33 CET [-] (Port 9999 Closed) 2005/11/01 17:33 CET [-] Stopping factory <apt_proxy.apt_proxy.Factory instance at 0x7082b530> 2005/11/01 17:33 CET [-] Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/twisted/scripts/twistd.py", line 187, in runApp app.runReactorWithLogging(config, oldstdout, oldstderr) File "/usr/lib/python2.3/site-packages/twisted/application/app.py", line 128, in runReactorWithLogging reactor.run() File "/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py", line 199, in run self.mainLoop() File "/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py", line 207, in mainLoop self.runUntilCurrent() --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line 533, in runUntilCurrent call.func(*call.args, **call.kw) File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 792, in connectionLost self.factory.doStop() File "/usr/lib/python2.3/site-packages/twisted/internet/protocol.py", line 64, 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/11/01 17:33 CET [-] Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/twisted/scripts/twistd.py", line 187, in runApp app.runReactorWithLogging(config, oldstdout, oldstderr) File "/usr/lib/python2.3/site-packages/twisted/application/app.py", line 128, in runReactorWithLogging reactor.run() File "/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py", line 199, in run self.mainLoop() File "/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py", line 207, in mainLoop self.runUntilCurrent() --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line 533, in runUntilCurrent call.func(*call.args, **call.kw) File "/usr/lib/python2.3/site-packages/apt_proxy/misc.py", line 164, in process if not self.factory.access_times.has_key(uri): bsddb3._db.DBError: (0, 'DB object has been closed') 2005/11/01 17:33 CET [-] Received SIGTERM, shutting down. 2005/11/01 17:33 CET [-] Unhandled error in Deferred: 2005/11/01 17:33 CET [-] Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line 510, in runUntilCurrent f(*a, **kw) File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line 321, in stop self.fireSystemEvent("shutdown") File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line 371, in fireSystemEvent d = callable(*args, **kw) File "/usr/lib/python2.3/site-packages/twisted/application/service.py", line 207, in stopService l.append(defer.maybeDeferred(service.stopService)) --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 117, in maybeDeferred result = f(*args, **kw) File "/usr/lib/python2.3/site-packages/twisted/application/internet.py", line 76, in stopService d = self._port.stopListening() exceptions.AttributeError: TCPServer instance has no attribute '_port' 2005/11/01 17:33 CET [-] Main loop terminated. 2005/11/01 17:33 CET [-] Server Shut Down.
signature.asc
Description: Digital signature