Your message dated Fri, 18 Jun 2010 19:12:13 +0000
with message-id <[email protected]>
and subject line Bug#586316: fixed in python-bottle 0.8.0-3
has caused the Debian Bug report #586316,
regarding Cherrypy raises exception on SIGTERM, when NOT using CherryPy
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
586316: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586316
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-bottle
Version: 0.8.0-2
Severity: normal

Hello,

I'm making a daemon using bottle, which I'm killing with SIGTERM as it
happens to be the case with daemons.

While everything works fine with ^C/SIGINT:

   $ ./run-local src/arki-server data/conf 
   Bottle server starting up (using AutoServer())...
   Listening on http://localhost:8080/
   Use Ctrl-C to quit.
   
   Started new worker 140423895066384: Initial worker pool
   Started new worker 140423878280976: Initial worker pool
   Started new worker 140423886673680: Initial worker pool
   Started new worker 140423861495568: Initial worker pool
   Started new worker 140423869888272: Initial worker pool
   Started new worker 140423853102864: Initial worker pool
   Started new worker 140423836317456: Initial worker pool
   Started new worker 140423844710160: Initial worker pool
   Started new worker 140423754413840: Initial worker pool
   serving on http://127.0.0.1:8080
   Started new worker 140423746021136: Initial worker pool
   ^CShutting down threadpool
   Worker 140423878280976 asked to SHUTDOWN
   Worker 140423895066384 asked to SHUTDOWN
   Worker 140423886673680 asked to SHUTDOWN
   Worker 140423861495568 asked to SHUTDOWN
   Worker 140423869888272 asked to SHUTDOWN
   Worker 140423853102864 asked to SHUTDOWN
   Worker 140423754413840 asked to SHUTDOWN
   Worker 140423836317456 asked to SHUTDOWN
   Worker 140423844710160 asked to SHUTDOWN
   Worker 140423746021136 asked to SHUTDOWN
   All workers stopped
   Shutting down threadpool
   All workers stopped

With SIGTERM I get a backtrace:

   $ ./run-local src/arki-server data/conf 
   Bottle server starting up (using AutoServer())...
   Listening on http://localhost:8080/
   Use Ctrl-C to quit.
   
   Started new worker 139643165251344: Initial worker pool
   Started new worker 139643156858640: Initial worker pool
   Started new worker 139643148465936: Initial worker pool
   Started new worker 139643140073232: Initial worker pool
   Started new worker 139643131680528: Initial worker pool
   Started new worker 139643123287824: Initial worker pool
   Started new worker 139643114895120: Initial worker pool
   Started new worker 139643106502416: Initial worker pool
   Started new worker 139643098109712: Initial worker pool
   serving on http://127.0.0.1:8080
   Started new worker 139643089717008: Initial worker pool
   Shutting down threadpool
   Worker 139643165251344 asked to SHUTDOWN
   Worker 139643156858640 asked to SHUTDOWN
   Worker 139643148465936 asked to SHUTDOWN
   Worker 139643140073232 asked to SHUTDOWN
   Worker 139643131680528 asked to SHUTDOWN
   Worker 139643123287824 asked to SHUTDOWN
   Worker 139643114895120 asked to SHUTDOWN
   Worker 139643106502416 asked to SHUTDOWN
   Worker 139643098109712 asked to SHUTDOWN
   Worker 139643089717008 asked to SHUTDOWN
   All workers stopped
   Traceback (most recent call last):
     File "/home/enrico/lavori/arpa/arkimet/src/arki-server", line 608, in 
<module>
       start_server(opts)
     File "/home/enrico/lavori/arpa/arkimet/src/arki-server", line 542, in 
start_server
       bottle.run(**args)
     File "/home/enrico/lavori/arpa/arkimet/src/arkimet/bottle.py", line 1251, 
in run
       server.run(app)
     File "/home/enrico/lavori/arpa/arkimet/src/arkimet/bottle.py", line 1224, 
in run
       return sa(self.host, self.port, **self.options).run(handler)
     File "/home/enrico/lavori/arpa/arkimet/src/arkimet/bottle.py", line 1148, 
in run
       httpserver.serve(app, host=self.host, port=str(self.port), 
**self.options)
     File "/usr/lib/pymodules/python2.5/paste/httpserver.py", line 1310, in 
serve
       server.serve_forever()
     File "/usr/lib/pymodules/python2.5/paste/httpserver.py", line 1084, in 
serve_forever
       self.handle_request()
     File "/usr/lib/python2.5/SocketServer.py", line 217, in handle_request
       request, client_address = self.get_request()
     File "/usr/lib/pymodules/python2.5/paste/httpserver.py", line 1119, in 
get_request
       (conn,info) = SecureHTTPServer.get_request(self)
     File "/usr/lib/pymodules/python2.5/paste/httpserver.py", line 388, in 
get_request
       (conn, info) = self.socket.accept()
     File "/usr/lib/python2.5/socket.py", line 172, in accept
       sock, addr = self._sock.accept()
     File "/usr/lib/pymodules/python2.5/cherrypy/_cpengine.py", line 24, in 
SIGTERM
       cherrypy.engine.stop()
   AttributeError: 'module' object has no attribute 'engine'
   Shutting down threadpool
   All workers stopped

Although cherrypy is installed (because I also have TurboGears1 in the
system), bottle is not using it, and yet CherryPy still manages to annoy
me.

It looks like AutoServer is trying in sequence FapwsServer
CherryPyServer and PasteServer, settling on PasteServer. Although
CherryPy is installed, it still raises ImportError because I have
CherryPy 2.3 which does not have "wsgiserver". It still does manage,
however, to install its own signal handlers and screw up the
environment.

Unfortunately, I cannot find anything that can be imported from
cherrypy3 that is useful to check its version or the presence of
wsgiserver and which doesn't install CherryPy's hooks. What else could I
expect from the very same who completely changed API without changing
module names, after all? But I digress.

Anyway, in my local copy of Bottle I can just make it not attempt to
load CherryPy. Unless there is a reason to think CherryPy is preferable
to Paste, I could suggest to try CherryPy later in AutoServer.


Ciao,

Enrico

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-bottle depends on:
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-support                1.0.8      automated rebuilding support for P

python-bottle recommends no packages.

python-bottle suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: python-bottle
Source-Version: 0.8.0-3

We believe that the bug you reported is fixed in the latest version of
python-bottle, which is due to be installed in the Debian FTP archive:

python-bottle-doc_0.8.0-3_all.deb
  to main/p/python-bottle/python-bottle-doc_0.8.0-3_all.deb
python-bottle_0.8.0-3.debian.tar.gz
  to main/p/python-bottle/python-bottle_0.8.0-3.debian.tar.gz
python-bottle_0.8.0-3.dsc
  to main/p/python-bottle/python-bottle_0.8.0-3.dsc
python-bottle_0.8.0-3_all.deb
  to main/p/python-bottle/python-bottle_0.8.0-3_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <[email protected]> (supplier of updated python-bottle package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 18 Jun 2010 20:24:26 +0200
Source: python-bottle
Binary: python-bottle python-bottle-doc
Architecture: source all
Version: 0.8.0-3
Distribution: unstable
Urgency: low
Maintainer: David Paleino <[email protected]>
Changed-By: David Paleino <[email protected]>
Description: 
 python-bottle - fast and simple WSGI-framework for Python
 python-bottle-doc - fast and simple WSGI-framework for Python - documentation
Closes: 586316
Changes: 
 python-bottle (0.8.0-3) unstable; urgency=low
 .
   * debian/patches/02-fix_autoserver_ordering.patch added, moves
     CherryPyServer later in the list, since it does weird things
     on import even when people don't use it. (Closes: #586316)
   * debian/control:
     - added Provides to python-bottle
Checksums-Sha1: 
 92dc42278d62f3fc19a8276770a31dd2cb303643 1353 python-bottle_0.8.0-3.dsc
 93b9c930fb0949b81f3946b0e1e0c512bf9777ba 3533 
python-bottle_0.8.0-3.debian.tar.gz
 9b9f9d6cacc8b0e3d288c8f788144578f8a8e254 21818 python-bottle_0.8.0-3_all.deb
 bedb7a3f8f19480536fb0f820e9ff88a8f6ad907 64176 
python-bottle-doc_0.8.0-3_all.deb
Checksums-Sha256: 
 cf4daa24b8c74e48c7eac889f71b8d5203cdb932a912070b02f4927c50041b09 1353 
python-bottle_0.8.0-3.dsc
 1418372a90338d13db15f007666646ebf6ca1adf75452498f23624c7b6064cf4 3533 
python-bottle_0.8.0-3.debian.tar.gz
 910573d06dc32b8b5de8f09bceeb4b61f61e80333b2e33ee67c1395739d649a3 21818 
python-bottle_0.8.0-3_all.deb
 e5f67d37f7cf5197ffd039e804e2b8e0d9aa1086a72103c4a0edcfb78e1a1a9e 64176 
python-bottle-doc_0.8.0-3_all.deb
Files: 
 1297fa985f56b15b0eb3ffad8a9b81cb 1353 python optional python-bottle_0.8.0-3.dsc
 1fcb4e77bcb1d915acff3e1b0b202b7d 3533 python optional 
python-bottle_0.8.0-3.debian.tar.gz
 9818047c8692885dfdd6f45e267b7e28 21818 python optional 
python-bottle_0.8.0-3_all.deb
 33d92687346eb7cf25057736d910973e 64176 doc optional 
python-bottle-doc_0.8.0-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkwbuqkACgkQ5qqQFxOSsXTnvQCfXmeeFo2TnQpTUzoHjo6lhoV4
f2oAnRWsK6r/4QDbjs+T1g38yvYKj6r/
=fLd9
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to