mod_wsgi icon indicating copy to clipboard operation
mod_wsgi copied to clipboard

Truncated or oversized response headers received from daemon process

Open NirmalkumarU opened this issue 11 months ago • 1 comments

Hi,

I'm working in django project using apache2 in centos , django 3.2.25 and mod_wsgi 5.0.0. while processing large files with pandas and numpy, i encounter the following error in error.log file "Truncated or oversized response headers received from daemon process ". and entire server becomes unresponsive, returning a 408 "Request timeout" error.

WSGIDaemonProcess site1 python-path=<production_python_path> home=<production_python_path> processes=3 threads=10 request-timeout=2400 WSGIProcessGroup site1 WSGIScriptAlias /site1 <production_python_wsgi_file_path> TimeOut 2400 WSGIApplicationGroup %{GLOBAL}

Please help me to sort out this issue.

Thanks in advace

NirmalkumarU avatar Dec 27 '24 07:12 NirmalkumarU

What version of Python are you using?

I also need to see the actual log messages from around the time this occurs. If you are using per virtual host log files in Apache, also check the main Apache error log for messages related to process restarts.

You may need to set LogLevel in Apache to info, if you only have it set to warn, to get the log messages I would need to see to debug the underlying trigger for this.

GrahamDumpleton avatar Dec 29 '24 02:12 GrahamDumpleton