Apache2 + Django 1.11.22-final + WSGI + error

Created: April 25, 2020, 3:13 p.m.
Update: Aug. 9, 2020, 4:26 a.m.
Apache2 + Django 1.11.22-final + WSGI + error

Docs

https://modwsgi.readthedocs.io/en/develop/index.html
https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
https://rhodesmill.org/brandon/slides/2014-07-pyohio/strace/
https://github.com/GrahamDumpleton/mod_wsgi/issues/228
https://code.google.com/archive/p/modwsgi/issues/29
https://groups.google.com/forum/#!topic/modwsgi/ycwTB7wQz_8
https://stackoverflow.com/questions/4557920/why-is-mod-wsgi-not-able-to-write-data-ioerror-failed-to-write-data

Strace

https://help.directadmin.com/item.php?id=2076
https://www.commandlinefu.com/commands/view/8097/easily-strace-all-your-apache-processes

Environment

A Ubuntu Server, Django and wsgi stop/fail after 1h30 
After one hour and half, apache2 wsgi fail!
Why restart apache2 to fix?

Strace command to log apache2 process

Find strings
UUID __init__
save line
process ID

Log - traceback

Internal Server Error: /
ValidationError at / [u"'da2eee80-bafc-4d10-bf83-66897081cce2' is not a valid UUID."]

After strace apache2

$ find . -type f -size 0 -exec ls -la '{}' \;
-rw-r--r-- 1 root root 0 Apr 25 14:16 ./strace.88550.log
-rw-r--r-- 1 root root 0 Apr 25 14:16 ./strace.88553.log
-rw-r--r-- 1 root root 0 Apr 25 14:16 ./strace.88554.log
-rw-r--r-- 1 root root 0 Apr 25 14:16 ./strace.88551.log
-rw-r--r-- 1 root root 0 Apr 25 14:16 ./strace.88552.log
-rw-r--r-- 1 root root 0 Apr 25 14:16 ./strace.88548.log
-rw-r--r-- 1 root root 0 Apr 25 14:16 ./strace.88555.log
-rw-r--r-- 1 root root 0 Apr 25 14:16 ./strace.88549.log

Tiago de Souza Moraes - teago.futuria.com.br - 2020 // CSS by UIKIT CSS