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. Nextcloud
  3. Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?

Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?

Scheduled Pinned Locked Moved Nextcloud
nextcloudcifsstorageboxhetzner
30 Posts 11 Posters 12.8k Views 13 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
      msbt
      App Dev
      wrote on last edited by
      #1

      I'm still looking for a decent way to have a lot of storage on a smaller/cheaper SSD cloud server (original issue). I've tried those 1400 VPS on Contabo, but the performance is terrible, that's why I'm looking to go back to Hetzner Cloud + Storagebox as primary storage. I remember trying to move the whole apps data on a Storagebox, but that didn't work out at all (probably because of the fs?). I was in contact with their support and they said it should be no problem to use it as CIFS mount, because this counts only as one connection (you're limited to 10 with the regular Storageboxes).

      The question is how to properly do it. Should we create a cloudron volume containing the Storagebox, mount it into the Nextcloud app, copy over the /app/data folder and change it in the config or will that result in the same issue that I've had before? What's the proper way to go here, any suggestions?

      nebulonN J girishG 3 Replies Last reply
      0
      • M msbt

        I'm still looking for a decent way to have a lot of storage on a smaller/cheaper SSD cloud server (original issue). I've tried those 1400 VPS on Contabo, but the performance is terrible, that's why I'm looking to go back to Hetzner Cloud + Storagebox as primary storage. I remember trying to move the whole apps data on a Storagebox, but that didn't work out at all (probably because of the fs?). I was in contact with their support and they said it should be no problem to use it as CIFS mount, because this counts only as one connection (you're limited to 10 with the regular Storageboxes).

        The question is how to properly do it. Should we create a cloudron volume containing the Storagebox, mount it into the Nextcloud app, copy over the /app/data folder and change it in the config or will that result in the same issue that I've had before? What's the proper way to go here, any suggestions?

        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        @msbt the Nextcloud package for Cloudron does not support changing the primary storage as such. You have to use the external storage plugin in Nextcloud. Maybe in the future we can integrate the volumes on Cloudron to be set as primary storage (ie /app/data) for apps, but we are not there yet.

        girishG M 2 Replies Last reply
        4
        • M msbt

          I'm still looking for a decent way to have a lot of storage on a smaller/cheaper SSD cloud server (original issue). I've tried those 1400 VPS on Contabo, but the performance is terrible, that's why I'm looking to go back to Hetzner Cloud + Storagebox as primary storage. I remember trying to move the whole apps data on a Storagebox, but that didn't work out at all (probably because of the fs?). I was in contact with their support and they said it should be no problem to use it as CIFS mount, because this counts only as one connection (you're limited to 10 with the regular Storageboxes).

          The question is how to properly do it. Should we create a cloudron volume containing the Storagebox, mount it into the Nextcloud app, copy over the /app/data folder and change it in the config or will that result in the same issue that I've had before? What's the proper way to go here, any suggestions?

          J Offline
          J Offline
          jagan
          wrote on last edited by
          #3

          @msbt I see no difference in pricing between Hetzner's storage box and storage share (nextcloud based).

          Just would like to know why do you think the Cloudron Nextcloud on Hetzner Cloud + Storagebox is better than the Storage Share itself?

          Just want to know the rationale if any, thanks!

          jdaviescoatesJ M 2 Replies Last reply
          0
          • J jagan

            @msbt I see no difference in pricing between Hetzner's storage box and storage share (nextcloud based).

            Just would like to know why do you think the Cloudron Nextcloud on Hetzner Cloud + Storagebox is better than the Storage Share itself?

            Just want to know the rationale if any, thanks!

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

            @jagan said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

            @msbt I see no difference in pricing between Hetzner's storage box and storage share (nextcloud based).

            Just would like to know why do you think the Cloudron Nextcloud on Hetzner Cloud + Storagebox is better than the Storage Share itself?

            Just want to know the rationale if any, thanks!

            I'd assume that part of it is Cloudron Nextcloud has SSO via LDAP to loads of other Cloudron apps and email server etc is all integrated.

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            2
            • nebulonN nebulon

              @msbt the Nextcloud package for Cloudron does not support changing the primary storage as such. You have to use the external storage plugin in Nextcloud. Maybe in the future we can integrate the volumes on Cloudron to be set as primary storage (ie /app/data) for apps, but we are not there yet.

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              @nebulon said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

              Maybe in the future we can integrate the volumes on Cloudron to be set as primary storage

              This won't work with CIFS because CIFS lacks permissions and things like symlinks (unlike ext4) right?

              1 Reply Last reply
              0
              • M msbt

                I'm still looking for a decent way to have a lot of storage on a smaller/cheaper SSD cloud server (original issue). I've tried those 1400 VPS on Contabo, but the performance is terrible, that's why I'm looking to go back to Hetzner Cloud + Storagebox as primary storage. I remember trying to move the whole apps data on a Storagebox, but that didn't work out at all (probably because of the fs?). I was in contact with their support and they said it should be no problem to use it as CIFS mount, because this counts only as one connection (you're limited to 10 with the regular Storageboxes).

                The question is how to properly do it. Should we create a cloudron volume containing the Storagebox, mount it into the Nextcloud app, copy over the /app/data folder and change it in the config or will that result in the same issue that I've had before? What's the proper way to go here, any suggestions?

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                @msbt I would try something like this:

                • Get large storage which is near the server
                • Mount the storage on the server via NFS. I think Hetzner storage box does not support NFS though 😕
                • Once mounted, move the appdata (under Resources) to the mount.

                I think the biggest blocker here is step 2 where Hetzner storage box does not support NFS. If you are in touch with hetzner support, would be good to understand why this is the case.

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

                  You would use the Hetzner storage box as a Minio instance, managed by Cloudron.

                  The Nextcloud instance could run on Cloudron and mount the Minio instance with rclone (manual).

                  Or, it could be a standalone Nextcloud instance configured to run directly on the object store from Minio. (Cannot be done with current container config for Nextcloud in Cloudron as it's an install time thing.)

                  Conscious tech

                  1 Reply Last reply
                  0
                  • J jagan

                    @msbt I see no difference in pricing between Hetzner's storage box and storage share (nextcloud based).

                    Just would like to know why do you think the Cloudron Nextcloud on Hetzner Cloud + Storagebox is better than the Storage Share itself?

                    Just want to know the rationale if any, thanks!

                    M Offline
                    M Offline
                    msbt
                    App Dev
                    wrote on last edited by
                    #8

                    Thanks for the replies, probably easiest if I just stick with Contabo and hope for a miracle 😆

                    @nebulon ah ok, I've tried using a storagebox as external storage quite a whole ago and the performance wasn't great, that's why I figured I could try to do that with primary storage

                    @jagan as @jdaviescoates suggested, LDAP and other apps are the reason for trying to accomplish that

                    @girish said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

                    This won't work with CIFS because CIFS lacks permissions and things like symlinks (unlike ext4) right?

                    ah yes, that's probably the reason why it wasn't working on the last attempt 😕

                    @girish said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

                    Get large storage which is near the server

                    any suggestions? 😉

                    @robi said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

                    Or, it could be a standalone Nextcloud instance configured to run directly on the object store from Minio. (Cannot be done with current container config for Nextcloud in Cloudron as it's an install time thing.)

                    thanks for the suggestions, but this sounds a bit too hacky to work properly for a long period of time 😬

                    marcusquinnM 1 Reply Last reply
                    1
                    • M msbt

                      Thanks for the replies, probably easiest if I just stick with Contabo and hope for a miracle 😆

                      @nebulon ah ok, I've tried using a storagebox as external storage quite a whole ago and the performance wasn't great, that's why I figured I could try to do that with primary storage

                      @jagan as @jdaviescoates suggested, LDAP and other apps are the reason for trying to accomplish that

                      @girish said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

                      This won't work with CIFS because CIFS lacks permissions and things like symlinks (unlike ext4) right?

                      ah yes, that's probably the reason why it wasn't working on the last attempt 😕

                      @girish said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

                      Get large storage which is near the server

                      any suggestions? 😉

                      @robi said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

                      Or, it could be a standalone Nextcloud instance configured to run directly on the object store from Minio. (Cannot be done with current container config for Nextcloud in Cloudron as it's an install time thing.)

                      thanks for the suggestions, but this sounds a bit too hacky to work properly for a long period of time 😬

                      marcusquinnM Offline
                      marcusquinnM Offline
                      marcusquinn
                      wrote on last edited by
                      #9

                      @msbt Hetzner VPS + Volume has worked flawlessly for us, and speed is decent, although I'd always like faster.

                      Can't comment on the pricing though, that just is what it is.

                      Maybe dig around with dedicated server configs and see if there's a setup with extra drives that would do what you're hoping for?

                      Or throw out a number for what sort of hosting budget you think it justifies and see what ideas come back from here within that?

                      Web Design https://www.evergreen.je
                      Development https://brandlight.org
                      Life https://marcusquinn.com

                      M 1 Reply Last reply
                      0
                      • marcusquinnM marcusquinn

                        @msbt Hetzner VPS + Volume has worked flawlessly for us, and speed is decent, although I'd always like faster.

                        Can't comment on the pricing though, that just is what it is.

                        Maybe dig around with dedicated server configs and see if there's a setup with extra drives that would do what you're hoping for?

                        Or throw out a number for what sort of hosting budget you think it justifies and see what ideas come back from here within that?

                        M Offline
                        M Offline
                        msbt
                        App Dev
                        wrote on last edited by
                        #10

                        @marcusquinn volumes aren't really an option either, I wouldn't want to pay ~100€ for 2TB of disk space. I do have one dedicated server left which would have plenty of space, but I would prefer a cloud server with SSDs, that specific server has only HDDs and they're rather slow. Maybe I'll opt with that storage share after all...

                        girishG marcusquinnM 2 Replies Last reply
                        0
                        • M msbt

                          @marcusquinn volumes aren't really an option either, I wouldn't want to pay ~100€ for 2TB of disk space. I do have one dedicated server left which would have plenty of space, but I would prefer a cloud server with SSDs, that specific server has only HDDs and they're rather slow. Maybe I'll opt with that storage share after all...

                          girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #11

                          @msbt If it's an option, why not use this slow server as just a "storage disk" which is mounted into a more expensive but SSD Cloudron installation?

                          M 1 Reply Last reply
                          2
                          • M msbt

                            @marcusquinn volumes aren't really an option either, I wouldn't want to pay ~100€ for 2TB of disk space. I do have one dedicated server left which would have plenty of space, but I would prefer a cloud server with SSDs, that specific server has only HDDs and they're rather slow. Maybe I'll opt with that storage share after all...

                            marcusquinnM Offline
                            marcusquinnM Offline
                            marcusquinn
                            wrote on last edited by
                            #12

                            @msbt Understood. I can see the dilemma but not really sure on the answer then

                            It feels like there's not a standard yet that gives both speed and affordability with Nextcloud. Unless I'm missing something too?

                            Somewhat related, I keep meaning to give Storj a try from both sides of that coin. This might be worth a look if you're interested in similar: https://filebase.com

                            Web Design https://www.evergreen.je
                            Development https://brandlight.org
                            Life https://marcusquinn.com

                            1 Reply Last reply
                            0
                            • girishG girish

                              @msbt If it's an option, why not use this slow server as just a "storage disk" which is mounted into a more expensive but SSD Cloudron installation?

                              M Offline
                              M Offline
                              msbt
                              App Dev
                              wrote on last edited by
                              #13

                              @girish because the server is like 4-5y old and it's only a Raid1, I don't have too much confidence in that old thing 😛

                              @marcusquinn the storage box CIFS mount (or the storage share if I get the usermanagement sorted) would be an option, this should work better than the remote webdav that I've tried back then, or maybe I'll try to make a custom package or something

                              1 Reply Last reply
                              1
                              • nebulonN nebulon

                                @msbt the Nextcloud package for Cloudron does not support changing the primary storage as such. You have to use the external storage plugin in Nextcloud. Maybe in the future we can integrate the volumes on Cloudron to be set as primary storage (ie /app/data) for apps, but we are not there yet.

                                M Offline
                                M Offline
                                msbt
                                App Dev
                                wrote on last edited by
                                #14

                                @msbt the Nextcloud package for Cloudron does not support changing the primary storage as such. You have to use the external storage plugin in Nextcloud. Maybe in the future we can integrate the volumes on Cloudron to be set as primary storage (ie /app/data) for apps, but we are not there yet.

                                I just poked around a little and added a storage box as a cloudron-volume and mounted it into the Nextcloud app. After changing 'datadirectory' => '/app/data', to point to the mount and cp'ed over my files, it said

                                Your data directory is invalid. Ensure there is a file called ".ocdata" in the root of the data directory.

                                Obviously I also created/touched the file but the message wouldn't go away, is that because the mount is added as the "cloudron" user and www-data can't access/write into it or is there some tougher apache/htaccess stuff that I would need to adjust? If it was only the permissions, is there a way to mount the directory as someone else?

                                girishG 1 Reply Last reply
                                0
                                • M msbt

                                  @msbt the Nextcloud package for Cloudron does not support changing the primary storage as such. You have to use the external storage plugin in Nextcloud. Maybe in the future we can integrate the volumes on Cloudron to be set as primary storage (ie /app/data) for apps, but we are not there yet.

                                  I just poked around a little and added a storage box as a cloudron-volume and mounted it into the Nextcloud app. After changing 'datadirectory' => '/app/data', to point to the mount and cp'ed over my files, it said

                                  Your data directory is invalid. Ensure there is a file called ".ocdata" in the root of the data directory.

                                  Obviously I also created/touched the file but the message wouldn't go away, is that because the mount is added as the "cloudron" user and www-data can't access/write into it or is there some tougher apache/htaccess stuff that I would need to adjust? If it was only the permissions, is there a way to mount the directory as someone else?

                                  girishG Offline
                                  girishG Offline
                                  girish
                                  Staff
                                  wrote on last edited by
                                  #15

                                  @msbt Does CIFS support filenames starting with "." ?

                                  robiR M 2 Replies Last reply
                                  0
                                  • girishG girish

                                    @msbt Does CIFS support filenames starting with "." ?

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

                                    @girish If CIFS is available in a POSIX ecosystem, it must, no?

                                    Conscious tech

                                    1 Reply Last reply
                                    0
                                    • girishG girish

                                      @msbt Does CIFS support filenames starting with "." ?

                                      M Offline
                                      M Offline
                                      msbt
                                      App Dev
                                      wrote on last edited by
                                      #17

                                      @girish good question, I'll try sshfs later, read a few tutorials of people that are using that (like https://juliane.alton.at/roland/rolog/mounting-storage-sshfs or https://www.d-photos.de/nextcloud-in-der-hetzner-cloud/), so I can rule out that part.

                                      M 1 Reply Last reply
                                      1
                                      • M msbt

                                        @girish good question, I'll try sshfs later, read a few tutorials of people that are using that (like https://juliane.alton.at/roland/rolog/mounting-storage-sshfs or https://www.d-photos.de/nextcloud-in-der-hetzner-cloud/), so I can rule out that part.

                                        M Offline
                                        M Offline
                                        msbt
                                        App Dev
                                        wrote on last edited by msbt
                                        #18

                                        Ok so quick update here: I was following the mount procedure from the first link and it's looking good! However, I started with a fresh installation instead of moving my files around, but seeing as it worked out, migrating an existing installation should be no problem either.

                                        So what I did:

                                        • deployed a new Cloudron with Nextcloud installed on a fresh CPX21 on Hetzner Cloud (kept it at 40GB though, might scale down if performance allows it)
                                        • mounted a 5TB Hetzner Storagebox via sshfs into /mnt/cloud and added it as Cloudron volume (/media/cloud)
                                        • mounted that volume into the Nextcloud app (uncheck read-only)
                                        • change the datadirectory in config/config.php from 'datadirectory' => '/app/data', to 'datadirectory' => '/media/cloud',
                                        • cp -r /app/data/admin to the mounted volume and touch .ocdata in /media/cloud

                                        That's pretty much it I reckon, if you log in now you have this extra storage available:
                                        13da2c2f-cb18-48c9-b90c-950c44bf2770-grafik.png

                                        I have both, uploaded a few GB manually and the rest via sync client, no errors so far. A restart won't change the datadirectory, so this should continue working after reboots. Encryption is also enabled and working as intended, still waiting for something that doesn't work properly.

                                        andreasduerenA jcgonnardJ 2 Replies Last reply
                                        7
                                        • M msbt

                                          Ok so quick update here: I was following the mount procedure from the first link and it's looking good! However, I started with a fresh installation instead of moving my files around, but seeing as it worked out, migrating an existing installation should be no problem either.

                                          So what I did:

                                          • deployed a new Cloudron with Nextcloud installed on a fresh CPX21 on Hetzner Cloud (kept it at 40GB though, might scale down if performance allows it)
                                          • mounted a 5TB Hetzner Storagebox via sshfs into /mnt/cloud and added it as Cloudron volume (/media/cloud)
                                          • mounted that volume into the Nextcloud app (uncheck read-only)
                                          • change the datadirectory in config/config.php from 'datadirectory' => '/app/data', to 'datadirectory' => '/media/cloud',
                                          • cp -r /app/data/admin to the mounted volume and touch .ocdata in /media/cloud

                                          That's pretty much it I reckon, if you log in now you have this extra storage available:
                                          13da2c2f-cb18-48c9-b90c-950c44bf2770-grafik.png

                                          I have both, uploaded a few GB manually and the rest via sync client, no errors so far. A restart won't change the datadirectory, so this should continue working after reboots. Encryption is also enabled and working as intended, still waiting for something that doesn't work properly.

                                          andreasduerenA Offline
                                          andreasduerenA Offline
                                          andreasdueren
                                          wrote on last edited by
                                          #19

                                          @msbt said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

                                          Ok so quick update here: I was following the mount procedure from the first link and it's looking good! However, I started with a fresh installation instead of moving my files around, but seeing as it worked out, migrating an existing installation should be no problem either.

                                          So what I did:

                                          • deployed a new Cloudron with Nextcloud installed on a fresh CPX21 on Hetzner Cloud (kept it at 40GB though, might scale down if performance allows it)
                                          • mounted a 5TB Hetzner Storagebox via sshfs into /mnt/cloud and added it as Cloudron volume (/media/cloud)
                                          • mounted that volume into the Nextcloud app (uncheck read-only)
                                          • change the datadirectory in config/config.php from 'datadirectory' => '/app/data', to 'datadirectory' => '/media/cloud',
                                          • cp -r /app/data/admin to the mounted volume and touch .ocdata in /media/cloud

                                          That's pretty much it I reckon, if you log in now you have this extra storage available:
                                          13da2c2f-cb18-48c9-b90c-950c44bf2770-grafik.png

                                          I have both, uploaded a few GB manually and the rest via sync client, no errors so far. A restart won't change the datadirectory, so this should continue working after reboots. Encryption is also enabled and working as intended, still waiting for something that doesn't work properly.

                                          Thank you so much for the documentation! Could you maybe explain how you mounted the volume via ssh? I added it directly via cloudron and that doesn't seem to work. I can move files there and change the directory but nextcloud is not able to write on it.

                                          andreasduerenA 1 Reply Last reply
                                          0
                                          • andreasduerenA andreasdueren

                                            @msbt said in Has anyone set up Nextcloud with a Hetzner Storagebox cifs mount as primary storage?:

                                            Ok so quick update here: I was following the mount procedure from the first link and it's looking good! However, I started with a fresh installation instead of moving my files around, but seeing as it worked out, migrating an existing installation should be no problem either.

                                            So what I did:

                                            • deployed a new Cloudron with Nextcloud installed on a fresh CPX21 on Hetzner Cloud (kept it at 40GB though, might scale down if performance allows it)
                                            • mounted a 5TB Hetzner Storagebox via sshfs into /mnt/cloud and added it as Cloudron volume (/media/cloud)
                                            • mounted that volume into the Nextcloud app (uncheck read-only)
                                            • change the datadirectory in config/config.php from 'datadirectory' => '/app/data', to 'datadirectory' => '/media/cloud',
                                            • cp -r /app/data/admin to the mounted volume and touch .ocdata in /media/cloud

                                            That's pretty much it I reckon, if you log in now you have this extra storage available:
                                            13da2c2f-cb18-48c9-b90c-950c44bf2770-grafik.png

                                            I have both, uploaded a few GB manually and the rest via sync client, no errors so far. A restart won't change the datadirectory, so this should continue working after reboots. Encryption is also enabled and working as intended, still waiting for something that doesn't work properly.

                                            Thank you so much for the documentation! Could you maybe explain how you mounted the volume via ssh? I added it directly via cloudron and that doesn't seem to work. I can move files there and change the directory but nextcloud is not able to write on it.

                                            andreasduerenA Offline
                                            andreasduerenA Offline
                                            andreasdueren
                                            wrote on last edited by
                                            #20

                                            @andreasdueren Screenshot 2022-01-29 at 08.43.48.png It won't show it as a proper volume either.

                                            Plus for some reason my internal volume is now almost completely full with mystery data.

                                            Screenshot 2022-01-29 at 08.42.43.png

                                            M 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