Hi Graham and everyone else
I'm running multiple site on Django 1.6.7, Apache/2.4.7 (Ubuntu 14.04),
OpenSSL/1.0.1f, mod_wsgi/4.2.5, Python/2.7.6, Server MPM: worker.
I found that the server start returning 504 and then 503, and the following
error shown up.
I researched some issues related with it, even added "WSGISocketPrefix
/var/run/apache2/wsgi", but the issue still occured.
I have no idea why it happened. Can anyone give some directions on this
issue?
Thanks!
apache error log
[Sun Oct 26 07:34:34.732934 2014] [wsgi:error] [pid 29268:tid
140053011478272] [client xx.xxx.xxx.xxx:xxxxx] Timeout when reading
response headers from daemon process 'site-1': /home/ubuntu/site-1/apache/
wsgi.py
[Sun Oct 26 07:34:37.198806 2014] [wsgi:error] [pid 27816:tid
140052910765824] (11)Resource temporarily unavailable: [client xx.xx.xx.xx:
xxxxx] mod_wsgi (pid=27816): Unable to connect to WSGI daemon process
'site-1' on '/var/run/apache2/wsgi.17227.2.3.sock'.
occasionally
[Tue Oct 28 02:20:40.722140 2014] [wsgi:error] [pid 24158:tid
140182690981632] (2)No such file or directory: [client 24.171.250.159:60769]
mod_wsgi (pid=24158): Unable to connect to WSGI daemon process
'snaptee-production-api-ssl' on '/var/run/apache2/wsgi.30188.7.3.sock'.
wsgi config for that site
WSGIDaemonProcess site-1 display-name=site-1 user=www-data threads=25 python
-path=/home/ubuntu/site-1/django:/home/ubuntu/.virtualenvs/site-1/lib/
python2.7/site-packages
WSGIProcessGroup site-1
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /home/ubuntu/site-1/apache/wsgi.py
worker.conf
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 150
MaxConnectionsPerChild 1000
</IfModule>
--
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.
For more options, visit https://groups.google.com/d/optout.