Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved SSHFS backups failed

    Support
    sshfs backups
    3
    8
    439
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ultraviolet
      ultraviolet App Dev last edited by girish

      Hi all,
      I just moved my backups to a Hetzner storagebox and last night was the first trial of a full backup. This morning I saw this error:

      Command failed with exit code 1 (EPERM): df -kPT /backups_sshfs
      

      I did some Googling but I am coming up short as to why this error is occurring. I can supply logs if anyone requires them.
      Any ideas?

      1 Reply Last reply Reply Quote 1
      • nebulon
        nebulon Staff last edited by

        How is your mountpoint setup? I am using the very same setup with hetzner so that should work.
        The exact line in fstab should look like mentioned at https://cloudron.io/documentation/backups/#sshfs
        I guess we can improve the validation code for the mountpoint further. I wasn't sure how strict it has to be.

        ultraviolet 1 Reply Last reply Reply Quote 0
        • ultraviolet
          ultraviolet App Dev @nebulon last edited by

          Hi @nebulon the fstab is set:

          [username]@[id].your-storagebox.de:. /backups_sshfs fuse.sshfs defaults,allow_other,_netdev,port=23,IdentityFile=/home/yellowtent/.ssh/id_rsa_rfc.pub,reconnect,uid=yellowtent,gid=yellowtent 0 0
          

          The ssh key is sitting in the /home/yellowtent/.ssh folder and the /backups_sshfs folder is owned by yellowtent user except when the mount us connected then it shows ?:? for the user and group.
          The mount is currently showing:

          cd /backups_sshfs
          -bash: cd: /backups_sshfs: Input/output error
          
          
          Mallewax 1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff last edited by

            That looks like some more generic mount point issue. sshfs is a fuse mount on linux, can you explicitly umount and then mount it again? Also check kernel logs why it didn't properly mount.

            ultraviolet 1 Reply Last reply Reply Quote 0
            • ultraviolet
              ultraviolet App Dev @nebulon last edited by

              @nebulon I had to reboot for security updates but I can't see anything in the logs. I did a mount /backups_sshfs but it seems to ask me for the password to connect but the ssh key is present plus when I use the sshfs command manually it uses the key. So a little confused!

              1 Reply Last reply Reply Quote 0
              • Mallewax
                Mallewax @ultraviolet last edited by

                @ultraviolet I had similiar issues and here is what helped me. As a summary:

                • Ensure that the local mount point is owned by yellowtent:yellowtent

                • Before creating the fstab entry, please try to mount on the command line.

                sudo sshfs -o port=23 -o allow_other,default_permissions,uid=1001,gid=1001,IdentityFile=/home/yellowtent/.ssh/id_rsa user@host /backup_sshfs/

                I have used sudo because I am assuming that you are not logged in as user yellowtent.

                ultraviolet 1 Reply Last reply Reply Quote 3
                • ultraviolet
                  ultraviolet App Dev @Mallewax last edited by

                  @Mallewax sorted thanks!

                  Mallewax 1 Reply Last reply Reply Quote 2
                  • Mallewax
                    Mallewax @ultraviolet last edited by

                    @ultraviolet Glad I could help...👍

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Powered by NodeBB