Django Webfaction 'Timeout when reading response headers from daemon process'

佐手、 提交于 2019-11-30 08:28:20
Sean F

Python C extension modules, like numpy, are known to cause timeouts when used under mod_wsgi. There's a clear explanation of the problem (direct from the author of mod_wsgi) available at https://serverfault.com/a/514251/109598

If that sounds like it might be the cause of your problem, then the solution is probably simple - add the following to your httpd.conf:

WSGIApplicationGroup %{GLOBAL}

Be sure to restart your Apache instance after making that change.

Try increasing Timeout directive in httpd.conf, which defaults to 60 seconds in Apache 2.4. For example:

TimeOut 600

Here is how I was able to find the root cause of my issue.

python manage.py showmigrations

My app could not reach the database server, so it would eventually time out. Running manage.py I could see see the error message on the console.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!