[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Est-il possible de passer de Debian 11 à Debian 12 avec Mailman3 ?




Le 21 déc. 2023 à 00:16, Pierre-Elliott Bécue <peb@debian.org> a écrit :


Pierre Malard <pierre.malard@teledetection.fr> wrote on 20/12/2023 at 09:42:29+0100:

[[PGP Signed Part:No public key for FE94961EE69DFC18 created at 2023-12-20T09:42:29+0100 using RSA]]
Salut,

Est-il possible de passer de Debian 11 à Debian 12 avec Mailman3 installé sur Debian 11 ?

Je précise que je souhaite rester dans les dépôts Debian, pas une installation "à la main" de MM3.

J'ai testé sur un serveur spécifique. C'était long et fastidieux mais il me semblait que ça fonctionnait. En fait tout semble fonctionner sauf
la gestion des archives :-(

Voici la procédure suivie :

1 Arrêt des services MM3
2 Sauvegarde de la base de données (PostgreSQL) et du répertoire de base MM3
3 Basculez le serveur de Debian 11 vers Debian 12 et redémarrer
4 migrer la base de données du PG 13 vers le PG 15 (pg_upgradecluster 13 le fait très bien)
5 Modifier le fichier /etc/mailman3/mailman.cfg avec une référence URL "postgresql://" au lieu de "postgres://" (voir
https://lists.mailman3.org/archives/list/ mailman-users@mailman3 .org/thread/CU6YU44V4WLRJI3WJH2VBWO2HCUF4YEA/)
6 mettre à jour les bases de données MM3 avec "mailman-web migrate"
7 redémarrer MM3 et MM3-web

Avec ça MM3 fonctionne mais pas la gestion de l'archivage !
Notez qu’il n’y a pas de véritables messages d’erreur dans les journaux…

En fait quand on va sur une archive de liste, on a de jolies roues d'attente... infinies :-(
La seule référence dans mailman3-web.log :
[pid : 1429|app : 0|req : 12/12] NNN.NNN.NNN.NNN () {68 vars dans 1445 octets} [lundi 18 décembre 16:35:56 2023] GET
/hyperkitty/list/admin@ teledetection.fr/ => généré 37443 octets en 37 msecs (HTTP/1.1 200) 7 en-têtes en 221 octets (1 switch sur core
1)

Si vous avez une solution...

Pour une raison que j'ignore, l'appel à django-admin migrate dans le
script de maintenance post upgrade ne se passe pas toujours.

J'ai commencé à creuser, mais pour l'instant sans succès, faute
d'environnements où ça foire pour moi.

Si tu as des traces ou infos je suis preneur, vu que j'aimerais bugfixer
ça pour faire une release en Debian 12 qui ne rencontre plus ce souci.

Bonjour et merci à toi,

Voici ce que m’a donné l’exécution de « mailman-web upgrade » :
  # mailman-web migrate
    /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. 
    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'.
  Operations to perform:
    Apply all migrations: account, admin, auth, contenttypes, django_mailman3, django_q, hyperkitty, postorius, sessions, sites, socialaccount
  Running migrations:
    Applying auth.0012_alter_user_first_name_max_length... OK
    Applying django_q.0010_auto_20200610_0856... OK
    Applying django_q.0011_auto_20200628_1055... OK
    Applying django_q.0012_auto_20200702_1608... OK
    Applying django_q.0013_task_attempt_count... OK
    Applying django_q.0014_schedule_cluster... OK
    Applying hyperkitty.0022_mailinglist_archive_rendering_mode... OK
    Applying hyperkitty.0023_alter_mailinglist_name... OK

Si ça peut t’aider…

Bonne journée

-- 
Pierre Malard
Responsable architectures système CDS DINAMIS/THEIA Montpellier
IRD - UMR Espace-Dev - UAR CPST - IR Data-Terra
Maison de la Télédétection
500 rue Jean-François Breton
34093 Montpellier Cx 5
France

   « Tous les Français ambitionnent pour la France un grand rôle
   dans le monde. Ce n'est point par des aventures guerrières qu'elle
   le trouvera, c'est en donnant aux peuples l'exemple et le signal
   de justice. »
                                            Jean Jaures - "L'idéal de justice" - 1889
   |\      _,,,---,,_
   /,`.-'`'    -.  ;-;;,_
  |,4-  ) )-,_. ,\ (  `'-'
 '---''(_/--'  `-'\_)   πr

perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'"'"'`'"'"' 5-.  ;-;;,_:  |,A-  ) )-,_. ,\ (  `'"'"'-'"'"': '"'"'-3'"'"'2(_/--'"'"'  `-'"'"'\_): 24πr::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'
- --> Ce message n’engage que son auteur <--

Attachment: signature.asc
Description: Message signed with OpenPGP


Reply to: