Actions
Bug #809
closedorfeo /var/mail/www-data "error writing message: File too large"
Start date:
2025-02-27
Due date:
% Done:
100%
Estimated time:
Patch Available:
Confirmed:
Yes
Branch:
Entity:
DuckCorp
Security:
Help Needed:
No
Description
root@Orfeo:~# journalctl -u postfix@-.service -g "File too large" | head -n 1 Feb 25 08:18:03 Orfeo postfix/local[1462103]: 4Z288B4yX8z2J6Q: to=<www-data@Orfeo.duckcorp.org>, orig_to=<www-data>, relay=local, delay=1.1, delays=1.1/0.01/0/0.03, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/www-data for user www-data. error writing message: File too large)
root@Orfeo:~# ls -lh /var/mail/www-data -rw------- 1 www-data mail 31M Feb 27 00:12 /var/mail/www-data
Updated by Pierre-Louis Bonicoli about 1 month ago
- Category changed from Org :: Admin to Service :: Mail
- Status changed from In Progress to Resolved
- % Done changed from 50 to 100
The mailman3-web cron task (
[ -f /usr/bin/django-admin ] && flock -n /var/run/mailman3-web/cron.minutely /usr/share/mailman3-web/manage.py runjobs minutely
) was filling the mailbox due to 2 issues:
/usr/lib/python3/dist-packages/django_q/conf.py:139: UserWarning: Retry and timeout are misconfigured. Set retry larger than timeout, failure to do so will cause the tasks to be retriggered before completion. See https://django-q.readthedocs.io/en/latest/configure.html#retry for details.
System check identified some issues: WARNINGS: django_mailman3.MailDomain: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the DjangoMailman3Config.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
/etc/mailman3/mailman-web.py
has been updated with:
DEFAULT_AUTO_FIELD='django.db.models.AutoField' Q_CLUSTER = { 'timeout': 45, # retry default value is 60 seconds, timeout must be smaller # see /usr/lib/python3/dist-packages/django_q/conf.py TIMEOUT/RETRY }
After this update, the cron task has no output.
`/etc/mailman3/mailman-web.py` isn't generated by ansible.
Actions