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. NocoDB
  3. Filesystem Mount inside Container

Filesystem Mount inside Container

Scheduled Pinned Locked Moved NocoDB
20 Posts 5 Posters 6.0k Views 5 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.
  • girishG girish

    @Supaiku said in Filesystem Mount inside Container:

    Not sure why it only works into the /srv/ directory though. Curious about that...

    currently, the list of directories that can be mounted into apps is hardcoded. This is done for basic security. Like you wouldn't want /home or /etc of host mounted into app by mistake or maliciously.

    SupaikuS Offline
    SupaikuS Offline
    Supaiku
    wrote on last edited by
    #9

    @girish that makes sense - I didn't see anything about this list or how it's hardcoded in the Docs, did I just miss that or is it not mentioned there?

    girishG 1 Reply Last reply
    0
    • SupaikuS Supaiku

      @girish that makes sense - I didn't see anything about this list or how it's hardcoded in the Docs, did I just miss that or is it not mentioned there?

      girishG Do not disturb
      girishG Do not disturb
      girish
      Staff
      wrote on last edited by girish
      #10

      @Supaiku indeed, it's not listed anywhere in the docs. I will get that sorted out.

      edit: added note in https://docs.cloudron.io/volumes/#filesystem

      SupaikuS 2 Replies Last reply
      1
      • girishG girish

        @Supaiku indeed, it's not listed anywhere in the docs. I will get that sorted out.

        edit: added note in https://docs.cloudron.io/volumes/#filesystem

        SupaikuS Offline
        SupaikuS Offline
        Supaiku
        wrote on last edited by
        #11

        @girish w00t! 🙂

        Interestingly in my case I was trying to add something mounted under /media/ but it wasn't working. Perhaps something else was amiss there or it was updated since.

        1 Reply Last reply
        0
        • girishG girish

          @Supaiku indeed, it's not listed anywhere in the docs. I will get that sorted out.

          edit: added note in https://docs.cloudron.io/volumes/#filesystem

          SupaikuS Offline
          SupaikuS Offline
          Supaiku
          wrote on last edited by
          #12

          @girish I actually discovered that what I thought had worked didn't, the symlinks to the mounted drive do not work (I had accidentally just used directories inside of directories that weren't properly symlinked, and there are also symlinked directories which do work), they give the same "hostPath does not exist" error even inside /srv/ (and also inside their non-symlinked mount point inside media)

          Why wouldn't these mount points be visible to cloudron?

          /etc/fstab line:

          UUID=29608fe1-0f6c-4326-b10f-94750492ba49 /media/r00buntu/Data ext4 defaults,users,rw,auto 0 0
          

          As you can see it's mounted within /media
          But it's also symlinked within the srv directory for example: /srv/rzn-bk/backups-sym and when trying to add that it won't add. Same goes for just /srv/backups-sym

          All host path does not exist...

          nebulonN girishG 2 Replies Last reply
          0
          • SupaikuS Supaiku

            @girish I actually discovered that what I thought had worked didn't, the symlinks to the mounted drive do not work (I had accidentally just used directories inside of directories that weren't properly symlinked, and there are also symlinked directories which do work), they give the same "hostPath does not exist" error even inside /srv/ (and also inside their non-symlinked mount point inside media)

            Why wouldn't these mount points be visible to cloudron?

            /etc/fstab line:

            UUID=29608fe1-0f6c-4326-b10f-94750492ba49 /media/r00buntu/Data ext4 defaults,users,rw,auto 0 0
            

            As you can see it's mounted within /media
            But it's also symlinked within the srv directory for example: /srv/rzn-bk/backups-sym and when trying to add that it won't add. Same goes for just /srv/backups-sym

            All host path does not exist...

            nebulonN Away
            nebulonN Away
            nebulon
            Staff
            wrote on last edited by
            #13

            @Supaiku have you tried to add a volume in Cloudron with the existing mountpoint option? The symlink as such will not work as Cloudron will resolve the mount point directly

            1 Reply Last reply
            1
            • SupaikuS Supaiku

              @girish I actually discovered that what I thought had worked didn't, the symlinks to the mounted drive do not work (I had accidentally just used directories inside of directories that weren't properly symlinked, and there are also symlinked directories which do work), they give the same "hostPath does not exist" error even inside /srv/ (and also inside their non-symlinked mount point inside media)

              Why wouldn't these mount points be visible to cloudron?

              /etc/fstab line:

              UUID=29608fe1-0f6c-4326-b10f-94750492ba49 /media/r00buntu/Data ext4 defaults,users,rw,auto 0 0
              

              As you can see it's mounted within /media
              But it's also symlinked within the srv directory for example: /srv/rzn-bk/backups-sym and when trying to add that it won't add. Same goes for just /srv/backups-sym

              All host path does not exist...

              girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by
              #14

              @Supaiku on Cloudron, the only way to expose paths from host into apps is to use Volumes.

              If you want to manage the mount on host yourself, first add a Volume using File system (mountpoint) - https://docs.cloudron.io/volumes/#filesystem-mountpoint . If possible, I would actually use one of the "managed" mount types instead of editing fstab directly, but I don't know your setup.

              After you have created the volume, you have to then "mount" this into whichever app(s) you want - https://docs.cloudron.io/apps/#mounts

              SupaikuS 1 Reply Last reply
              0
              • girishG girish

                @Supaiku on Cloudron, the only way to expose paths from host into apps is to use Volumes.

                If you want to manage the mount on host yourself, first add a Volume using File system (mountpoint) - https://docs.cloudron.io/volumes/#filesystem-mountpoint . If possible, I would actually use one of the "managed" mount types instead of editing fstab directly, but I don't know your setup.

                After you have created the volume, you have to then "mount" this into whichever app(s) you want - https://docs.cloudron.io/apps/#mounts

                SupaikuS Offline
                SupaikuS Offline
                Supaiku
                wrote on last edited by Supaiku
                #15

                @girish I also use the volume in my linux install on my home server for other services, so it's mounted when the server boots up

                trying to add it via the filesystem mountpoint results in the same error:
                d2ee227b-8297-4fc5-9b23-14fe70b99e9f-image.png

                It is a EXT4 formatted disk, so I tried that one and got this:
                c35b10c5-2cec-4768-86ba-6838d2c91f2d-image.png

                Perhaps because it's already mounted?
                9659986f-775d-430c-aceb-cfb7d92d963e-image.png

                I'll find an extra drive and hook it up and see if I can get it work with something fresh.

                girishG benborgesB 2 Replies Last reply
                0
                • SupaikuS Supaiku

                  @girish I also use the volume in my linux install on my home server for other services, so it's mounted when the server boots up

                  trying to add it via the filesystem mountpoint results in the same error:
                  d2ee227b-8297-4fc5-9b23-14fe70b99e9f-image.png

                  It is a EXT4 formatted disk, so I tried that one and got this:
                  c35b10c5-2cec-4768-86ba-6838d2c91f2d-image.png

                  Perhaps because it's already mounted?
                  9659986f-775d-430c-aceb-cfb7d92d963e-image.png

                  I'll find an extra drive and hook it up and see if I can get it work with something fresh.

                  girishG Do not disturb
                  girishG Do not disturb
                  girish
                  Staff
                  wrote on last edited by
                  #16

                  @Supaiku said in Filesystem Mount inside Container:

                  It is a EXT4 formatted disk, so I tried that one and got this:

                  There is a typo - it says /dev/diesk instead of /dev/disk . Could it be that?

                  SupaikuS 1 Reply Last reply
                  1
                  • SupaikuS Supaiku

                    @girish I also use the volume in my linux install on my home server for other services, so it's mounted when the server boots up

                    trying to add it via the filesystem mountpoint results in the same error:
                    d2ee227b-8297-4fc5-9b23-14fe70b99e9f-image.png

                    It is a EXT4 formatted disk, so I tried that one and got this:
                    c35b10c5-2cec-4768-86ba-6838d2c91f2d-image.png

                    Perhaps because it's already mounted?
                    9659986f-775d-430c-aceb-cfb7d92d963e-image.png

                    I'll find an extra drive and hook it up and see if I can get it work with something fresh.

                    benborgesB Offline
                    benborgesB Offline
                    benborges
                    wrote on last edited by
                    #17

                    @Supaiku When I needed filesystems mount a few months ago (on top of sshfs mounts) I remember I struggled quite a bit to mount filesystems folders, but one thing worked :

                    • Create /srv/YourFolder
                    • Symlink that folder to the folder you want on the filesystem
                    • mount that path inside Cloudron

                    0cfe3d69-62a1-4038-b72e-23f19f86c9fd-image.png

                    That's how I read SQLite files from other apps from say NocoDB or other cloudron apps.

                    BenB

                    robiR SupaikuS 2 Replies Last reply
                    2
                    • benborgesB benborges

                      @Supaiku When I needed filesystems mount a few months ago (on top of sshfs mounts) I remember I struggled quite a bit to mount filesystems folders, but one thing worked :

                      • Create /srv/YourFolder
                      • Symlink that folder to the folder you want on the filesystem
                      • mount that path inside Cloudron

                      0cfe3d69-62a1-4038-b72e-23f19f86c9fd-image.png

                      That's how I read SQLite files from other apps from say NocoDB or other cloudron apps.

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

                      @girish is this documented? app to app mounts?

                      Conscious tech

                      1 Reply Last reply
                      0
                      • benborgesB benborges

                        @Supaiku When I needed filesystems mount a few months ago (on top of sshfs mounts) I remember I struggled quite a bit to mount filesystems folders, but one thing worked :

                        • Create /srv/YourFolder
                        • Symlink that folder to the folder you want on the filesystem
                        • mount that path inside Cloudron

                        0cfe3d69-62a1-4038-b72e-23f19f86c9fd-image.png

                        That's how I read SQLite files from other apps from say NocoDB or other cloudron apps.

                        SupaikuS Offline
                        SupaikuS Offline
                        Supaiku
                        wrote on last edited by
                        #19

                        @benborges I did try that, but for some reason it wasn't working with the folders on other mounted drives.

                        I just went with the mount point mounts on a new hard drive, but it is odd I couldn't get it to work.

                        1 Reply Last reply
                        0
                        • girishG girish

                          @Supaiku said in Filesystem Mount inside Container:

                          It is a EXT4 formatted disk, so I tried that one and got this:

                          There is a typo - it says /dev/diesk instead of /dev/disk . Could it be that?

                          SupaikuS Offline
                          SupaikuS Offline
                          Supaiku
                          wrote on last edited by Supaiku
                          #20

                          @girish 😥 could be - at least for the uid one, but not for the file one

                          I just put another disk on that was fresh and used that with the filesystem mount.

                          1 Reply Last reply
                          0
                          • T THI_Staff referenced this topic on
                          • benborgesB benborges referenced this topic on
                          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