Echec de la mise a jour Nextcloud 20.0.4

Bonjour à tous :slight_smile:
Grosse erreur lors de la mise a jour de nextcloud (master) ce soir … voici les infos :

Mon serveur YunoHost

Matériel: Raspberry Pi à la maison
Version de YunoHost: 4.1.4.4 (stable)
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

j’ai lancé ce soir la mise a jour de nextcloud depuis la 19.0.3 vers la 20.0.4
Malheureusement le processus ne s’est pas bien déroulé et maintenant nextcloud ne répond plus …
403 Forbidden
les logs complets sont ici : https://paste.yunohost.org/raw/toniqapice

ci dessous le log du terminal (ssh) lors de l’installation :

~ $ sudo yunohost tools upgrade --apps nextcloud
Info: Now upgrading 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...
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 20.0.0
Info: '/tmp/tmp.wbFcejvnGb' wasn't deleted because it doesn't exist.
Warning:  Starting ...
Warning:     0/0 [>---------------------------]   0% Starting ...
Info: Upgrade to nextcloud 20.0.4
Info: '/tmp/tmp.RH7n5w2kbk' wasn't deleted because it doesn't exist.
Warning:     0/0 [->--------------------------]   0% Starting ...
Warning:     0/0 [>---------------------------]   0%Unable to upgrade Nextcloud
Warning: [Error] Upgrade failed.
Info: '/tmp/owncloud_post_migration.sh' wasn't deleted because it doesn't exist.
Warning: /usr/share/yunohost/helpers.d/backup: line 461: 27645 Killed                  exit "$ret_code"
Warning: 2906 The following apps can't be restored because they are already installed: nextcloud
Warning: The app was restored to the way it was before the failed upgrade.
Error: Could not upgrade nextcloud: An error occurred inside the app upgrade script
Info: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210111-201342-app_upgrade-nextcloud --share' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - 44761 + echo 'Backing up data directory...'
Info: DEBUG - 44762 + ynh_backup --src_path=/home/yunohost.app/nextcloud/data --is_big
Info: DEBUG - 44969 + dest_path=
Info: DEBUG - 44970 + is_big=1
Info: DEBUG - 44971 + not_mandatory=0
Info: DEBUG - 44971 + BACKUP_CORE_ONLY=1
Info: DEBUG - 44972 + test -n nextcloud
Info: DEBUG - 44972 ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
Info: DEBUG - 45077 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
Info: DEBUG - 45078 ++ ynh_app_setting get nextcloud do_not_backup_data
Info: DEBUG - 45480 + do_not_backup_data=
Info: DEBUG - 45481 + '[' 1 -eq 1 ']'
Info: DEBUG - 45482 + '[' 0 -eq 1 ']'
Info: DEBUG - 45482 + '[' 1 -eq 1 ']'
Info: DEBUG - 45483 + '[' 1 -eq 1 ']'
Info: DEBUG - 45483 + ynh_print_info '--message=/home/yunohost.app/nextcloud/data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
Info: DEBUG - 45487 + echo '/home/yunohost.app/nextcloud/data will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
Info: DEBUG - 45488 + return 0
Info: DEBUG - 45489 + ynh_print_info '--message=Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).'
Info: DEBUG - 45594 + echo 'Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).'
Info: DEBUG - 45595 + ynh_exit_properly
Warning: unable to upgrade apps: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210111-201342-app_upgrade-nextcloud --share' to get help
Error: Some apps could not be upgraded

Un grand merci pour votre aide !

27645 Killed

Mouarf ben c’est ton serveur qui est arrivé à cours de ressource pendant la mise à jour …

Pour d’abord rétablir le nextcloud existant, tu as normalement un backup qui a été créé avant le début de la “vraie” mise à jour. Il s’appelle nextcloud-pre-upgrade1 et tu devrais pouvoir le restaurer depuis ta webadmin. (Par contre il faut commencer par désinstaller l’app nextcloud actuelle … ça fait peur de commencer par désinstaller son app pour pouvoir la restaurer mais bon bref …)

Ensuite pour que l’upgrade se passe bien (mais la restauration aussi ceci dit), ça peut être utile de stopper temporairement d’autres services/apps potentiellement gourmands dans l’écran ‘Services’

2 Likes

Un grand merci à toi @Aleks !
Restauration puis upgrade a nouveau, avec les services au minimum et tout fonctionne !!
Seule remarque : ces lignes ci-dessous qui se sont accumulées su la console ssh de manière un peu inquiétante

Info: [################....] > Upgrading logrotate configuration...
from moulinette.utils.stream: could not read file descriptor : [Errno 11] Resource temporarily unavailable
from moulinette.utils.stream: could not read file descriptor : [Errno 11] Resource temporarily unavailable
from moulinette.utils.stream: could not read file descriptor : [Errno 11] Resource temporarily unavailable
[...]
Info: [################++..] > Reconfiguring Fail2Ban...
from moulinette.utils.stream: could not read file descriptor : [Errno 11] Resource temporarily unavailable
from moulinette.utils.stream: could not read file descriptor : [Errno 11] Resource temporarily unavailable
[...]

Mais j’en retiens uniqmenent la fin :

**Success!** nextcloud upgraded
**Success!** Upgrade complete

Un grand bravo pour votre travail :stuck_out_tongue_winking_eye:

1 Like

Cool ! Les could not read file descriptor ne sont normalement pas très important, ce sera normalement résolu dans le core en 4.2 je pense.

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