Problème de backup avec partage sshfs "_common.sh: Permission non accordée"

My YunoHost server

Hardware: VPS bought online + NAS synology
YunoHost version: 11.2.12
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain:
J’ai modifié app.py et backup.py pour changer le dossier de sauvegarde et ça fonctionne. (voir Change the backup location without symbolic link - #2 by Carambole)

I modified app.py and backup.py to change the backup folder and it works. (see Change the backup location without symbolic link - #2 by Carambole)


:fr: Bonjour tout le monde, j’ai un petit soucis avec le système de backup.

J’ai modifié app.py et backup.py pour changer le dossier de sauvegarde et ça fonctionne. (voir Change the backup location without symbolic link - #2 by Carambole)

Mais quand le dossier que je met est un dossier partage sshfs, yunohost n’arrive pas à sauvegarder les applications: :cry:

root@domain yunohost backup create
Info : Collecte des fichiers devant être sauvegardés pour shellinabox…
Attention : /var/cache/yunohost/app_tmp_work_dirs/app_motc55od/scripts/backup: ligne 10: ../settings/scripts/_common.sh: Permission non accordée
Info : Declaring files to be backed up...
Info : Backup script completed for shellinabox. (YunoHost will then actually copy those files to the archive).
Erreur : Impossible de sauvegarder shellinabox
Info : Création d'une archive de sauvegarde à partir des fichiers collectés…
Info : L'archive contiendra environ 250.9KB de données.
Succès ! Sauvegarde créée : 20240604-120429
name: 20240604-120429
results:
  apps:
    shellinabox: Error
  system:
    conf_ldap: Success
    conf_manually_modified_files: Success
    conf_ynh_certs: Success
    conf_ynh_settings: Success
    data_home: Success
    data_mail: Success
    data_multimedia: Success
    data_xmpp: Success
size: 256941

Voici les différentes commandes que j’ai essayé pour le partage:

sudo sshfs -o Administrateur@192.168.1.2:/home/test_backup /test/
sudo sshfs -o  allow_root Administrateur@192.168.1.2:/home/test_backup /test/
sudo sshfs -o default_permissions Administrateur@192.168.1.2:/home/test_backup /test/
sudo sshfs -o allow_other Administrateur@192.168.1.2:/home/test_backup /test/
et tout combiné 

Quand j’essaye avec un autre dossier ça fonctionne, donc je me dis que le problème vient de sshfs.

Merci d’avance :ninja:

:uk: Hello everyone, I have a little problem with the save system.

I modified app.py and backup.py to change the backup folder and it works. (see Change the backup location without symbolic link - #2 by Carambole)
[see above]
But when the folder I put is an sshfs share folder, yunohost cannot save the applications.
Here are the different commands I tried for sharing.
[see above]
When I try with another folder it works, so I tell myself that the problem comes from sshfs.

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