Erreur lors de mise à jour des applications

Bonjour !

Mon serveur YunoHost

Matériel: / Brique Internet avec VPN /
Version de YunoHost: 11.0.9.13
J’ai accès à mon serveur : En SSH | Par la webadmin |

Description du problème

J’ai récemment fait la migration yunohost 4 vers yunohost 11 suivie de différentes mises à jour system notamment de yunohost.
Ce matin l’utilitaire de mise à jour m’a proposé des mises à jour d’applications pour my_webapp, nextcloud et rainloop.
La mise à jour s’interrompt, très proprement, mais ne fait pas les mises à jour.

Merci d’avance pour votre aide.

Copie du journal lors de la tentative de mise à jour de rainloop :

ended_at: 2022-09-06 14:59:58.309602
env:
  BASH_XTRACEFD: '7'
  NO_BACKUP_UPGRADE: '0'
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_faha3a7d
  YNH_APP_CURRENT_VERSION: 1.16.0~ynh4
  YNH_APP_ID: rainloop
  YNH_APP_INSTANCE_NAME: rainloop
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 1.17.0~ynh1
  YNH_APP_UPGRADE_TYPE: UPGRADE_FULL
  YNH_ARCH: armhf
  YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_faha3a7d/scripts
  YNH_INTERFACE: api
  YNH_STDRETURN: /tmp/tmplah19uoj/stdreturn
error: "Une erreur s'est produite durant l'ex\xE9cution du script de mise \xE0 niveau\
  \ de l'application"
interface: api
operation: app_upgrade
parent: null
related_to:
- - app
  - rainloop
started_at: 2022-09-06 14:59:44.779974
success: false
yunohost_version: 11.0.9.13

============

2022-09-06 16:59:45,011: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
2022-09-06 16:59:45,061: DEBUG - + source _common.sh
2022-09-06 16:59:45,064: DEBUG - ++ YNH_PHP_VERSION=7.4
2022-09-06 16:59:45,066: DEBUG - ++ pkg_dependencies='php7.4-json php7.4-curl php7.4-xml php7.4-dom'
2022-09-06 16:59:45,069: DEBUG - + source /usr/share/yunohost/helpers
2022-09-06 16:59:45,079: DEBUG - +++ set +o
2022-09-06 16:59:45,081: DEBUG - +++ grep xtrace
2022-09-06 16:59:45,095: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2022-09-06 16:59:45,097: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2022-09-06 16:59:46,334: INFO - [+...................] > Loading installation settings...
2022-09-06 16:59:46,352: DEBUG - + app=rainloop
2022-09-06 16:59:46,355: DEBUG - ++ ynh_app_setting_get --app=rainloop --key=domain
2022-09-06 16:59:46,357: DEBUG - ++ local _globalapp=rainloop
2022-09-06 16:59:46,684: DEBUG - ++ app=rainloop
2022-09-06 16:59:46,687: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2022-09-06 16:59:46,689: DEBUG - ++ ynh_app_setting get rainloop domain
2022-09-06 16:59:47,292: DEBUG - + domain=maindomain.tld
2022-09-06 16:59:47,296: DEBUG - ++ ynh_app_setting_get --app=rainloop --key=path
2022-09-06 16:59:47,303: DEBUG - ++ local _globalapp=rainloop
2022-09-06 16:59:47,601: DEBUG - ++ app=rainloop
2022-09-06 16:59:47,603: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]]
2022-09-06 16:59:47,606: DEBUG - ++ ynh_app_setting get rainloop path
2022-09-06 16:59:48,209: DEBUG - + path_url=/rainloop
2022-09-06 16:59:48,224: DEBUG - ++ ynh_app_setting_get --app=rainloop --key=final_path
2022-09-06 16:59:48,228: DEBUG - ++ local _globalapp=rainloop
2022-09-06 16:59:48,577: DEBUG - ++ app=rainloop
2022-09-06 16:59:48,580: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2022-09-06 16:59:48,584: DEBUG - ++ ynh_app_setting get rainloop final_path
2022-09-06 16:59:49,188: DEBUG - + final_path=/var/www/rainloop
2022-09-06 16:59:49,197: DEBUG - ++ ynh_app_setting_get --app=rainloop --key=language
2022-09-06 16:59:49,201: DEBUG - ++ local _globalapp=rainloop
2022-09-06 16:59:49,537: DEBUG - ++ app=rainloop
2022-09-06 16:59:49,548: DEBUG - ++ [[ language =~ (unprotected|protected|skipped)_ ]]
2022-09-06 16:59:49,551: DEBUG - ++ ynh_app_setting get rainloop language
2022-09-06 16:59:50,149: DEBUG - + language=en
2022-09-06 16:59:50,164: DEBUG - ++ ynh_app_setting_get --app=rainloop --key=db_name
2022-09-06 16:59:50,168: DEBUG - ++ local _globalapp=rainloop
2022-09-06 16:59:50,496: DEBUG - ++ app=rainloop
2022-09-06 16:59:50,498: DEBUG - ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2022-09-06 16:59:50,500: DEBUG - ++ ynh_app_setting get rainloop db_name
2022-09-06 16:59:51,108: DEBUG - + db_name=rainloop
2022-09-06 16:59:51,113: DEBUG - ++ ynh_check_app_version_changed
2022-09-06 16:59:51,119: DEBUG - ++ local return_value=UPGRADE_FULL
2022-09-06 16:59:51,121: DEBUG - ++ '[' UPGRADE_FULL == UPGRADE_FULL ']'
2022-09-06 16:59:51,124: DEBUG - ++ return_value=UPGRADE_APP
2022-09-06 16:59:51,128: DEBUG - ++ echo UPGRADE_APP
2022-09-06 16:59:51,131: DEBUG - + upgrade_type=UPGRADE_APP
2022-09-06 16:59:51,959: INFO - [#++.................] > Backing up Rainloop before upgrading (may take a while)...
2022-09-06 16:59:51,973: DEBUG - + ynh_backup_before_upgrade
2022-09-06 16:59:51,976: DEBUG - + '[' '!' -e /etc/yunohost/apps/rainloop/scripts/backup ']'
2022-09-06 16:59:51,978: DEBUG - + backup_number=1
2022-09-06 16:59:51,980: DEBUG - + local old_backup_number=2
2022-09-06 16:59:51,983: DEBUG - + local app_bck=rainloop
2022-09-06 16:59:51,985: DEBUG - + NO_BACKUP_UPGRADE=0
2022-09-06 16:59:51,990: DEBUG - + ynh_backup_archive_exists rainloop-pre-upgrade1
2022-09-06 16:59:51,992: DEBUG - + jq -e --arg archive rainloop-pre-upgrade1 '.archives | index($archive)'
2022-09-06 16:59:51,995: DEBUG - + yunohost backup list --output-as json --quiet
2022-09-06 16:59:54,326: WARNING - Traceback (most recent call last):
2022-09-06 16:59:54,333: WARNING -   File "/usr/bin/yunohost", line 71, in <module>
2022-09-06 16:59:54,339: WARNING -     yunohost.cli(
2022-09-06 16:59:54,346: WARNING -   File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 25, in cli
2022-09-06 16:59:54,352: WARNING -     ret = moulinette.cli(
2022-09-06 16:59:54,360: WARNING -   File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 111, in cli
2022-09-06 16:59:54,366: WARNING -     Cli(
2022-09-06 16:59:54,372: WARNING -   File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 505, in run
2022-09-06 16:59:54,378: WARNING -     ret = self.actionsmap.process(args, timeout=timeout)
2022-09-06 16:59:54,384: WARNING -   File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 586, in process
2022-09-06 16:59:54,390: WARNING -     return func(**arguments)
2022-09-06 16:59:54,396: WARNING -   File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 2386, in backup_list
2022-09-06 16:59:54,402: WARNING -     archives = sorted(archives, key=lambda x: os.path.getctime(x))
2022-09-06 16:59:54,408: WARNING -   File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 2386, in <lambda>
2022-09-06 16:59:54,414: WARNING -     archives = sorted(archives, key=lambda x: os.path.getctime(x))
2022-09-06 16:59:54,420: WARNING -   File "/usr/lib/python3.9/genericpath.py", line 65, in getctime
2022-09-06 16:59:54,426: WARNING -     return os.stat(filename).st_ctime
2022-09-06 16:59:54,432: WARNING - OSError: [Errno 40] Too many levels of symbolic links: '/home/yunohost.backup/archives/20220809-101315.tar'
2022-09-06 16:59:54,648: DEBUG - + backup_number=2
2022-09-06 16:59:54,665: DEBUG - + old_backup_number=1
2022-09-06 16:59:54,671: DEBUG - + BACKUP_CORE_ONLY=1
2022-09-06 16:59:54,673: DEBUG - + yunohost backup create --apps rainloop --name rainloop-pre-upgrade2 --debug
2022-09-06 16:59:56,255: DEBUG - 1198 initializing base actions map parser for cli
2022-09-06 16:59:56,265: DEBUG - 1209 loading actions map
2022-09-06 16:59:56,274: DEBUG - 1218 building parser...
2022-09-06 16:59:56,317: DEBUG - 1261 building parser took 0.042s
2022-09-06 16:59:56,329: DEBUG - 1273 acquiring lock...
2022-09-06 16:59:56,597: DEBUG - 1542 loading python module yunohost.backup took 0.162s
2022-09-06 16:59:56,600: DEBUG - 1543 processing action [2673.1]: yunohost.backup.create with args={'name': 'rainloop-pre-upgrade2', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['rainloop'], 'dry_run': False}
2022-09-06 16:59:56,744: DEBUG - 1688 action [2673.1] executed in 0.143s
2022-09-06 16:59:56,748: WARNING - Traceback (most recent call last):
2022-09-06 16:59:56,754: WARNING -   File "/usr/bin/yunohost", line 71, in <module>
2022-09-06 16:59:56,760: WARNING -     yunohost.cli(
2022-09-06 16:59:56,765: WARNING -   File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 25, in cli
2022-09-06 16:59:56,771: WARNING -     ret = moulinette.cli(
2022-09-06 16:59:56,776: WARNING -   File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 111, in cli
2022-09-06 16:59:56,782: WARNING -     Cli(
2022-09-06 16:59:56,787: WARNING -   File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 505, in run
2022-09-06 16:59:56,794: WARNING -     ret = self.actionsmap.process(args, timeout=timeout)
2022-09-06 16:59:56,800: WARNING -   File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 586, in process
2022-09-06 16:59:56,807: WARNING -     return func(**arguments)
2022-09-06 16:59:56,812: WARNING -   File "/usr/lib/python3/dist-packages/yunohost/log.py", line 419, in func_wrapper
2022-09-06 16:59:56,818: WARNING -     result = func(*args, **kwargs)
2022-09-06 16:59:56,824: WARNING -   File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 2211, in backup_create
2022-09-06 16:59:56,830: WARNING -     if name and name in backup_list()["archives"]:
2022-09-06 16:59:56,836: WARNING -   File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 2386, in backup_list
2022-09-06 16:59:56,841: WARNING -     archives = sorted(archives, key=lambda x: os.path.getctime(x))
2022-09-06 16:59:56,848: WARNING -   File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 2386, in <lambda>
2022-09-06 16:59:56,854: WARNING -     archives = sorted(archives, key=lambda x: os.path.getctime(x))
2022-09-06 16:59:56,860: WARNING -   File "/usr/lib/python3.9/genericpath.py", line 65, in getctime
2022-09-06 16:59:56,866: WARNING -     return os.stat(filename).st_ctime
2022-09-06 16:59:56,871: WARNING - OSError: [Errno 40] Too many levels of symbolic links: '/home/yunohost.backup/archives/20220809-101315.tar'
2022-09-06 16:59:57,096: DEBUG - + ynh_die '--message=Backup failed, the upgrade process was aborted.'
2022-09-06 16:59:57,280: WARNING - Backup failed, the upgrade process was aborted.
2022-09-06 16:59:58,300: ERROR - Impossible de mettre à jour rainloop : Une erreur s'est produite durant l'exécution du script de mise à niveau de l'application

Uuuuh woké, visiblement il y a des trucs avec des liens symboliques et le fichier /home/yunohost.backup/archives/20220809-101315.tar

Est-ce que ça te parle ?

Merci Aleks.
Effectivement il y avait un lien symbolique qui pointait sur lui même dans le repertoire

/home.yunohost.backup/archives/

Je l’ai suprimé.
Les mises à jour des 3 applications se sont alors exécutées sans accroc apparent.
Pas de problèmes pour my_webapp et rainloop.
En revanche nexcloud me renvoie après mise à jour un

502 Bad Gateway

Voici le retour de la mise à jour avec un certain nombre de messages attirant l’attention lors des mises à jour de nextcloud :

admin@odsb:~$ sudo yunohost tools upgrade apps
Info : Les applications suivantes seront mises à jour : my_webapp, nextcloud, rainloop
Info : Mise à jour de my_webapp…
Info : [++…] > Loading installation settings…
Info : [##+++…] > Backing up the app before upgrading (may take a while)…
Info : [#####+…] > Ensuring downward compatibility…
Info : [######+…] > Activating maintenance mode…
Info : [#######+++…] > Installing dependencies…
Info : [##########++…] > Upgrading NGINX web server configuration…
Info : [############++…] > Making sure dedicated system user exists…
Info : [##############++…] > Upgrading PHP-FPM configuration…
Attention : /usr/share/yunohost/helpers.d/php: ligne 410: / 2 / 20 : erreur de syntaxe : opérande attendu (le symbole erroné est « / 2 / 20 »)
Info : [################+…] > Reloading NGINX web server…
Info : [#################+…] > Disabling maintenance mode…
Info : [####################] > Upgrade of my_webapp completed
Succès ! my_webapp mis à jour
Info : Mise à jour de nextcloud…
Info : […] > Loading installation settings…
Info : [+…] > Ensuring downward compatibility…
Info : [#+++++++++…] > Backing up the app before upgrading (may take a while)…
Info : [##########++…] > Upgrading dependencies…
Info : [############…] > Making sure dedicated system user exists…
Info : [############…] > Upgrading PHP-FPM configuration…
Attention : /usr/share/yunohost/helpers.d/php: ligne 410: / 2 / 50 : erreur de syntaxe : opérande attendu (le symbole erroné est « / 2 / 50 »)
Info : [############+…] > Upgrading NGINX web server configuration…
Info : The service nginx has correctly executed the action reload-or-restart.
Info : [#############+…] > Upgrading Nextcloud…
Info : Upgrade to nextcloud 23.0.0
Info : ‘/tmp/tmp.lotBlDZ47I’ wasn’t deleted because it doesn’t exist.
Attention : Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Attention : You may use your browser or the occ upgrade command to do the upgrade
Attention : Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Attention : You may use your browser or the occ upgrade command to do the upgrade
Attention : Starting …
Attention : 0/0 [>---------------------------] 0% Starting …
Attention : 0/1 [>---------------------------] 0%
Attention : Starting …
Attention : 1/1 [============================] 100% Starting …
Info : Upgrade to nextcloud 24.0.0
Info : ‘/tmp/tmp.02pnHOI9ga’ wasn’t deleted because it doesn’t exist.
Attention : 0/0 [----->----------------------] 0%Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Attention : You may use your browser or the occ upgrade command to do the upgrade
Attention : Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Attention : You may use your browser or the occ upgrade command to do the upgrade
Attention : Starting …
Attention : 0/0 [>---------------------------] 0% Starting …
Attention : 0/1 [>---------------------------] 0%
Attention : Starting …
Attention : 1/1 [============================] 100% Starting …
Info : Upgrade to nextcloud 24.0.4
Info : ‘/tmp/tmp.PHF1ElGDog’ wasn’t deleted because it doesn’t exist.
Attention : 0/0 [----->----------------------] 0%Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Attention : You may use your browser or the occ upgrade command to do the upgrade
Attention : Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Attention : You may use your browser or the occ upgrade command to do the upgrade
Info : [##############+++…] > Reconfiguring Nextcloud…
Attention : File /var/www/nextcloud/config/config.php has been manually modified since the installation or last upgrade. So it has been duplicated in /var/cache/yunohost/appconfbackup//var/www/nextcloud/config/config.php.backup.20220907.090711
Attention : Note that if you’ve installed some third-parties Nextcloud applications, they are probably disabled and you’ll have to manually enable them again.
Info : [#################…] > Upgrading logrotate configuration…
Info : [#################++.] > Reconfiguring Fail2Ban…
Info : The service fail2ban has correctly executed the action reload-or-restart.
Info : [###################.] > Reloading NGINX web server and PHP-FPM…
Info : [####################] > Upgrade of nextcloud completed
Succès ! nextcloud mis à jour
Info : Mise à jour de rainloop…
Info : [+…] > Loading installation settings…
Info : [#++…] > Backing up Rainloop before upgrading (may take a while)…
Info : [###…] > Ensuring downward compatibility…
Info : [###+…] > Making sure dedicated system user exists…
Info : [####++++…] > Upgrading source files…
Info : [########+…] > Upgrading dependencies…
Info : [#########+…] > Upgrading PHP-FPM configuration…
Info : [##########+…] > Upgrading NGINX web server configuration…
Info : [###########+…] > Upgrading Rainloop configuration…
Info : [############+…] > Upgrading logrotate configuration…
Info : [#############+++++…] > Reconfiguring Fail2Ban…
Info : The service fail2ban has correctly executed the action reload-or-restart.
Info : [##################…] > Reloading NGINX web server…
Info : [##################+.] > Sending ReadMe to admin…
Info : [####################] > Upgrade of rainloop completed
Succès ! rainloop mis à jour
Succès ! Mise à jour terminée
admin@odsb:~$

Hmoui le warning est ptete symptomatique du truc qui cause l’erreur 502

J’ai vu sur un autre thread le même genre de soucis et c’est un problème dans l’un de nos helpers (bout de code bash)

Est-ce que tu peux partager le résultat de : LANG=C vmstat --stats --unit M ?

Voilà, j’ai l’impression de me mettre au mandarin !

admin@odsb:~$ LANG=C vmstat --stats --unit M
996 M mémoire totale
253 M mémoire utilisée
362 M mémoire active
463 M mémoire inactive
75 M mémoire libre
229 M mémoire tampon
439 M mémoire échange
0 M échange total
0 M échange utilisé
0 M partition d’échange libre
75313 tics du cpu utilisateur non-courtois
0 tics cpu utilisateur courtois
54553 tics cpu système
2148858 tics cpu inactif
5194 tics cpu attente E/S
0 tics cpu IRQ
963 tics cpu IRQ soft
0 tics cpu volés
652085 pages lues depuis le disque
311500 pages écrites sur le disque
0 pages mises en mémoire d’échange
0 pages sorties de la mémoire d’échange
2669926 interruptions
3999325 changements de contexte CPU
1662535484 heure d’amorçage
6218 clonages
admin@odsb:~$

Mouarf beh du coup le problème est lié au fait que le résultat est en français, alors que LANG=C est censé mettre le résultat en anglais …

Du coup regardons si peut-être ceci marche “mieux”:

LC_ALL=en_US.UTF-8 LANG=C vmstat --stats --unit M

Le même pour le camarade William

admin@odsb:~$ LC_ALL=en_US.UTF8 LANG=C vmstat --stats --unit M
996 M total memory
251 M used memory
365 M active memory
462 M inactive memory
73 M free memory
229 M buffer memory
442 M swap cache
0 M total swap
0 M used swap
0 M free swap
76996 non-nice user cpu ticks
0 nice user cpu ticks
55834 system cpu ticks
2208315 idle cpu ticks
5230 IO-wait cpu ticks
0 IRQ cpu ticks
972 softirq cpu ticks
0 stolen cpu ticks
655153 pages paged in
314924 pages paged out
0 pages swapped in
0 pages swapped out
2731462 interrupts
4083516 CPU context switches
1662535484 boot time
6436 forks
admin@odsb:~$

Ah du coup c’est mieux … mais je me demande si en fait il ne suffit pas plutôt d’écrire:

LC_ALL=C vmstat --stats --unit M

?

Yes sir !

admin@odsb:~$ LC_ALL=C vmstat --stats --unit M
996 M total memory
252 M used memory
365 M active memory
463 M inactive memory
71 M free memory
229 M buffer memory
442 M swap cache
0 M total swap
0 M used swap
0 M free swap
78864 non-nice user cpu ticks
0 nice user cpu ticks
56934 system cpu ticks
2259645 idle cpu ticks
5261 IO-wait cpu ticks
0 IRQ cpu ticks
987 softirq cpu ticks
0 stolen cpu ticks
655157 pages paged in
319004 pages paged out
0 pages swapped in
0 pages swapped out
2794912 interrupts
4173062 CPU context switches
1662535484 boot time
6473 forks
admin@odsb:~$

Cool ébé du coup je corrige ça et j’essaye de sortir une nouvelle micro-version de Yunohost, après quoi il faudra que tu force-réupgrade my_webapp et nextcloud qui ont été affectés par le problème chez toi

Merci, mais forcer la réupgrade on fait cela comment ?

yunohost app upgrade <le_nom_de_lapp> --force

Super et merci pour tout ce travail !!!

Rebonjour,
Encore des soucis après la mise à niveau yunohost 11.0.9.14
Voilà le retour de mon terminal

admin@odsb:~$ sudo yunohost tools update
Info : Récupération des mises à jour disponibles pour les paquets du système…
Info : Mise à jour du catalogue d’applications…
Succès ! Le catalogue des applications a été mis à jour !
apps:
system:
current_version: 11.0.9.13
name: yunohost
new_version: 11.0.9.14
admin@odsb:~$ sudo yunohost tools upgrade system
Info : Mise à jour des paquets en cours…
Info : Mise à niveau des packages système
Info : + Lecture des listes de paquets…
Info : + Construction de l’arbre des dépendances…
Info : + Lecture des informations d’état…
Info : + Calcul de la mise à jour…
Info : + Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
Info : + php7.3-apcu php7.3-bcmath php7.3-bz2 php7.3-curl php7.3-gmp php7.3-igbinary
Info : + php7.3-imap php7.3-intl php7.3-ldap php7.3-redis php7.3-zip
Info : + Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Info : + Les paquets suivants seront mis à jour :
Info : + yunohost
Info : + 1 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Info : + Il est nécessaire de prendre 1 011 ko dans les archives.
Info : + Après cette opération, 0 o d’espace disque supplémentaires seront utilisés.
Info : + Réception de :1 Index of /debian/ bullseye/stable armhf yunohost all 11.0.9.14 [1 011 kB]
Info : + 1 011 ko réceptionnés en 0s (2 406 ko/s)
Info : + (Lecture de la base de données… 72557 fichiers et répertoires déjà installés.)
Info : + Préparation du dépaquetage de …/yunohost_11.0.9.14_all.deb …
Info : + Dépaquetage de yunohost (11.0.9.14) sur (11.0.9.13) …
Info : + Paramétrage de yunohost (11.0.9.14) …
Info : + Regenerating configuration, this might take a while…
Attention : Le fichier de configuration ‘/etc/cron.d/yunohost-dyndns’ a été modifié manuellement et ne sera pas mis à jour
Attention : Le fichier de configuration ‘/etc/ssh/sshd_config’ a été modifié manuellement et ne sera pas mis à jour
Attention : Le fichier de configuration ‘/etc/ldap/slapd.ldif’ a été modifié manuellement et ne sera pas mis à jour
Attention : Le fichier de configuration ‘/etc/nslcd.conf’ a été modifié manuellement et ne sera pas mis à jour
Attention : Le fichier de configuration ‘/etc/resolv.dnsmasq.conf’ a été modifié manuellement et ne sera pas mis à jour
Attention : Le fichier de configuration ‘/etc/nsswitch.conf’ a été modifié manuellement et ne sera pas mis à jour
Attention : Le fichier de configuration ‘/etc/fail2ban/jail.conf’ a été modifié manuellement et ne sera pas mis à jour
Info : + Launching migrations…
Info : + Aucune migration à lancer
Info : + Re-diagnosing server health…
Info : + Tout semble OK pour Système de base !
Info : + Tout semble OK pour Connectivité Internet !
Info : + Tout semble OK pour Enregistrements DNS !
Info : + Tout semble OK pour Exposition des ports !
Info : + Tout semble OK pour Web !
Info : + Tout semble OK pour Email !
Info : + Tout semble OK pour État des services !
Info : + Tout semble OK pour Ressources système !
Attention : Trouvé 1 problème(s) significatif(s) (et 6 (avertissement(s)) en relation avec Configurations système !
Info : + Tout semble OK pour Applications !
Attention : Pour voir les problèmes détectés, vous pouvez accéder à la section Diagnostic du webadmin ou exécuter ‘yunohost diagnosis show --issues --human-readable’ à partir de la ligne de commande.
Info : + Traitement des actions différées (« triggers ») pour man-db (2.9.4-2) …
Succès ! Système mis à jour
admin@odsb:~$ sudo yunohost app upgrade nextcloud --force
Info : Mise à jour de nextcloud…
Info : […] > Loading installation settings…
Info : [+…] > Ensuring downward compatibility…
Info : [#+++++++++…] > Backing up the app before upgrading (may take a while)…
Attention : 11180 Source path ‘/etc/php/8.0/fpm/pool.d/nextcloud.conf’ does not exist
Attention : 12789 Impossible de sauvegarder nextcloud
Attention : 12896 Il n’y a rien à sauvegarder
Attention : Backup failed, the upgrade process was aborted.
Erreur : Impossible de mettre à jour nextcloud : Une erreur s’est produite durant l’exécution du script de mise à niveau de l’application
Info : L’opération ‘Mettre à jour l’application ‘nextcloud’’ a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en utilisant la commande ‘yunohost log share 20220907-113914-app_upgrade-nextcloud’
Attention : Here’s an extract of the logs before the crash. It might help debugging the error:
Info : DEBUG - 9756 ++ realpath /etc/nginx/conf.d/odsb.net.d/nextcloud.conf
Info : DEBUG - 9810 ++ echo /etc/nginx/conf.d/odsb.net.d/nextcloud.conf
Info : DEBUG - 9816 ++ sed --regexp-extended ‘s/"/""/g’
Info : DEBUG - 9828 ++ sed --regexp-extended ‘s/"/""/g’
Info : DEBUG - 9834 ++ echo apps/nextcloud/backup/etc/nginx/conf.d/odsb.net.d/nextcloud.conf
Info : DEBUG - 9851 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/nginx/conf.d/odsb.net.d/nextcloud.conf
Info : DEBUG - 10150 ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
Info : DEBUG - 10157 ++ local globalapp=nextcloud
Info : DEBUG - 10405 ++ app=nextcloud
Info : DEBUG - 10413 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)
]]
Info : DEBUG - 10423 ++ ynh_app_setting get nextcloud do_not_backup_data
Info : WARNING - 11180 Source path ‘/etc/php/8.0/fpm/pool.d/nextcloud.conf’ does not exist
Info : DEBUG - 12754 Échec de l’exécution du script : /var/cache/yunohost/app_tmp_work_dirs/app_1nxx5cgq/scripts/backup
Info : WARNING - 12789 Impossible de sauvegarder nextcloud
Info : DEBUG - 12837 L’opération ‘Créer une archive de sauvegarde’ a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en utilisant la commande ‘yunohost log share 20220907-113948-backup_create’
Info : DEBUG - 12893 action [10131.1] executed in 11.353s
Info : WARNING - 12896 Il n’y a rien à sauvegarder
Info : DEBUG - + ynh_die ‘–message=Backup failed, the upgrade process was aborted.’
Info : WARNING - Backup failed, the upgrade process was aborted.
Info : ERROR - Impossible de mettre à jour nextcloud : Une erreur s’est produite durant l’exécution du script de mise à niveau de l’application
Erreur : L’opération ‘Mettre à jour l’application ‘nextcloud’’ a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en utilisant la commande ‘yunohost log share 20220907-113914-app_upgrade-nextcloud’
admin@odsb:~$

Mouarf alors essayons de gruger avec:

touch /etc/php/8.0/fpm/pool.d/nextcloud.conf

puis retenter de mettre à jour nextcloud

Magique, mon nextcloud semble à nouveau opérationel.
Z’êtes quand même forts les mecs !!

Je viens de forcer également sans problème l’upgrade de my_webapp.
Pour rainloop j’ai cru comprendre qu’il n’était plus maintenu et qu’il était prudent de passer à une autre application, une suggestion ?
Un grand merci pour tout.
Je marque le sujet comme résolu.

Il me semble que c’est snappymail, un truc du genre

Mais en tout cas Rainloop n’avait pas l’air affecté par le bug précis dont on parlais là, ou bien j’ai lu les logs trop vite

Rainloop fonctionnait effectivement et my_webapp également d’ailleurs.

Ah oui ça se peut si tu n’utilises pas vraiment PHP dans ton app my_webapp :wink: