Note that there are some explanatory texts on larger screens.

plurals
  1. POmod_wsgi process getting killed and django stops working
    primarykey
    data
    text
    <p>I have mod_wsgi running in daemon mode on a custom Linux build. I haven't included any number for processes or threads in the apache config. Here is my config:</p> <pre><code>WSGIDaemonProcess django user=admin WSGIProcessGroup django WSGIScriptAlias /django_apps /django/apache/django.wsgi WSGIApplicationGroup %{GLOBAL} </code></pre> <p>On the system, there is a httpd cleanup process running which kills any httpd process that exceeds a certain memory threshold. </p> <p>It looks like the httpd process which is running mod_wsgi is getting killed. Afterwards, the django portion of my website stops working. </p> <p>I get this error message:</p> <pre><code>Script timed out before returning headers: django.wsgi </code></pre> <p>Every time I access a django page, I get these log messages:</p> <pre><code>&lt;6&gt; Jul 7 10:13:11 httpd[12598]: [info] mod_wsgi (pid=12598): Initializing Python. &lt;6&gt; Jul 7 10:13:11 httpd[12598]: [info] mod_wsgi (pid=12598): Attach interpreter ''. &lt;6&gt; Jul 7 10:13:16 httpd[12638]: [info] mod_wsgi (pid=12638): Attach interpreter ''. &lt;6&gt; Jul 7 10:13:17 httpd[12615]: [info] mod_wsgi (pid=12615): Destroying interpreters. &lt;6&gt; Jul 7 10:13:17 httpd[12615]: [info] mod_wsgi (pid=12615): Cleanup interpreter ''. &lt;6&gt; Jul 7 10:13:17 httpd[12615]: [info] mod_wsgi (pid=12615): Terminating Python. &lt;6&gt; Jul 7 10:13:17 httpd[12615]: [info] mod_wsgi (pid=12615): Python has shutdown. </code></pre> <p>Can anybody help me understand what is going here. Why does the mod_wsgi process fail to restart? How do I configure it to restart gracefully?</p> <p>Thanks very much in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload