[Zope-dev] zc.async versus Zope 2 SIGTERM

2012-03-01 Thread Christian Theune

Hi,

zc.async's shutdown mechanism doesn't really work with Zope 2's SIGTERM 
handling: in my case it causes the Async's threaded dispatcher to die in 
the middle of something:


Exception in thread Thread-1 (most likely raised during interpreter 
shutdown):

Traceback (most recent call last):
  File /home/ctheune/local/lib/python2.6/threading.py, line 532, in 
__bootstrap_inner

  File /home/ctheune/local/lib/python2.6/threading.py, line 484, in run
  File 
/home/ctheune/gocept/code/...deployment/eggs/zc.async-1.5.4-py2.6.egg/zc/async/subscribers.py, 
line 115, in start
  File 
/home/ctheune/gocept/code/...deployment/eggs/Twisted-10.2.0-py2.6-linux-x86_64.egg/twisted/internet/base.py, 
line 1158, in run
  File 
/home/ctheune/gocept/code/...deployment/eggs/Twisted-10.2.0-py2.6-linux-x86_64.egg/twisted/internet/base.py, 
line 1172, in mainLoop

type 'exceptions.AttributeError': 'NoneType' object has no attribute 'msg'

This ends up in the worker not correctly unregistered and thus on next 
startup:


Exception in thread Thread-1 (most likely raised during interpreter 
shutdown):

Traceback (most recent call last):
  File /home/ctheune/local/lib/python2.6/threading.py, line 532, in 
__bootstrap_inner

  File /home/ctheune/local/lib/python2.6/threading.py, line 484, in run
  File 
/home/ctheune/gocept/code/webwork.deployment/eggs/zc.async-1.5.4-py2.6.egg/zc/async/subscribers.py, 
line 115, in start
  File 
/home/ctheune/gocept/code/webwork.deployment/eggs/Twisted-10.2.0-py2.6-linux-x86_64.egg/twisted/internet/base.py, 
line 1158, in run
  File 
/home/ctheune/gocept/code/webwork.deployment/eggs/Twisted-10.2.0-py2.6-linux-x86_64.egg/twisted/internet/base.py, 
line 1172, in mainLoop

type 'exceptions.AttributeError': 'NoneType' object has no attribute 'msg'

The funny thing is: although this instance didn't get to register it 
will then on regular shutdown:


2012-03-01 11:54:56 INFO zc.async.events deactivated dispatcher
8da98af0-5c95-11e1-a205-0024e8d50597
2012-03-01 11:54:56 INFO SignalHandler Caught signal SIGINT
2012-03-01 11:54:56 INFO Z2 Shutting down

The first issue (fast shutdown) you can avoid by simply not sending 
SIGTERM and switching to always use SIGINT. (For some reason zdaemon 
seems to do that by default when sending SIGTERM to the daemon manager.)


The second issue seems like a bad thing. Right?

Any comments?
Christian



--
Christian Theune · c...@gocept.com
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting, development, hosting, operations

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope-tests - OK: 23

2012-03-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/29/2012 08:00 PM, Zope tests summarizer wrote:
 This is the summary for test reports received on the zope-tests list
 between 2012-02-28 00:00:00 UTC and 2012-02-29 00:00:00 UTC:
 
 See the footnotes for test reports of unsuccessful builds.
 
 An up-to date view of the builders is also available in our buildbot
 documentation: 
 http://docs.zope.org/zopetoolkit/process/buildbots.html#the-nightly-builds

  Reports received 
 
 ZTK 1.0 / Python2.4.6 Linux 64bit ZTK 1.0 / Python2.5.5 Linux 64bit 
 ZTK 1.0 / Python2.6.7 Linux 64bit ZTK 1.0dev / Python2.4.6 Linux
 64bit ZTK 1.0dev / Python2.5.5 Linux 64bit ZTK 1.0dev / Python2.6.7
 Linux 64bit ZTK 1.1 / Python2.5.5 Linux 64bit ZTK 1.1 / Python2.6.7
 Linux 64bit ZTK 1.1 / Python2.7.2 Linux 64bit Zope 3.4 KGS /
 Python2.4.6 64bit linux Zope 3.4 KGS / Python2.5.5 64bit linux Zope
 3.4 Known Good Set / py2.4-32bit-linux Zope 3.4 Known Good Set /
 py2.4-64bit-linux Zope 3.4 Known Good Set / py2.5-32bit-linux Zope 3.4
 Known Good Set / py2.5-64bit-linux Zope-2.10 Python-2.4.6 : Linux 
 Zope-2.11 Python-2.4.6 : Linux Zope-2.12 Python-2.6.6 : Linux 
 Zope-2.12-alltests Python-2.6.6 : Linux Zope-2.13 Python-2.6.6 :
 Linux Zope-2.13-alltests Python-2.6.6 : Linux Zope-trunk Python-2.6.6
 : Linux Zope-trunk-alltests Python-2.6.6 : Linux


Hmm, has the winbot fallen over?


Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9PbVMACgkQ+gerLs4ltQ4l8QCffoqxK6pHGk19D9bqslkaMa0J
p1gAoMwVvoiPiXdwdyIS4UnO3wKqVWmz
=wSS9
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zc.async versus Zope 2 SIGTERM

2012-03-01 Thread Vincent Fretin
Hi,

Did you look how http://pypi.python.org/pypi/plone.app.async have done the
integration with Zope2?

Vincent Fretin
Ecreall
Site : http://vincentfretin.ecreall.com


On Thu, Mar 1, 2012 at 12:19 PM, Christian Theune c...@gocept.com wrote:

 Hi,

 zc.async's shutdown mechanism doesn't really work with Zope 2's SIGTERM
 handling: in my case it causes the Async's threaded dispatcher to die in
 the middle of something:

 Exception in thread Thread-1 (most likely raised during interpreter
 shutdown):
 Traceback (most recent call last):
  File /home/ctheune/local/lib/**python2.6/threading.py, line 532, in
 __bootstrap_inner
  File /home/ctheune/local/lib/**python2.6/threading.py, line 484, in run
  File /home/ctheune/gocept/code/...**deployment/eggs/zc.async-1.5.**
 4-py2.6.egg/zc/async/**subscribers.py, line 115, in start
  File /home/ctheune/gocept/code/...**deployment/eggs/Twisted-10.2.**
 0-py2.6-linux-x86_64.egg/**twisted/internet/base.py, line 1158, in run
  File /home/ctheune/gocept/code/...**deployment/eggs/Twisted-10.2.**
 0-py2.6-linux-x86_64.egg/**twisted/internet/base.py, line 1172, in
 mainLoop
 type 'exceptions.AttributeError': 'NoneType' object has no attribute
 'msg'

 This ends up in the worker not correctly unregistered and thus on next
 startup:

 Exception in thread Thread-1 (most likely raised during interpreter
 shutdown):
 Traceback (most recent call last):
  File /home/ctheune/local/lib/**python2.6/threading.py, line 532, in
 __bootstrap_inner
  File /home/ctheune/local/lib/**python2.6/threading.py, line 484, in run
  File /home/ctheune/gocept/code/**webwork.deployment/eggs/zc.**
 async-1.5.4-py2.6.egg/zc/**async/subscribers.py, line 115, in start
  File /home/ctheune/gocept/code/**webwork.deployment/eggs/**
 Twisted-10.2.0-py2.6-linux-**x86_64.egg/twisted/internet/**base.py, line
 1158, in run
  File /home/ctheune/gocept/code/**webwork.deployment/eggs/**
 Twisted-10.2.0-py2.6-linux-**x86_64.egg/twisted/internet/**base.py, line
 1172, in mainLoop
 type 'exceptions.AttributeError': 'NoneType' object has no attribute
 'msg'

 The funny thing is: although this instance didn't get to register it will
 then on regular shutdown:

 2012-03-01 11:54:56 INFO zc.async.events deactivated dispatcher
 8da98af0-5c95-11e1-a205-**0024e8d50597
 2012-03-01 11:54:56 INFO SignalHandler Caught signal SIGINT
 2012-03-01 11:54:56 INFO Z2 Shutting down

 The first issue (fast shutdown) you can avoid by simply not sending
 SIGTERM and switching to always use SIGINT. (For some reason zdaemon seems
 to do that by default when sending SIGTERM to the daemon manager.)

 The second issue seems like a bad thing. Right?

 Any comments?
 Christian



 --
 Christian Theune · c...@gocept.com
 gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
 http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
 Zope and Plone consulting, development, hosting, operations

 __**_
 Zope-Dev maillist  -  Zope-Dev@zope.org
 https://mail.zope.org/mailman/**listinfo/zope-devhttps://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
 https://mail.zope.org/mailman/**listinfo/zope-announcehttps://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/**listinfo/zopehttps://mail.zope.org/mailman/listinfo/zope)

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zc.async versus Zope 2 SIGTERM

2012-03-01 Thread Hanno Schlichting
On Thu, Mar 1, 2012 at 1:42 PM, Vincent Fretin vincent.fre...@gmail.com wrote:
 Did you look how http://pypi.python.org/pypi/plone.app.async have done the
 integration with Zope2?

IIRC we (Jarn) ran into the same problem when running p.a.async. Our
solution was to switch to using SIGINT for process shutdown. We used
supervisor, so for each Zope process section we added stopsignal=INT

But on unexpected process or server restarts, we still had stuck
workers once in a while. We never had the time to investigate, so just
handled those manually.

Hanno
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] zope-tests - OK: 51, UNKNOWN: 2

2012-03-01 Thread Zope tests summarizer
This is the summary for test reports received on the 
zope-tests list between 2012-02-29 00:00:00 UTC and 2012-03-01 00:00:00 UTC:

See the footnotes for test reports of unsuccessful builds.

An up-to date view of the builders is also available in our 
buildbot documentation: 
http://docs.zope.org/zopetoolkit/process/buildbots.html#the-nightly-builds

Reports received


[1]UNKNOWN : winbot / ztk_11 py_265_win64
[2]UNKNOWN : winbot / ztk_11 py_265_win64
   ZTK 1.0 / Python2.4.6 Linux 64bit
   ZTK 1.0 / Python2.5.5 Linux 64bit
   ZTK 1.0 / Python2.6.7 Linux 64bit
   ZTK 1.0dev / Python2.4.6 Linux 64bit
   ZTK 1.0dev / Python2.5.5 Linux 64bit
   ZTK 1.0dev / Python2.6.7 Linux 64bit
   ZTK 1.1 / Python2.5.5 Linux 64bit
   ZTK 1.1 / Python2.6.7 Linux 64bit
   ZTK 1.1 / Python2.7.2 Linux 64bit
   Zope 3.4 KGS / Python2.4.6 64bit linux
   Zope 3.4 KGS / Python2.5.5 64bit linux
   Zope 3.4 Known Good Set / py2.4-32bit-linux
   Zope 3.4 Known Good Set / py2.4-64bit-linux
   Zope 3.4 Known Good Set / py2.5-32bit-linux
   Zope 3.4 Known Good Set / py2.5-64bit-linux
   Zope-2.10 Python-2.4.6 : Linux
   Zope-2.11 Python-2.4.6 : Linux
   Zope-2.12 Python-2.6.6 : Linux
   Zope-2.12-alltests Python-2.6.6 : Linux
   Zope-2.13 Python-2.6.6 : Linux
   Zope-2.13-alltests Python-2.6.6 : Linux
   Zope-trunk Python-2.6.6 : Linux
   Zope-trunk-alltests Python-2.6.6 : Linux
   winbot / ZODB_dev py_265_win32
   winbot / ZODB_dev py_265_win32
   winbot / ZODB_dev py_265_win64
   winbot / ZODB_dev py_265_win64
   winbot / ZODB_dev py_270_win32
   winbot / ZODB_dev py_270_win64
   winbot / ztk_10 py_254_win32
   winbot / ztk_10 py_254_win32
   winbot / ztk_10 py_265_win32
   winbot / ztk_10 py_265_win32
   winbot / ztk_10 py_265_win64
   winbot / ztk_10 py_265_win64
   winbot / ztk_11 py_254_win32
   winbot / ztk_11 py_254_win32
   winbot / ztk_11 py_265_win32
   winbot / ztk_11 py_265_win32
   winbot / ztk_11 py_270_win32
   winbot / ztk_11 py_270_win32
   winbot / ztk_11 py_270_win64
   winbot / ztk_11 py_270_win64
   winbot / ztk_dev py_265_win32
   winbot / ztk_dev py_265_win32
   winbot / ztk_dev py_265_win64
   winbot / ztk_dev py_265_win64
   winbot / ztk_dev py_270_win32
   winbot / ztk_dev py_270_win32
   winbot / ztk_dev py_270_win64
   winbot / ztk_dev py_270_win64

Non-OK results
--

[1]UNKNOWN UNKNOWN : winbot / ztk_11 py_265_win64
   https://mail.zope.org/pipermail/zope-tests/2012-March/058792.html


[2]UNKNOWN UNKNOWN : winbot / ztk_11 py_265_win64
   https://mail.zope.org/pipermail/zope-tests/2012-March/058767.html


___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope-tests - OK: 51, UNKNOWN: 2

2012-03-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 [1]UNKNOWN UNKNOWN : winbot / ztk_11 py_265_win64 
 https://mail.zope.org/pipermail/zope-tests/2012-March/058792.html
 
 
 [2]UNKNOWN UNKNOWN : winbot / ztk_11 py_265_win64 
 https://mail.zope.org/pipermail/zope-tests/2012-March/058767.html


Both file already open WindowsErrors in the 'svn checkout' step.



Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9QMVcACgkQ+gerLs4ltQ6mpgCeKFqDkziL795Uy//uzIdXtjlA
DzoAoNTZVnZ9tvm02gPkeHrrNAltOBOB
=FiQu
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zope-tests - OK: 51, UNKNOWN: 2

2012-03-01 Thread Adam GROSZER

Hello,

Restarted winbot, let's see what happens...

On Thu, 01 Mar 2012 21:32:55 -0500 you wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


[1]UNKNOWN UNKNOWN : winbot / ztk_11 py_265_win64
https://mail.zope.org/pipermail/zope-tests/2012-March/058792.html


[2]UNKNOWN UNKNOWN : winbot / ztk_11 py_265_win64
https://mail.zope.org/pipermail/zope-tests/2012-March/058767.html



Both file already open WindowsErrors in the 'svn checkout' step.



Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9QMVcACgkQ+gerLs4ltQ6mpgCeKFqDkziL795Uy//uzIdXtjlA
DzoAoNTZVnZ9tvm02gPkeHrrNAltOBOB
=FiQu
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
  https://mail.zope.org/mailman/listinfo/zope-announce
  https://mail.zope.org/mailman/listinfo/zope )




--
Best regards,
 Adam GROSZER
--
Quote of the day:
There's no sense being anywhere but on the top of the heap
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )