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. Hetzner Storage Box (CIFS)

Hetzner Storage Box (CIFS)

Scheduled Pinned Locked Moved Support
cifs
26 Posts 12 Posters 7.7k Views 12 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.
  • BrutalBirdieB Offline
    BrutalBirdieB Offline
    BrutalBirdie
    Partner
    wrote on last edited by
    #5

    I also switch all servers from CIFS to SSHFS and this reduced many problems.
    +1

    Like my work? Consider donating a drink. Cheers!

    1 Reply Last reply
    1
    • BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by
      #6

      btw. If you have many SSHFS setups to do for many Cloudrons here is my script for creating some needed stuff.

      This script creates a folder and ssh-key to be used with Cloudron.
      This script expects to have the SSHFS to be mounted locally so it can create Folders and Keys which then can be used.

      #!/bin/bash
      read -rp "Customer Name: " CUSTOMER
      read -rp "Mount Point of SSHFS: " MOUNT_POINT
      
      CUSTOMER_PATH="${MOUNT_POINT%/}/$CUSTOMER"
      CUSTOMER_SSH_PATH="${CUSTOMER_PATH}/.ssh"
      CUSTOMER_AUTH_KEYS="${CUSTOMER_SSH_PATH}/authorized_keys"
      
      echo "=> Checking if customer already exists"
      if [[ -d $CUSTOMER_PATH ]]; then
          echo "=> Customer existing, quitting"
          exit 1
      fi
      
      echo "=> Create Folder"
      mkdir -pv "$CUSTOMER_SSH_PATH"
      
      echo "=> Create Auth Keys File"
      if [[ ! -f "$CUSTOMER_AUTH_KEYS" ]]; then
          touch "$CUSTOMER_AUTH_KEYS"
      fi
      
      echo "=> Create ssh-key and place into auth keys"
      if [[ ! -f "${CUSTOMER_SSH_PATH}/$CUSTOMER" ]]; then
          ssh-keygen -f "${CUSTOMER_SSH_PATH}/$CUSTOMER" -t ed25519 -C "${CUSTOMER}-SSHFS" -N ""
          cat "${CUSTOMER_SSH_PATH}/${CUSTOMER}.pub" > "${CUSTOMER_SSH_PATH}/authorized_keys"
      else
          echo "=> Key seems to be present, something is off"
          exit 1
      fi
      

      Like my work? Consider donating a drink. Cheers!

      1 Reply Last reply
      2
      • jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by jdaviescoates
        #7

        From memory I think I once had a CIFS issue, but I think that was related to things changing on the Cloudron end (when Cloudron started automating mount stuff but I still had my slightly different set-up as per Hetzner docs), but I don't think I've ever had issues again since I set it up again with Cloudron automating the mount set-up.

        Also, I spotted that apparently SSHFS is no longer maintained, so perhaps CIFS is again the best way/ only supported way?

        @nebulon said in Best way/protocol to mount Hetzner Storage Box?:

        https://github.com/libfuse/sshfs#this-project-is-orphaned unless the development was taken elsewhere without mention?

        Also, I think the main problems lots of people were having previously (which effected CIFS/NFS/SSHFS) was fixed:

        @girish said in Cloudron 7.3.4: "Analyze Disk" doesn't do anything and no statistics shown...:

        Thanks all. This issue was already fixed as well last month - https://git.cloudron.io/cloudron/box/-/commit/67cde5a62cf0394c8bf2d78ee3408e5995a220e7 . It's already in 7.3.5.

        Essentially, if you have CIFS/NFS/SSHFS, there is a crash.

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply
        1
        • nichu42N Offline
          nichu42N Offline
          nichu42
          wrote on last edited by
          #8

          One of the issues I had was that CIFS was awfully slow, and the backups took forever. But maybe I'll give it another try if @nebulon or @girish recommend so due to the lack of SSHFS support.

          Matrix: @nichu42:blueplanet.social

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lukas
            wrote on last edited by
            #9

            My backups via CIFS are also slow

            1 Reply Last reply
            0
            • mdc773M Offline
              mdc773M Offline
              mdc773
              wrote on last edited by mdc773
              #10

              speaking about hetzner how did you guys get the SSHFS key? i also have problems with CIFS would love to use SSHFS with hetzners storage-box

              1 Reply Last reply
              0
              • robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #11

                It's best to focus on finding the issue with CIFS as it worked well before a certain point mounts were changed.

                SSHFS will always be much slower than CIFS if all is well.

                Conscious tech

                mdc773M 1 Reply Last reply
                0
                • robiR robi

                  It's best to focus on finding the issue with CIFS as it worked well before a certain point mounts were changed.

                  SSHFS will always be much slower than CIFS if all is well.

                  mdc773M Offline
                  mdc773M Offline
                  mdc773
                  wrote on last edited by
                  #12

                  @robi has anyone figured out why CIFS is slow? why can't cloudron just allow volumes from objective storage

                  robiR 1 Reply Last reply
                  0
                  • mdc773M mdc773

                    @robi has anyone figured out why CIFS is slow? why can't cloudron just allow volumes from objective storage

                    robiR Offline
                    robiR Offline
                    robi
                    wrote on last edited by
                    #13

                    @mdc773 said in Hetzner Storage Box (CIFS):

                    @robi has anyone figured out why CIFS is slow? why can't cloudron just allow volumes from objective storage

                    doesn't appear so.

                    Because object storage is not a filesystem and needs middleware to make it work. Things like rclone.org (which you can set up manually) or another gateway sw/hw that provides mounts for it.

                    Conscious tech

                    mdc773M 1 Reply Last reply
                    0
                    • robiR robi

                      @mdc773 said in Hetzner Storage Box (CIFS):

                      @robi has anyone figured out why CIFS is slow? why can't cloudron just allow volumes from objective storage

                      doesn't appear so.

                      Because object storage is not a filesystem and needs middleware to make it work. Things like rclone.org (which you can set up manually) or another gateway sw/hw that provides mounts for it.

                      mdc773M Offline
                      mdc773M Offline
                      mdc773
                      wrote on last edited by
                      #14

                      @robi okay i understand now

                      1 Reply Last reply
                      0
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #15

                        Note that rclone mount is based on FUSE - https://rclone.org/commands/rclone_mount/ . So, symlinks etc won't work just like with s3fs.

                        robiR 1 Reply Last reply
                        0
                        • girishG girish

                          Note that rclone mount is based on FUSE - https://rclone.org/commands/rclone_mount/ . So, symlinks etc won't work just like with s3fs.

                          robiR Offline
                          robiR Offline
                          robi
                          wrote on last edited by
                          #16

                          @girish I think your info is a bit outdated, as their repo notes: https://github.com/s3fs-fuse/s3fs-fuse

                          Features

                          • large subset of POSIX including reading/writing files, directories, symlinks, mode, uid/gid, and extended attributes

                          Conscious tech

                          girishG 1 Reply Last reply
                          1
                          • robiR robi

                            @girish I think your info is a bit outdated, as their repo notes: https://github.com/s3fs-fuse/s3fs-fuse

                            Features

                            • large subset of POSIX including reading/writing files, directories, symlinks, mode, uid/gid, and extended attributes
                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #17

                            @robi interesting... I guess it would work then.

                            Let us know if it works (or not).

                            1 Reply Last reply
                            0
                            • girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #18

                              SSHFS continues - https://github.com/libfuse/sshfs/commit/551752c3a57def3c49ced08a6246fcfdd8640e7a

                              nichu42N 1 Reply Last reply
                              5
                              • avatar1024A Offline
                                avatar1024A Offline
                                avatar1024
                                wrote on last edited by avatar1024
                                #19

                                I also had issues with CIFS in the past, switch to SSHFS and all has been well, except a couple of times on trying to restore a cloudron to another server. This just happened to me again yesterday where the restore the server from backup doesn't work (loading the backup config file) and I get the following error:

                                "failed to mount (inactive): read: Connection reset by peer"
                                

                                The same error is also reported in this post.

                                For it to work I had to connect to CIFS.

                                Weirdly now, in the restore server, the same storage box connects fine as SSHFS for volumes (and I didn't do anything, Cloudron just restored my Volume config).

                                So personally, I think there is a bug somewhere in Cloudron that prevents mounting SSHFS for backup on Server restore, because mounting as SSHFS works fine otherwise.

                                1 Reply Last reply
                                2
                                • nebulonN Offline
                                  nebulonN Offline
                                  nebulon
                                  Staff
                                  wrote on last edited by
                                  #20

                                  Cloudron really just uses the native linux cifs tooling, but by experience cifs with hetzner every now and then results in a bad mountpoint, where a remount is required. So far the investigations why and when that happens were unfortunately inconclusive. At least for me the SSHFS option is a lot more stable.

                                  jdaviescoatesJ avatar1024A 2 Replies Last reply
                                  2
                                  • nebulonN nebulon

                                    Cloudron really just uses the native linux cifs tooling, but by experience cifs with hetzner every now and then results in a bad mountpoint, where a remount is required. So far the investigations why and when that happens were unfortunately inconclusive. At least for me the SSHFS option is a lot more stable.

                                    jdaviescoatesJ Offline
                                    jdaviescoatesJ Offline
                                    jdaviescoates
                                    wrote on last edited by
                                    #21

                                    @nebulon said in Hetzner Storage Box (CIFS):

                                    At least for me the SSHFS option is a lot more stable.

                                    Out of interest, have you testing doing a restore too as per @avatar1024 example above? 🤔

                                    I use Cloudron with Gandi & Hetzner

                                    1 Reply Last reply
                                    1
                                    • nebulonN nebulon

                                      Cloudron really just uses the native linux cifs tooling, but by experience cifs with hetzner every now and then results in a bad mountpoint, where a remount is required. So far the investigations why and when that happens were unfortunately inconclusive. At least for me the SSHFS option is a lot more stable.

                                      avatar1024A Offline
                                      avatar1024A Offline
                                      avatar1024
                                      wrote on last edited by
                                      #22

                                      @nebulon This has been my exact experience too, except when trying to restore a server where SSHFS fails and CIFS works (which arguably is pretty important 😓)

                                      And of course here someone also had mounting issues with SSHFS.

                                      SSHFS seems too good and reliable to be abandoned on Cloudron just yet, especially as while not actively maintained for new features / some issues, it is still maintained for critical issues.

                                      1 Reply Last reply
                                      1
                                      • BrutalBirdieB Offline
                                        BrutalBirdieB Offline
                                        BrutalBirdie
                                        Partner
                                        wrote on last edited by
                                        #23

                                        I am also using SSHFS everywhere when I can 😕

                                        Like my work? Consider donating a drink. Cheers!

                                        1 Reply Last reply
                                        0
                                        • girishG girish

                                          SSHFS continues - https://github.com/libfuse/sshfs/commit/551752c3a57def3c49ced08a6246fcfdd8640e7a

                                          nichu42N Offline
                                          nichu42N Offline
                                          nichu42
                                          wrote on last edited by
                                          #24

                                          @girish Will you keep "Hetzner Storage Box backend (based on rsync)" on your roadmap for 8.0?

                                          Matrix: @nichu42:blueplanet.social

                                          girishG 1 Reply Last reply
                                          2
                                          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