Truncated or oversized response headers received from daemon process

后端 未结 8 2133
伪装坚强ぢ
伪装坚强ぢ 2021-01-11 12:50

I recently migrated a python django application from a debian system to a redhat enterprise distribution. The application is hosted using httpd, mod_wsgi and running in a ve

8条回答
  •  感情败类
    2021-01-11 13:20

    We recently ran into this issue, and after days of vigorous ugoogleizing and massive headache, we discovered that we were using psycopg2-binary as our database connector dependency (I know, newbs)! It states right in their documentation not to use the package in a production environment.

    We did add all the other proposed answers such as adding 'WSGIApplicationGroup %{GLOBAL}' to our settings (which we kept), but all of them alone and together didn't solve the issue.

    We also found that other C libraries like numpy, cause issues.

    Hope this helps someone some day.

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

    http://initd.org/psycopg/docs/install.html#prerequisites

提交回复
热议问题