It is because you are using a very old version of mod_wsgi. The problem started 
when they made a change in how Python does cleanup on shutdown.

If you cannot upgrade to a newer mod_wsgi version (latest is 3.4), then at 
least add the following directive to Apache:

WSGIRestrictedEmbedded On

This will stop Python being initialised in the main Apache worker processes, 
which is where the message is likely coming from because of process churn with 
your Apache configuration and MPM choice.

If that causes stuff to fail in other ways, then likely you aren't actually 
delegating applications to the daemon process properly. In that case make sure 
you always have WSGIProcessGroup set appropriately.

Graham

On 30/05/2013, at 3:58 AM, Leandro de Oliverira <[email protected]> 
wrote:

> Hi. do to solve this problem:
> # yum update mod_wsgi
> 
> Em sexta-feira, 9 de abril de 2010 01h46min11s UTC-3, tmdk escreveu:
> I have a Django app running that *appears* to work fine (from a user's
> perspective).  But the error_log is constantly filled with these
> threading KeyErrors (see below).
> My environment:
>   CentOS 5.4 64bit on Intel
>   Stock Apache 2.2.3
>   Python 2.6.5 built from source with --enable_shared
>   mod_wsgi 2.8
> 
> I removed Django from the equation and set up the basic hello world
> WSGI app from http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide
> .
> 
> I tried to eliminate multithreading issues by going to single threaded
> processes in the WSGI daemon:
> WSGIDaemonProcess myapp processes=10 threads=1 display-name=%{GROUP}
> 
> But still, all I have to do is start apache and stop apache.  And I
> get ~15 of these errors in the error_log, even without a single
> request being processed.  And when requests are being processed, they
> come more often (but not predictably).
> 
> What is this?  I can't find any reference to this error.  My setup is
> so basic, I don't understand what could be going wrong.
> 
> 
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> [Fri Apr 09 04:34:54 2010] [error] Exception KeyError:
> KeyError(47125770724704,) in <module 'threading' from '/usr/local/lib/
> python2.6/threading.pyc'> ignored
> 
> Any help is greatly appreciated.
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to