We're having an issue with a Flask application running under mod_wsgi-express on a Mac mini. 2 of them actually and they both have the same issue. The application runs fine for a while (a week or a few days) and then users see a Forbidden message. We then have to kill apache and restart it using flask/bin/mod_wsgi-express start-server --port 5000 ./wsgi.py &. It starts up fine and runs until the next failure. The error_log looks like this prior to failure:
[Tue Jan 23 06:56:02.435292 2018] [access_compat:error] [pid 7740] [client 192.168.100.5:57279] AH01797: client denied by server configuration: /tmp/mod_wsgi-localhost:5000:501/htdocs [Tue Jan 23 06:56:28.573308 2018] [access_compat:error] [pid 7609] [client 192.168.100.5:57280] AH01797: client denied by server configuration: /tmp/mod_wsgi-localhost:5000:501/htdocs [Tue Jan 23 06:57:13.220948 2018] [access_compat:error] [pid 7740] [client 192.168.100.5:57282] AH01797: client denied by server configuration: /tmp/mod_wsgi-localhost:5000:501/htdocs [Tue Jan 23 06:57:15.918491 2018] [access_compat:error] [pid 7609] [client 192.168.100.5:57283] AH01797: client denied by server configuration: /tmp/mod_wsgi-localhost:5000:501/htdocs [Tue Jan 23 06:57:35.765019 2018] [mpm_prefork:notice] [pid 5343] AH00169: caught SIGTERM, shutting down [Tue Jan 23 06:57:38.498538 2018] [mpm_prefork:notice] [pid 7753] AH00163: Apache/2.4.18 (Unix) mod_wsgi/4.5.5 Python/2.7.10 configured -- resuming normal operations [Tue Jan 23 06:57:38.498826 2018] [core:notice] [pid 7753] AH00094: Command line: 'httpd (mod_wsgi-express) -f /tmp/mod_wsgi-localhost:5000:501/httpd.conf -D FOREGROUND' -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
