On 6/21/24 02:07, Mark wrote:
...The mmdf files don't exist in the list's directory although there have been many posts to the list throughout the day.
On 2024-06-21 15:55, Mark Sapiro wrote:
Assuming your mailman/app/digests.py is unmodified, there is some race condition. The code beginning at https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/app/digests.py?... finds the file and size is > 0, but by the time it gets to https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/app/digests.py?... the file is gone.
What other crons run at the same time?
The digest.py file is out-of-the-box and unmodified.
ls -la /opt/mailman/venv/lib/python3.11/site-packages/mailman/app/ ... -rw-r--r-- 1 mailman mailman 4642 Jan 30 08:06 digests.py
The /var/log/cron.log shows the crons running at the same time as digest at 22:30 hours.
# tail -f cron.log ... 2024-06-21T22:30:01.368407+00:00 deu CRON[3422196]: (root) CMD (sh /templates/mailman_custom_templates.sh > /dev/null) 2024-06-21T22:30:01.369050+00:00 deu CRON[3422197]: (mailman) CMD (/opt/mailman/venv/bin/mailman-web runjobs quarter_hourly) 2024-06-21T22:30:01.371586+00:00 deu CRON[3422198]: (mailman) CMD (/opt/mailman/venv/bin/mailman notify) 2024-06-21T22:30:01.371878+00:00 deu CRON[3422199]: (mailman) CMD (/opt/mailman/venv/bin/mailman digests --periodic) 2024-06-21T22:30:01.372190+00:00 deu CRON[3422202]: (mailman) CMD (/opt/mailman/venv/bin/mailman-web runjobs minutely)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
The mailman crons are more or less out-of-the-box:
MAILTO=imark@posteo.net 30 22 * * * /opt/mailman/venv/bin/mailman digests --periodic 30 22 * * * /opt/mailman/venv/bin/mailman notify #@daily /opt/mailman/venv/bin/mailman digests --periodic #@daily /opt/mailman/venv/bin/mailman notify #
0,15,30,45 * * * * /opt/mailman/venv/bin/mailman-web runjobs quarter_hourly @hourly /opt/mailman/venv/bin/mailman-web runjobs hourly @daily /opt/mailman/venv/bin/mailman-web runjobs daily @weekly /opt/mailman/venv/bin/mailman-web runjobs weekly @monthly /opt/mailman/venv/bin/mailman-web runjobs monthly @yearly /opt/mailman/venv/bin/mailman-web runjobs yearly/opt/mailman/venv/bin/mailman-web runjobs minutely
The root cron just runs a bash script every 5 minutes to copy custom templates from the mailman and mailmanweb databases and write them to files.
...