short addendum: I was able to correct the following warnings when performing database operations on the mailman-web database:
/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.
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'.
on our Debian 12 system in file </etc/mailman/mailman-web.cfg>:
Q_CLUSTER = {
'orm': 'default',
'retry': 360,
'save_limit': 100,
'timeout': 300,
'worker': 2
}
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
Best Markus
Am 26.03.24 um 08:06 schrieb Markus Grandpré:
Dear Mr Sapiro,
thank you very much for your help. The required command is:
# mailman-web hyperkitty_import
-l mailman21-migration-test-04@mailman.uni-konstanz.de
/var/mailman21/testlist.mboxDue to the following warnings, I still have to customize Hyperkitty:
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'. ...
Can you give me another hint? As Linux admin I installed the packages mailman and mailman-web that were offered to me under Debian 12. Although during the installation of the packages user "list" was created, I cannot use it:
# su - list This account is currently not available
As with Mailman 2.1, I will probably have to continue working with Mailman3 as root. Too bad that there is no documentation for Debian admins like me, who don't want to dive too deep into the python framework. Or have I overlooked something?
Best regards, Markus
Am 25.03.24 um 18:56 schrieb Mark Sapiro:
On 3/25/24 07:58, Markus Grandpre wrote:
Dear list members,
when following the instructions to migrate list archives from Mailman21 to Mailman3 (see [1]), I face the following problem:
# python3 manage.py hyperkitty_import -l mailman21-migration-test-04 /var/mailman21/testlist.mbox python3: can't open file '/var/mailman21/manage.py': [Errno 2] No such file or directory
and have no clue, where to find the right <manage.py> file. The command
This depends on how you installed Mailman 3. You may or may not want
python3 manage.py
at all. The required command could be something likedjango-admin
ormailman-web
.Also the
#
prompt indicates you may be running as root. Mailman related commands should be run as the Mailman user (could bemailman
orlist
or ... depending again on how you installed Mailman). Running as root can create files owned by root that later can't be read by the Mailman user.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to markus.grandpre@uni-konstanz.de
-- Markus Ludwig Grandpré Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung IT-Dienste Forschung und Lehre, B803, Tel: ++49 7531 88 4342