小编Mub*_*Ali的帖子

mod_wsgi :将数据代理到守护进程时请求数据读取错误

我的 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 …
Run Code Online (Sandbox Code Playgroud)

python mod-wsgi apache2

5
推荐指数
0
解决办法
2218
查看次数

标签 统计

apache2 ×1

mod-wsgi ×1

python ×1