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. Trying to add an sshfs mounted location as a regular file system volume type in Cloudron

Trying to add an sshfs mounted location as a regular file system volume type in Cloudron

Scheduled Pinned Locked Moved Unsolved Support
8 Posts 5 Posters 82 Views 4 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.
  • M Offline
    M Offline
    makemrproper
    wrote last edited by makemrproper
    #1

    Trying to add an sshfs mounted location as a regular filesystem volume type in Cloudron.

    I have a working SSHFS mount in /mnt/folder

    When trying to I am trying to add the /mnt/folder to Cloudron as a filesystem volume type, I am getting this error: hostPath must be a realpath without symlinks

    The reason I want to do this, is because Cloudron will not let me use an SSHFS volume as a data-volume for my (immich) Cloudron-app.

    debug:
    sshfs mount works perfectly
    permissions are lax, set to 777 on the mountpoint folder

    more background of why I want to do this here: https://forum.cloudron.io/topic/12239/storage-management-in-immich/46

    Thanks for any suggestions!

    Cloudron fan
    Paying Customer

    1 Reply Last reply
    2
    • M makemrproper referenced this topic
    • andreasduerenA Offline
      andreasduerenA Offline
      andreasdueren
      wrote last edited by
      #2

      Following this topic for the same reasons

      1 Reply Last reply
      0
      • jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote last edited by
        #3

        Hello @makemrproper
        Let me repeat what I understood.
        You have a working sshfs mount at /mnt/folder.
        You want to use regular file as a Cloudron volume type? This type does not exist. Did you mean filesystem volume type?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          makemrproper
          wrote last edited by
          #4

          I meant Filesystem Volume type, yes. Will update original post to reflect this.

          Cloudron fan
          Paying Customer

          1 Reply Last reply
          0
          • M Offline
            M Offline
            makemrproper
            wrote last edited by
            #5

            I will look into solving this at the hypervisor level and exposing folders to the guest vm that way.

            Cloudron fan
            Paying Customer

            1 Reply Last reply
            0
            • D Offline
              D Offline
              djxx
              wrote last edited by
              #6

              I'm facing the same issue with Nextcloud and trying to tune the performance of SSHFS (https://forum.cloudron.io/topic/13852/sshfs-read-speed-significantly-slower-than-scp-with-the-same-target/9) . The answer, at least for Nextcloud, is to adjust the configuration file. Instead of trying to "trick" Cloudron into accepting an SSHFS mount point as the primary storage, just adjust the applications config file to point to the mount point. Not sure if it will work for Immich, but it works for Nextcloud.

              Also, I'm doing this with Nextcloud for the exact same reason - I want to manage my pictures. I'm trying the "Memories" plugin in Nextcloud which has prettty good reviews. I'll probably move on to Immich next for testing. 🙂

              1 Reply Last reply
              2
              • M Offline
                M Offline
                makemrproper
                wrote last edited by makemrproper
                #7

                Sounds like the case is identical, yes :).

                Great workaround! I will try it.

                Solving it at the hypervisor level is not any better than directly on the cloudron vm. There is no way to share a folder to a vm. Only nfs, cifs, sshfs or direct block device.

                The reason is that our phones are growing, and at current I need to sync 5x family members phones at 1tb. Not insane anounts of course, but way beyond the m2.ssd cloudron is running on.

                Cloudron fan
                Paying Customer

                robiR 1 Reply Last reply
                2
                • M makemrproper

                  Sounds like the case is identical, yes :).

                  Great workaround! I will try it.

                  Solving it at the hypervisor level is not any better than directly on the cloudron vm. There is no way to share a folder to a vm. Only nfs, cifs, sshfs or direct block device.

                  The reason is that our phones are growing, and at current I need to sync 5x family members phones at 1tb. Not insane anounts of course, but way beyond the m2.ssd cloudron is running on.

                  robiR Offline
                  robiR Offline
                  robi
                  wrote last edited by
                  #8

                  @makemrproper said in Trying to add an sshfs mounted location as a regular file system volume type in Cloudron:

                  or direct block device

                  https://linbit.com/drbd/ is the gold standard.

                  Conscious tech

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