[zope2-tracker] [Bug 681853] [NEW] Callback registration for signals ignored under mod_wsgi

nateaune natea at jazkarta.com
Fri Nov 26 11:39:56 EST 2010


Public bug reported:

[Fri Nov 26 16:07:55 2010] [warn] mod_wsgi (pid=6747): Callback registration for signal 15 ignored.
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/parts/modwsgi/wsgi", line 227, in <module>
[Fri Nov 26 16:07:55 2010] [warn]     application = loadapp("config:/opt/wsgi/zope2.ini")
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in loadapp
[Fri Nov 26 16:07:55 2010] [warn]     return loadobj(APP, uri, name=name, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in loadobj
[Fri Nov 26 16:07:55 2010] [warn]     return context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 163, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     app = context.app_context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 109, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
[Fri Nov 26 16:07:55 2010] [warn]     val = callable(*args, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/run.py", line 68, in make_wsgi_app
[Fri Nov 26 16:07:55 2010] [warn]     starter.prepare()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 90, in prepare
[Fri Nov 26 16:07:55 2010] [warn]     self.registerSignals()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 340, in registerSignals
[Fri Nov 26 16:07:55 2010] [warn]     self.cfg.trace])
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/Signals.py", line 111, in registerZopeSignals
[Fri Nov 26 16:07:55 2010] [warn]     SignalHandler.registerHandler(SIGTERM, shutdownFastHandler)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/SignalHandler.py", line 37, in registerHandler
[Fri Nov 26 16:07:55 2010] [warn]     signal.signal(signum, self.signalHandler)
[Fri Nov 26 16:07:55 2010] [warn] mod_wsgi (pid=6747): Callback registration for signal 2 ignored.
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/parts/modwsgi/wsgi", line 227, in <module>
[Fri Nov 26 16:07:55 2010] [warn]     application = loadapp("config:/opt/wsgi/zope2.ini")
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in loadapp
[Fri Nov 26 16:07:55 2010] [warn]     return loadobj(APP, uri, name=name, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in loadobj
[Fri Nov 26 16:07:55 2010] [warn]     return context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 163, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     app = context.app_context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 109, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
[Fri Nov 26 16:07:55 2010] [warn]     val = callable(*args, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/run.py", line 68, in make_wsgi_app
[Fri Nov 26 16:07:55 2010] [warn]     starter.prepare()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 90, in prepare
[Fri Nov 26 16:07:55 2010] [warn]     self.registerSignals()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 340, in registerSignals
[Fri Nov 26 16:07:55 2010] [warn]     self.cfg.trace])
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/Signals.py", line 112, in registerZopeSignals
[Fri Nov 26 16:07:55 2010] [warn]     SignalHandler.registerHandler(SIGINT, shutdownHandler)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/SignalHandler.py", line 37, in registerHandler
[Fri Nov 26 16:07:55 2010] [warn]     signal.signal(signum, self.signalHandler)
[Fri Nov 26 16:07:55 2010] [warn] mod_wsgi (pid=6747): Callback registration for signal 1 ignored.
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/parts/modwsgi/wsgi", line 227, in <module>
[Fri Nov 26 16:07:55 2010] [warn]     application = loadapp("config:/opt/wsgi/zope2.ini")
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in loadapp
[Fri Nov 26 16:07:55 2010] [warn]     return loadobj(APP, uri, name=name, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in loadobj
[Fri Nov 26 16:07:55 2010] [warn]     return context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 163, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     app = context.app_context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 109, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
[Fri Nov 26 16:07:55 2010] [warn]     val = callable(*args, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/run.py", line 68, in make_wsgi_app
[Fri Nov 26 16:07:55 2010] [warn]     starter.prepare()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 90, in prepare
[Fri Nov 26 16:07:55 2010] [warn]     self.registerSignals()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 340, in registerSignals
[Fri Nov 26 16:07:55 2010] [warn]     self.cfg.trace])
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/Signals.py", line 114, in registerZopeSignals
[Fri Nov 26 16:07:55 2010] [warn]     SignalHandler.registerHandler(SIGHUP, restartHandler)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/SignalHandler.py", line 37, in registerHandler
[Fri Nov 26 16:07:55 2010] [warn]     signal.signal(signum, self.signalHandler)
[Fri Nov 26 16:07:55 2010] [warn] mod_wsgi (pid=6747): Callback registration for signal 10 ignored.
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/parts/modwsgi/wsgi", line 227, in <module>
[Fri Nov 26 16:07:55 2010] [warn]     application = loadapp("config:/opt/wsgi/zope2.ini")
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in loadapp
[Fri Nov 26 16:07:55 2010] [warn]     return loadobj(APP, uri, name=name, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in loadobj
[Fri Nov 26 16:07:55 2010] [warn]     return context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 163, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     app = context.app_context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 109, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
[Fri Nov 26 16:07:55 2010] [warn]     val = callable(*args, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/run.py", line 68, in make_wsgi_app
[Fri Nov 26 16:07:55 2010] [warn]     starter.prepare()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 90, in prepare
[Fri Nov 26 16:07:55 2010] [warn]     self.registerSignals()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 340, in registerSignals
[Fri Nov 26 16:07:55 2010] [warn]     self.cfg.trace])
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/Signals.py", line 115, in registerZopeSignals
[Fri Nov 26 16:07:55 2010] [warn]     SignalHandler.registerHandler(SIGUSR1, showStacks)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/SignalHandler.py", line 37, in registerHandler
[Fri Nov 26 16:07:55 2010] [warn]     signal.signal(signum, self.signalHandler)
[Fri Nov 26 16:07:55 2010] [warn] mod_wsgi (pid=6747): Callback registration for signal 12 ignored.
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/parts/modwsgi/wsgi", line 227, in <module>
[Fri Nov 26 16:07:55 2010] [warn]     application = loadapp("config:/opt/wsgi/zope2.ini")
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in loadapp
[Fri Nov 26 16:07:55 2010] [warn]     return loadobj(APP, uri, name=name, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in loadobj
[Fri Nov 26 16:07:55 2010] [warn]     return context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 163, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     app = context.app_context.create()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create
[Fri Nov 26 16:07:55 2010] [warn]     return self.object_type.invoke(self)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 109, in invoke
[Fri Nov 26 16:07:55 2010] [warn]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
[Fri Nov 26 16:07:55 2010] [warn]     val = callable(*args, **kw)
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/run.py", line 68, in make_wsgi_app
[Fri Nov 26 16:07:55 2010] [warn]     starter.prepare()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 90, in prepare
[Fri Nov 26 16:07:55 2010] [warn]     self.registerSignals()
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Zope2/Startup/__init__.py", line 340, in registerSignals
[Fri Nov 26 16:07:55 2010] [warn]     self.cfg.trace])
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/Signals.py", line 116, in registerZopeSignals
[Fri Nov 26 16:07:55 2010] [warn]     SignalHandler.registerHandler(SIGUSR2, LogfileReopenHandler(loggers))
[Fri Nov 26 16:07:55 2010] [warn]   File "/opt/wsgi/eggs/Zope2-2.13.0-py2.6.egg/Signals/SignalHandler.py", line 37, in registerHandler
[Fri Nov 26 16:07:55 2010] [warn]     signal.signal(signum, self.signalHandler)

The attached patch as submitted by Reed O'Brien
(http://svn.plone.org/svn/plone/sandbox/wsgi-
plone4.1-devel/wsgi/signals.patch) seems to solve the problem and makes
these warnings go away.

** Affects: zope2
     Importance: Undecided
         Status: New


** Tags: wsgi

-- 
Callback registration for signals ignored under mod_wsgi
https://bugs.launchpad.net/bugs/681853
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list