FWIW. I have created: * https://github.com/GrahamDumpleton/mod_wsgi/issues/260 <https://github.com/GrahamDumpleton/mod_wsgi/issues/260>
to have it use value of $TMPDIR rather than /tmp. On MacOS that should result in special directory down under /var/tmp being used and cron shouldn't delete it. Graham > On 23 Jan 2018, at 8:21 pm, Graham Dumpleton <graham.dumple...@gmail.com> > wrote: > > Use the --server-root option to have the files generated by mod_wsgi-express, > generated into a directory other than under /tmp. > > On some system setups, cron jobs exist that will delete files under /tmp that > are older than a certain date. This can cause the failure. > > Graham > >> On 23 Jan 2018, at 8:17 pm, Teemu Korpijaakko <tko...@gmail.com >> <mailto:tko...@gmail.com>> wrote: >> >> 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 modwsgi+unsubscr...@googlegroups.com >> <mailto:modwsgi+unsubscr...@googlegroups.com>. >> To post to this group, send email to modwsgi@googlegroups.com >> <mailto:modwsgi@googlegroups.com>. >> Visit this group at https://groups.google.com/group/modwsgi >> <https://groups.google.com/group/modwsgi>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > -- 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 modwsgi+unsubscr...@googlegroups.com. To post to this group, send email to modwsgi@googlegroups.com. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.