Bonjour à toutes et tous,
Mon serveur YunoHost
Matériel: VPS KS-3 de chez Kimsufi
Version de YunoHost:
# yunohost --version
yunohost:
repo: stable
version: 11.2.7
yunohost-admin:
repo: stable
version: 11.2.3
moulinette:
repo: stable
version: 11.2
ssowat:
repo: stable
version: 11.2
J’ai accès à mon serveur : En SSH et par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non, juste un upgrade classique via la webadmin comme je le fais très régulièrement.
Description du problème
L’application Synapse a été supprimée de mon serveur lors d’un upgrade.
2023-11-26 18:47:17,915: DEBUG - ++ yunohost app remove synapse
2023-11-26 18:47:20,139: DEBUG - Suppression de synapse...
2023-11-26 18:47:20,837: WARNING - sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
2023-11-26 18:47:21,218: DEBUG - [+...................] > Loading installation settings...
2023-11-26 18:47:29,405: DEBUG - [#+..................] > Stopping and removing the systemd service
2023-11-26 18:47:38,238: DEBUG - [##+.................] > Removing the PostgreSQL database
2023-11-26 18:47:43,731: DEBUG - [###++++++++.........] > Removing dependencies
2023-11-26 18:48:11,052: WARNING - insserv: script noderige: service noderig already provided!
2023-11-26 18:48:19,696: DEBUG - [###########+........] > Removing app main directory
2023-11-26 18:48:21,858: DEBUG - [############+.......] > Removing NGINX web server configuration
2023-11-26 18:48:25,718: DEBUG - [#############+......] > Removing logrotate configuration
2023-11-26 18:48:26,879: DEBUG - [##############......] > Closing port 8448
2023-11-26 18:48:32,044: DEBUG - [##############+.....] > Closing port 5349
2023-11-26 18:48:35,472: DEBUG - [###############.....] > Closing port 5350
2023-11-26 18:48:38,050: DEBUG - [###############+++++] > Removing Fail2Ban configuration...
2023-11-26 18:48:40,790: DEBUG - [####################] > Removing the dedicated system user
2023-11-26 18:49:16,801: WARNING - FreshRSS error: username not found “synapse”
2023-11-26 18:49:17,809: WARNING - Échec de l'exécution du script : /etc/yunohost/hooks.d/post_user_delete/50-freshrss
2023-11-26 18:49:18,112: DEBUG - Due of the backup core only feature the data directory in '/home/yunohost.app/matrix-synapse' was not removed. It need to be removed manually to purge app user data.
2023-11-26 18:49:18,368: DEBUG - [####################] > Removal of synapse completed
2023-11-26 18:49:26,067: DEBUG - synapse désinstallé
2023-11-26 18:49:32,050: DEBUG - L'opération 'Enlever l'application 'synapse'' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20231126-184720-app_remove-synapse'
2023-11-26 18:49:32,097: WARNING - Cette action a laissé des paquets non configurés par dpkg/apt (les gestionnaires de paquets du système) ... Vous pouvez essayer de résoudre ce problème en vous connectant via SSH et en exécutant `sudo apt install --fix-broken` et/ou `sudo dpkg --configure -a`.
2023-11-26 18:49:32,325: DEBUG - ++ yunohost backup restore synapse-pre-upgrade1 --apps synapse --force --debug
2023-11-26 18:49:33,017: DEBUG - 525 initializing base actions map parser for cli
2023-11-26 18:49:33,022: DEBUG - 530 loading actions map
2023-11-26 18:49:33,026: DEBUG - 534 building parser...
2023-11-26 18:49:33,048: DEBUG - 556 building parser took 0.022s
2023-11-26 18:49:33,054: DEBUG - 562 acquiring lock...
2023-11-26 18:49:33,777: DEBUG - 1285 loading python module yunohost.backup took 0.674s
2023-11-26 18:49:33,779: DEBUG - 1286 processing action [3158110.1]: yunohost.backup.restore with args={'name': 'synapse-pre-upgrade1', 'system': None, 'apps': ['synapse'], 'force': True}
2023-11-26 18:49:33,804: DEBUG - 1311 action [3158110.1] executed in 0.025s
2023-11-26 18:49:33,805: WARNING - 1312 Cette sauvegarde ne peut pas être restaurée car elle provient d'une version de YunoHost trop ancienne.
2023-11-26 18:49:33,987: DEBUG - ++ [[ -d /etc/yunohost/apps/synapse ]]
2023-11-26 18:49:33,990: DEBUG - ++ ynh_die '--message=Uhoh ... Yunohost failed to restore the app to the way it was before the failed upgrade :|'
2023-11-26 18:49:34,066: DEBUG - ++ echo 'Uhoh ... Yunohost failed to restore the app to the way it was before the failed upgrade :|'
2023-11-26 18:49:34,068: DEBUG - ++ exit 1
2023-11-26 18:49:34,069: WARNING - Uhoh ... Yunohost failed to restore the app to the way it was before the failed upgrade :|
2023-11-26 18:49:35,076: ERROR - Impossible de mettre à jour synapse : Une erreur s'est produite durant l'exécution du script de mise à niveau de l'application
Voici les logs complets de l’upgrade : https://paste.yunohost.org/raw/tagosogisa
J’ai trouvé plusieurs choses qui peuvent correspondre à mon problème :
- Upgrading from 1.59.0~ynh1 to 1.94.0~ynh1 fails · Issue #425 · YunoHost-Apps/synapse_ynh · GitHub
- Synapse upgrade failed with error - #11 by Artanux
Dans les deux cas, la solution proposée consiste à passer en version 11.2.7 de Yunohost, ce que j’ai fait. J’ai voulu ensuite restaurer le backup de Synapse avant de faire un nouvel upgrade mais ça ne marche pas (il me dit que le backup a été réalisé sur une version ancienne de Yunohost…).
Est-ce que je peux simplement réinstaller Synapse ? Vais-je récupérer mes données ?
Le dossier ‘/home/yunohost.app/matrix-synapse/’ existe toujours en tout cas.
# ls -al /home/yunohost.app/matrix-synapse/
total 16
drwxr-xr-x 4 993 root 4096 Jan 28 2021 .
drwxr-xr-x 6 root root 4096 Sep 14 2022 ..
drwxr-xr-x 8 993 root 4096 Jan 29 2021 media
drwxr-xr-x 2 993 root 4096 Jan 28 2021 media_storage
Merci d’avance