Mub*_*Ali 5 python mod-wsgi apache2
我的 wsgi 应用程序部署在 apache 上,使用 mod_wsgi 抛出 error mod_wsgi (pid=25927): Request data read error when proxying data to daemon process: The timeout specified has expired。我的应用程序现在正在生产中。此错误每天发生四/五次。我的apache2配置
<VirtualHost *:80>
ServerName 127.0.0.1
ServerAlias www.example.com
WSGIDaemonProcess my_wsgi_api processes=2 threads=15 display-name=my_wsgi_api
WSGIScriptAlias /my_wsgi_app /opt/my_wsgi_app/start_server.wsgi
#DocumentRoot /opt/my_wsgi_app/
<Directory /opt/my_wsgi_app>
allow from all
Require all granted
WSGIProcessGroup my_wsgi_api
</Directory>
ErrorLog ${APACHE_LOG_DIR}/my_wsgi_api_error.log
CustomLog ${APACHE_LOG_DIR}/my_wsgi_api_access.log combined
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
完整日志显示
mod_wsgi (pid=25927): Request data read error when proxying data to daemon process: The timeout specified has expired.
ERROR:root:API_ERROR : Apache/mod_wsgi request data read error: Input is already in error state.
ERROR:root:API_HANDLER_EXCEPTION : local variable 'params' referenced before assignment
mod_wsgi (pid=25923): Exception occurred processing WSGI script '/opt/my_wsgi_app/start_server.wsgi'.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2218 次 |
| 最近记录: |