Package: apt-proxy
Version: 1.9.33
Severity: normal

Hello.

I run apt-proxy under "runit" supervision (I mention it because I don't
use the provided "/etc/init.d" script, in case it is relevant ot the
problem).

When issuing a "restart" (or "stop" for that matter), an exception
is generated, the shutting down doesn't complete, as shown in the log:

2006/03/28 22:36 UTC [-] Received SIGTERM, shutting down.
2006/03/28 22:36 UTC [-] (Port 9999 Closed)
2006/03/28 22:36 UTC [-] Stopping factory <apt_proxy.apt_proxy.Factory instance 
at 0x55b7dd8c>
2006/03/28 22:36 UTC [-] [db] =========================
2006/03/28 22:36 UTC [-] [db] Dumping update times
2006/03/28 22:36 UTC [-] [db] =========================
2006/03/28 22:36 UTC [-] [debug] Verifying database: 
/mnt/apt/apt-proxy/.apt-proxy/db/update.db
2006/03/28 22:36 UTC [-] [debug] Opening database 
/mnt/apt/apt-proxy/.apt-proxy/db/update.db
[...]
2006/03/28 22:36 UTC [-] [db] =========================
2006/03/28 22:36 UTC [-] [db] Dumping access times
2006/03/28 22:36 UTC [-] [db] =========================
[...]
2006/03/28 22:36 UTC [-] [db] =========================
2006/03/28 22:36 UTC [-] [db] Dumping packages
2006/03/28 22:36 UTC [-] [db] =========================
2006/03/28 22:36 UTC [-] [debug] Verifying database: 
/mnt/apt/apt-proxy/.apt-proxy/db/packages.db
2006/03/28 22:36 UTC [-] [debug] Opening database 
/mnt/apt/apt-proxy/.apt-proxy/db/packages.db
2006/03/28 22:36 UTC [-] Traceback (most recent call last):
          File "/usr/lib/python2.3/site-packages/twisted/scripts/twistd.py", 
line 197, in runApp
            app.runReactorWithLogging(config, oldstdout, oldstderr)
          File "/usr/lib/python2.3/site-packages/twisted/application/app.py", 
line 131, in runReactorWithLogging
            reactor.run()
          File 
"/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py", line 218, in 
run
            self.mainLoop()
          File 
"/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py", line 226, in 
mainLoop            self.runUntilCurrent()
        --- <exception caught here> ---
          File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", 
line 541, in runUntilCurrent
            call.func(*call.args, **call.kw)
          File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 
814, in connectionLost            self.factory.doStop()
          File "/usr/lib/python2.3/site-packages/twisted/internet/protocol.py", 
line 64, in doStop
            self.stopFactory()
          File "/usr/share/python-support/apt-proxy/apt_proxy/apt_proxy.py", 
line 1922, in stopFactory            packages.cleanup(self)
          File "/usr/share/python-support/apt-proxy/apt_proxy/packages.py", 
line 298, in cleanup
            backend.get_packages_db().cleanup()
        exceptions.AttributeError: 'str' object has no attribute 
'get_packages_db'


But then, after a *second* call to "restart":

2006/03/28 22:37 UTC [-] Received SIGTERM, shutting down.
2006/03/28 22:37 UTC [-] Main loop terminated.
2006/03/28 22:37 UTC [-] Server Shut Down.
2006/03/28 22:37 UTC [-] Log opened.
2006/03/28 22:37 UTC [-] twistd 2.2.0 (/usr/bin/python2.3 2.3.5) starting up
2006/03/28 22:37 UTC [-] reactor class: 
twisted.internet.selectreactor.SelectReactor
2006/03/28 22:37 UTC [-] Loading /usr/sbin/apt-proxy...
2006/03/28 22:37 UTC [-] 
/usr/lib/python2.3/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.
2006/03/28 22:37 UTC [-] WARNING: apt-proxy has not been tested under this 
version of twisted (2.2.0).2006/03/28 22:37 UTC [-] WARNING: although it should 
work without problem.
[...]

And the server is up again.
What could be the cause of this behaviour?


Best regards,
Gilles


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-vs2.1.0-rc5+g3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt-proxy depends on:
ii  adduser                       3.85       Add and remove users and groups
ii  bzip2                         1.0.3-2    high-quality block-sorting file co
ii  debconf [debconf-2.0]         1.4.72     Debian configuration management sy
ii  logrotate                     3.7.1-2    Log rotation utility
ii  python                        2.3.5-5    An interactive high-level object-o
ii  python-bsddb3                 3.3.0-6    Python interface to libdb3
ii  python-support                0.1.1      automated rebuilding support for p
ii  python-twisted                2.2.0-1    Event-based framework for internet
ii  python-twisted-web            0.5.0-4    An HTTP protocol implementation to
ii  python2.3                     2.3.5-9.1  An interactive high-level object-o

apt-proxy recommends no packages.

-- debconf information excluded


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

Reply via email to