Source Path does not exist, can't backup or upgrade

Mon serveur YunoHost

Matériel: VPS acheté en ligne
Version de YunoHost: 11.2.10.1
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ? : non
app : nextcloud v27.1.4

Description du problème

Je me retrouve avec la même erreur que cet ancien topic

Une erreur de clé pour le path ? plus moyen de mettre à jour ou de sauvegarder nextcloud.

Je voulais mettre à jour vers la version oldstable, c’est à dire mettre à jour vers la version 27.1.6

sudo yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/oldstable --debug

voici des logs:

https://paste.yunohost.org/raw/efoyilupot

Cela fini toujours par

2024-02-26 20:49:31,773: DEBUG - ++ app=nextcloud
2024-02-26 20:49:31,773: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2024-02-26 20:49:31,773: DEBUG - ++ ynh_app_setting get nextcloud do_not_backup_data
2024-02-26 20:49:31,828: DEBUG - + do_not_backup_data=
2024-02-26 20:49:31,829: DEBUG - + '[' '!' -e '' ']'
2024-02-26 20:49:31,829: DEBUG - + ynh_print_warn '--message=Source path '\'''\'' does not exist'
2024-02-26 20:49:31,838: DEBUG - + ynh_print_log 'Source path '\'''\'' does not exist'
2024-02-26 20:49:31,838: DEBUG - + echo -e 'Source path '\'''\'' does not exist'
2024-02-26 20:49:31,839: DEBUG - + '[' 0 == 0 ']'
2024-02-26 20:49:31,845: WARNING - Source path '' does not exist
2024-02-26 20:49:31,846: DEBUG - + grep --quiet /etc/fail2ban
2024-02-26 20:49:31,846: DEBUG - + return 1
2024-02-26 20:49:31,847: DEBUG - + ynh_exit_properly
2024-02-26 20:49:31,847: DEBUG - + [[ backup =~ ^install$|^upgrade$|^restore$ ]]
2024-02-26 20:49:33,346: DEBUG - Could not run script: /var/cache/yunohost/app_tmp_work_dirs/app_l3g3cv2k/scripts/backup
2024-02-26 20:49:33,352: ERROR - Could not back up nextcloud

Du coup en découvrant le topic ci-dessus, j’ai essayé auparavant

yunohost app setting nextcloud datadir -v "/home/yunohost.app/nextcloud/data"

mais encore la même erreur

logs:

https://paste.yunohost.org/raw/efeyofutif

Impossible de faire non plus une sauvegarde !

yunohost backup create --apps nextcloud
Info: Collecting files to be backed up for nextcloud...
Info: Loading installation settings...
Info: Declaring files to be backed up...
Warning: Source path '' does not exist
Error: Could not back up nextcloud
Info: The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240226-211318-backup_create' to get help
Error: Nothing to save

logs : https://paste.yunohost.org/raw/kireforose

Quelque chose ne vas pas ici ! Quelqu’un peut-il m’aider ?

2024-02-26 22:13:19,178: DEBUG - + datadir=/home/yunohost.app/nextcloud/data
2024-02-26 22:13:19,178: DEBUG - + ynh_print_info '--message=Declaring files to be backed up...'
2024-02-26 22:13:19,187: DEBUG - + ynh_backup --src_path=
2024-02-26 22:13:19,187: INFO - Declaring files to be backed up...
2024-02-26 22:13:19,214: DEBUG - + dest_path=
2024-02-26 22:13:19,214: DEBUG - + is_big=0
2024-02-26 22:13:19,214: DEBUG - + not_mandatory=0
2024-02-26 22:13:19,214: DEBUG - + BACKUP_CORE_ONLY=0
2024-02-26 22:13:19,214: DEBUG - + test -n nextcloud
2024-02-26 22:13:19,214: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
2024-02-26 22:13:19,215: DEBUG - ++ local _globalapp=nextcloud
2024-02-26 22:13:19,239: DEBUG - ++ app=nextcloud
2024-02-26 22:13:19,239: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2024-02-26 22:13:19,239: DEBUG - ++ ynh_app_setting get nextcloud do_not_backup_data
2024-02-26 22:13:19,296: DEBUG - + do_not_backup_data=
2024-02-26 22:13:19,297: DEBUG - + '[' '!' -e '' ']'
2024-02-26 22:13:19,297: DEBUG - + ynh_print_warn '--message=Source path '\'''\'' does not exist'
2024-02-26 22:13:19,308: DEBUG - + ynh_print_log 'Source path '\'''\'' does not exist'
2024-02-26 22:13:19,315: WARNING - Source path '' does not exist
2024-02-26 22:13:19,315: DEBUG - + echo -e 'Source path '\'''\'' does not exist'
2024-02-26 22:13:19,316: DEBUG - + '[' 0 == 0 ']'
2024-02-26 22:13:19,316: DEBUG - + grep --quiet /etc/fail2ban
2024-02-26 22:13:19,316: DEBUG - + return 1
2024-02-26 22:13:19,317: DEBUG - + ynh_exit_properly
2024-02-26 22:13:19,317: DEBUG - + [[ backup =~ ^install$|^upgrade$|^restore$ ]]
2024-02-26 22:13:20,818: DEBUG - Could not run script: /var/cache/yunohost/app_tmp_work_dirs/app_a7dp8zti/scripts/backup
2024-02-26 22:13:20,821: ERROR - Could not back up nextcloud

Oups, cela semble plus compliqué !!

J’avais déjà du faire la mise à jour auparavant (je gère plusieurs Yunohost et parfois je me perd un peu), du coup le problème est plus sensible !
Nextcloud est en version 27.1.6.2 quand je regarde le `config.php
Pourtant le système ne l’a pa pris correctement en compte

yunohost app info nextcloud
description: Online storage, file sharing platform and various other applications
domain_path: nuage.mainsdoeuvres.org/
name: Nuage Nextcloud
version: 27.1.4~ynh1

Aïe !! pas terrible tout cela… nextcloud est bien en v 27.1.6.2 pourtant le dossier dans /etc/yunohost/apps/nextcloud ne correspond pas, le manifest.json déclare "version": "27.1.4~ynh1",

Comment réparer cela ??

Je pense que la solution va être un peu risquée… peut-être ainsi ???

  • supprimer nextcloud
  • tenter de restaurer le backup de pre-upgrade
  • refaire la mise à jour si tout c’est bien passer…

Mais je ne voudrais rein perdre !! délicat…

Visiblement le vieux setting “final_path” n’est pas non plus défini chez toi … :

yunohost app setting nextcloud final_path -v /var/www/nextcloud

Merci @Aleks , en effet parès j’ai pu faire un backup… je vais essayer ensuite de remettre le paquet à jour en forçant avec
yunohost app upgrade app nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/oldstable --debug -F

Ça a fonctionné, même si je ne comprends absolument pas comment cette erreur est arrivée…

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