Impossible de mettre à jours NextCloud

Bonjour,

Je n’arrive pas à mettre à jours nextcloud

root@jmanson:/tmp# yunohost app upgrade nextcloud --verbose
Upgrading apps nextcloud
Téléchargement...
Extraction...
Terminé
Vérification des paquets requis...
Exécution du script « /var/cache/yunohost/from_file/nextcloud_ynh-8f98d512b17c12                                                                                                                                                             b3f6225414c8dd5546ea482307/scripts/upgrade »...
+ source ./_common.sh
++ APPNAME=nextcloud
+++ grep VERSION= upgrade.d/upgrade.last.sh
+++ cut -d= -f2
++ LAST_VERSION=12.0.2
++ DEPS_PKG_NAME=nextcloud-deps
+++ cd ../
+++ pwd
++ PKGDIR=/var/cache/yunohost/from_file/nextcloud_ynh-8f98d512b17c12b3f6225414c8                                                                                                                                                             dd5546ea482307
++ final_path=nextcloud
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ app=nextcloud
+ real_app=nextcloud
+ dbname=nextcloud
+ dbuser=nextcloud
+ backup_number=1
+ old_backup_number=2
+ sudo yunohost backup list
+ grep -q nextcloud-before-upgrade1
+ ynh_app_setting_set nextcloud backup_core_only 1
+ sudo yunohost app setting nextcloud backup_core_only -v 1 --quiet
++ cat /var/www/nextcloud/version.php
++ cut '-d'\''' -f2
++ grep OC_VersionString
+ '[' 12.0.1 '>' 11.0.0 ']'
+ sudo yunohost backup create --ignore-hooks --apps nextcloud --name nextcloud-b                                                                                                                                                             efore-upgrade1
Attention : --ignore-hooks is deprecated and will be removed in thefuture. Pleas                                                                                                                                                             e use --ignore-system instead.
Attention : Le dossier de sortie n'est pas vide
+ '[' 5 -eq 0 ']'
+ ynh_die 'Backup failed, the upgrade process was aborted.'
Attention : Backup failed, the upgrade process was aborted.
+ echo 'Backup failed, the upgrade process was aborted.'
+ exit 1
Erreur : Impossible de mettre à jour nextcloud
Erreur : Aucune application à mettre à jour

Je vois que le script essai de sauvegarder nextcloud et n’y parvient pas
Je doit avoir plus de 100 Go de donnée dans nextcloud, je me demande si ce n’est pas la cause de ce problème

Le script d’upgrade fait vraiment une sauvegarde complète de nextcloud ?

C’est ça l’erreur que tu rencontres, probablement un backup interrompu au milieu de son travail.
Vérifie si tu n’as pas des résidus dans /home/yunohost.backup/tmp

Le backup qui est fait durant l’upgrade de nextcloud ne sauvegarde pas les données. (Si ta version de nextcloud n’est pas trop ancienne)

1 Like

Effectivement c’etait bien ca !
il y avait un résidu d’une ancienne sauvegarde de Nextcloud dans le dossier