[Pkg-mailman-hackers] Bug#1082541: mailman3-web: Cronjob reports warnings every minute after clean install
Antoine Beaupré
anarcat at debian.org
Tue Oct 29 16:22:17 GMT 2024
forcemerge 1082541 1051617
severity 1082541 important
found 1082541 0+20200530-2.1
fixed 1082541 0+20240312-1
forwarded 1082541 https://gitlab.com/mailman/mailman/-/issues/957
I'm getting this as well. It looks like this is an upstream issue, with
a relatively simple workaround. I've added this to our configuration:
DEFAULT_AUTO_FIELD='django.db.models.AutoField'
Q_CLUSTER = {
'timeout': 300,
'retry': 600,
'save_limit': 100,
'orm': 'default',
'poll': 5,
}
And it fixes both warnings. Those have been fixed upstream, in fact, and
probably are gone from trixie.
a.
On 2024-09-21 20:30:37, Jens Kutilek wrote:
> Package: mailman3-web
> Version: 0+20200530-2.1
> Severity: normal
>
> Dear Maintainer,
>
> I did a first-time install of mailman3-web (along with mailman3 and
> mailman-full) on bookworm.
>
> After installation, I get an e-mail from a cronjob every minute that
>
> a) Retry and timeout are misconfigured in django_q
> b) Warnings apparently about the database used by mailman3-web
>
> It's quite annoying to get those mails every minute, and it's also not
> clear if I could do anything to fix those problems myself.
>
> The mail:
>
> Subject: "Cron <www-data at pwr> [ -f /usr/bin/django-admin ] && flock -n /var/run/mailman3-web/cron.hourly /usr/share/mailman3-web/manage.py runjobs {minutely | hourly ...}"
>
> /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.
> warn(
> 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'.
> django_mailman3.Profile: (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'.
> hyperkitty.Attachment: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.Email: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.Favorite: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.LastView: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.MailingList: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.Profile: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.Tag: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.Tagging: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.Thread: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.ThreadCategory: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> hyperkitty.Vote: (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 HyperKittyConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> postorius.EmailTemplate: (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 PostoriusConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
>
>
> -- System Information:
> Debian Release: 12.7
> APT prefers stable-updates
> APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 6.1.0-25-amd64 (SMP w/8 CPU threads; PREEMPT)
> Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages mailman3-web depends on:
> ii dbconfig-mysql 2.0.24
> ii debconf [debconf-2.0] 1.5.82
> ii init-system-helpers 1.65.2
> ii lsb-base 11.6
> ii python3 3.11.2-1+b1
> ii python3-django-hyperkitty 1.3.7-1
> ii python3-django-postorius 1.3.8-3
> ii python3-mysqldb 1.4.6-2+b1
> ii python3-psycopg2 2.9.5-1+b1
> ii python3-whoosh 2.7.4+git6-g9134ad92-7
> ii sysvinit-utils [lsb-base] 3.06-4
> ii ucf 3.0043+nmu1
> ii uwsgi-core 2.0.21-5.1
> ii uwsgi-plugin-python3 2.0.21-5.1
>
> Versions of packages mailman3-web recommends:
> ii libapache2-mod-proxy-uwsgi 2.4.62-1~deb12u1
>
> Versions of packages mailman3-web suggests:
> ii mariadb-server [virtual-mysql-server] 1:10.11.6-0+deb12u1
>
> -- Configuration Files:
> /etc/cron.d/mailman3-web changed [not included]
>
> -- debconf information:
> mailman3-web/upgrade-error: abort
> mailman3-web/superuser-mail: root at localhost
> mailman3-web/mysql/method: Unix socket
> * mailman3-web/mysql/admin-user: debian-sys-maint
> mailman3-web/superuser-name: admin
> mailman3-web/restart-webserver: true
> mailman3-web/pgsql/authmethod-user: password
> mailman3-web/purge: false
> mailman3-web/dbconfig-upgrade: true
> mailman3-web/dbconfig-remove: true
> mailman3-web/remote/port:
> mailman3-web/dbconfig-reinstall: false
> mailman3-web/emailname: localhost.local
> mailman3-web/pgsql/authmethod-admin: ident
> mailman3-web/remote/newhost:
> mailman3-web/internal/reconfiguring: false
> mailman3-web/passwords-do-not-match:
> * mailman3-web/dbconfig-install: true
> mailman3-web/pgsql/method: TCP/IP
> mailman3-web/configure-webserver: none
> mailman3-web/pgsql/admin-user: postgres
> mailman3-web/nginx-choice:
> mailman3-web/pgsql/manualconf:
> * mailman3-web/database-type: mysql
> mailman3-web/remote/host: localhost
> mailman3-web/pgsql/no-empty-passwords:
> mailman3-web/mysql/authplugin: default
> mailman3-web/db/basepath: /var/lib/mailman3/web
> mailman3-web/missing-db-package-error: abort
> mailman3-web/install-error: abort
> mailman3-web/upgrade-backup: true
> mailman3-web/pgsql/changeconf: false
> mailman3-web/db/app-user: mailman3web at localhost
> mailman3-web/internal/skip-preseed: false
> mailman3-web/db/dbname: mailman3web
> mailman3-web/remove-error: abort
--
A lot of people never use their initiative because no-one told them to.
- Banksy
More information about the Pkg-mailman-hackers
mailing list