Upgrade ListMonk failed

My YunoHost server :uk:

Hardware: Hand made bare metal, Xeon E31270, 32Go Ram, RAID ZFS, SSD for OS
YunoHost version: 11.2.7
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: ynh.data on raidz ZFS
If your request is related to an app, specify its name and version: listmonk 2.3.0~ynh3

Description of my issue

Trying to upgrade Listmonk 2.3.0~ynh3 to 2.5.1~ynh3, I have an error related to database upgrade.
I don’t know Listmonk or the upgrade system to investigate more.
Is it necessary to go to an intermediate version as it is the case for Nextcloud (25>26>27) ?

2023-11-29 00:47:32,799: DEBUG - + ./listmonk --upgrade
2023-11-29 00:47:32,805: DEBUG - 2023/11/29 00:47:32 main.go:102: v2.5.1 (a6a2b69 2023-08-15T15:49:28Z, linux/amd64)
2023-11-29 00:47:32,806: DEBUG - 2023/11/29 00:47:32 init.go:145: reading config: config.toml
2023-11-29 00:47:32,806: DEBUG - 2023/11/29 00:47:32 init.go:273: connecting to db: localhost:5432/listmonk
2023-11-29 00:47:32,849: DEBUG - ** IMPORTANT: Take a backup of the database before upgrading.
2023-11-29 00:47:32,849: DEBUG - continue (y/n)?  2023/11/29 00:47:32 upgrade.go:70: running migration v2.3.0

2023-11-29 00:47:32,857: DEBUG - 2023/11/29 00:47:32 upgrade.go:72: error running migration v2.3.0: pq: une instruction insert ou update sur la table « campaigns » viole la contrainte de clé

2023-11-29 00:47:32,857: DEBUG - étrangère « campaigns_archive_template_id_fkey »
2023-11-29 00:47:32,858: DEBUG - + ynh_exit_properly
2023-11-29 00:47:32,859: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2023-11-29 00:47:34,364: ERROR - Impossible de mettre à jour listmonk : Une erreur s'est produite durant l'exécution du script de mise à niveau de l'application

Full log here : https://paste.yunohost.org/raw/jezatilixa

Any help will be welcome.


Mon serveur YunoHost :fr:

Matériel: Serveur monté main, Xeon E31270, 32Go Ram, RAID ZFS, SSD pour l’OS
Version de YunoHost: 11.2.7
J’ai accès à mon serveur : SSH | webadmin | direct
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : oui
Si oui, expliquer: ynh.app sur un raid ZFS
Si votre requête est liée à une application, précisez son nom et sa version: listmonk 2.3.0~ynh3

Description du problème

Lors de la mise à jour de Listmonk, 2.3.0~ynh3 à 2.5.1~ynh3, il semble y avoir une erreur dans la procédure de mise à jour de la base de donnée.
Malheureusement je ne connais pas assez Listmonk et/ou le système de mise à jour pour approfondir.
Faut-il passer par une version intermédiaire comme pour Nextcloud (25>26>27) ?

2023-11-29 00:47:32,799: DEBUG - + ./listmonk --upgrade
2023-11-29 00:47:32,805: DEBUG - 2023/11/29 00:47:32 main.go:102: v2.5.1 (a6a2b69 2023-08-15T15:49:28Z, linux/amd64)
2023-11-29 00:47:32,806: DEBUG - 2023/11/29 00:47:32 init.go:145: reading config: config.toml
2023-11-29 00:47:32,806: DEBUG - 2023/11/29 00:47:32 init.go:273: connecting to db: localhost:5432/listmonk
2023-11-29 00:47:32,849: DEBUG - ** IMPORTANT: Take a backup of the database before upgrading.
2023-11-29 00:47:32,849: DEBUG - continue (y/n)?  2023/11/29 00:47:32 upgrade.go:70: running migration v2.3.0

2023-11-29 00:47:32,857: DEBUG - 2023/11/29 00:47:32 upgrade.go:72: error running migration v2.3.0: pq: une instruction insert ou update sur la table « campaigns » viole la contrainte de clé

2023-11-29 00:47:32,857: DEBUG - étrangère « campaigns_archive_template_id_fkey »
2023-11-29 00:47:32,858: DEBUG - + ynh_exit_properly
2023-11-29 00:47:32,859: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2023-11-29 00:47:34,364: ERROR - Impossible de mettre à jour listmonk : Une erreur s'est produite durant l'exécution du script de mise à niveau de l'application

Logs complets ici : https://paste.yunohost.org/raw/jezatilixa

Toute aide serait la bienvenue.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.