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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. SSHFS backups failed

SSHFS backups failed

Scheduled Pinned Locked Moved Solved Support
sshfsbackups
8 Posts 3 Posters 1.9k Views 3 Watching
  • 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.
  • ultravioletU Offline
    ultravioletU Offline
    ultraviolet
    App Dev
    wrote on last edited by girish
    #1

    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
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      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.

      ultravioletU 1 Reply Last reply
      0
      • nebulonN nebulon

        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.

        ultravioletU Offline
        ultravioletU Offline
        ultraviolet
        App Dev
        wrote on last edited by
        #3

        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
        
        
        MallewaxM 1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          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.

          ultravioletU 1 Reply Last reply
          0
          • nebulonN nebulon

            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.

            ultravioletU Offline
            ultravioletU Offline
            ultraviolet
            App Dev
            wrote on last edited by
            #5

            @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
            0
            • ultravioletU ultraviolet

              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
              
              
              MallewaxM Offline
              MallewaxM Offline
              Mallewax
              wrote on last edited by
              #6

              @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.

              ultravioletU 1 Reply Last reply
              3
              • MallewaxM Mallewax

                @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.

                ultravioletU Offline
                ultravioletU Offline
                ultraviolet
                App Dev
                wrote on last edited by
                #7

                @Mallewax sorted thanks!

                MallewaxM 1 Reply Last reply
                2
                • ultravioletU ultraviolet

                  @Mallewax sorted thanks!

                  MallewaxM Offline
                  MallewaxM Offline
                  Mallewax
                  wrote on last edited by
                  #8

                  @ultraviolet Glad I could help...👍

                  1 Reply Last reply
                  1
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search