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
  • Brite
  • 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. Disk often full, cannot be extended, what remediations exist?

Disk often full, cannot be extended, what remediations exist?

Scheduled Pinned Locked Moved Solved Support
18 Posts 5 Posters 426 Views 6 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
    #7

    And here is my terminal output from my personal Cloudron:

    root@my-hackradt-com:~# ls -lah /home/yellowtent/
    total 32K
    drwxr-xr-x 5 yellowtent yellowtent 4.0K Jul  2 18:49 .
    drwxr-xr-x 4 root       root       4.0K Oct  3  2024 ..
    -rw-r--r-- 1 yellowtent yellowtent  220 Mar 31  2024 .bash_logout
    -rw-r--r-- 1 yellowtent yellowtent 3.7K Mar 31  2024 .bashrc
    -rw-r--r-- 1 yellowtent yellowtent    0 Jul 16  2024 .cloud-locale-test.skip
    drwx------ 2 yellowtent yellowtent 4.0K Nov  9  2024 .gnupg
    -rw-r--r-- 1 yellowtent yellowtent  807 Mar 31  2024 .profile
    drwx------ 2 yellowtent yellowtent 4.0K Oct  3  2024 .ssh
    lrwxrwxrwx 1 root       root         54 Jul  2 18:48 appsdata -> /mnt/my-hackradt-com-Cloudron-Data/yellowtent/appsdata
    drwxr-xr-x 8 yellowtent yellowtent 4.0K Jul 21 12:02 box
    lrwxrwxrwx 1 root       root         53 Jul  2 18:49 boxdata -> /mnt/my-hackradt-com-Cloudron-Data/yellowtent/boxdata
    lrwxrwxrwx 1 root       root         58 Jul  2 18:49 platformdata -> /mnt/my-hackradt-com-Cloudron-Data/yellowtent/platformdata
    

    I did not move the Docker Images Location since I did not need that for this server.
    And here is a screenshot of my Hetzner UI.
    I've used this setup for 10 months with little to no issues.
    75b00462-d47c-46ca-8c6d-da9c0ec4918e-image.png

    Like my work? Consider donating a drink. Cheers!

    1 Reply Last reply
    1
    • SansGuidonS Offline
      SansGuidonS Offline
      SansGuidon
      wrote on last edited by
      #8

      Thank you, this clarifies things
      Now the pros and cons of opting for either hetzner volumes vs using cloudron volumes is unclear to me, you mention the data directory can also be moved app-per-app via Cloudron UI. I've opted for moving the appsdata folder manually for all apps to a new location, following the guide at https://docs.cloudron.io/storage/#default-data-directory but this seems a different strategy than switching data directory from Cloudron Admin UI and mounting Cloudron volumes.

      About me / Now

      BrutalBirdieB 1 Reply Last reply
      0
      • SansGuidonS SansGuidon

        Thank you, this clarifies things
        Now the pros and cons of opting for either hetzner volumes vs using cloudron volumes is unclear to me, you mention the data directory can also be moved app-per-app via Cloudron UI. I've opted for moving the appsdata folder manually for all apps to a new location, following the guide at https://docs.cloudron.io/storage/#default-data-directory but this seems a different strategy than switching data directory from Cloudron Admin UI and mounting Cloudron volumes.

        BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote on last edited by BrutalBirdie
        #9

        @SansGuidon said in Disk often full, cannot be extended, what remediations exist?:

        Now the pros and cons of opting for either hetzner volumes vs using cloudron volumes

        You can use a Hetzner Volume with Cloudron Volumes.
        What you should not do is use a Hetzner Volume as a Cloudron Volume for a full move which is described in https://docs.cloudron.io/storage/#storage.
        Example, you get a 100GB Hetzner Volume, add this in the Cloudron Dashboard as a volume and then move /home/yellowtent/$DIR into this location.
        This, you should not do!


        In my opinion, the pro of using a Cloudron Volume and moving each app to this volume with the GUI is, you stick to the way it is meant to be done and what is officially supported.

        On the other hand, I am lazy, I don't want to move every app, I have 30x+ apps.
        I just move the whole thing and also include:

        lrwxrwxrwx 1 root       root         53 Jul  2 18:49 boxdata -> /mnt/my-hackradt-com-Cloudron-Data/yellowtent/boxdata
        lrwxrwxrwx 1 root       root         58 Jul  2 18:49 platformdata -> /mnt/my-hackradt-com-Cloudron-Data/yellowtent/platformdata
        

        This way, all appsdata, all boxdata and all platformdata is on a separate volume.
        And when I need more storage, I just increase the Hetzner Volume, resize it in the terminal, and I am done.

        Like my work? Consider donating a drink. Cheers!

        1 Reply Last reply
        0
        • SansGuidonS Offline
          SansGuidonS Offline
          SansGuidon
          wrote on last edited by
          #10

          Thanks for the advise. Currently I'm in a weird situation, as I've followed the guide step by step and Cloudron starts but my apps do not show any data anymore.

          About me / Now

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

            I will send you a DM.

            Like my work? Consider donating a drink. Cheers!

            1 Reply Last reply
            2
            • BrutalBirdieB BrutalBirdie

              There is a difference between Cloudron Volumes and Hetzner Volumes.
              In the guide is written:

              Do not use a Cloudron Volume as storage location for the directories below. Set up fstab or systemd mount manually.

              @SansGuidon said in Disk often full, cannot be extended, what remediations exist?:

              The guide advises to not use symlinks

              It states:

              While symlinking various directories will work, this is not supported.

              It works, but is not officially supported.
              Meaning, yes you can do that, but when you have an issue, you will get less or no support.

              @SansGuidon said in Disk often full, cannot be extended, what remediations exist?:

              As far as I understand it, the guide seems to cover the case for a full migration of docker images or apps data but it is unclear to me how to tackle this only for specific apps, and if that's a supported scenario.

              That what Cloudron Volumes are for.
              You can add a Hetzner Volume and mount it to e.g /mnt/hetzner-volume/ and then in the Cloudron Dashboard at volumes do the following:
              1fb7f9ab-7608-4797-93fb-70a49072601f-image.png
              Then, for each app you can move the data directory.
              Like it is described in the doc https://docs.cloudron.io/apps/#data-directory and https://docs.cloudron.io/volumes
              a9c2d2eb-2c1f-468c-8023-83bbcd7a0919-image.png

              @SansGuidon said in Disk often full, cannot be extended, what remediations exist?:

              I also read several times it was advised not to touch the Cloudron server configuration except via the UI, to ensure future Cloudron upgrades, backups, restore etc would work.
              I guess this is a specific case that requires anyway to touch the terminal, but is it well supported by Cloudron (future upgrades etc)?

              Let me quote the doc again:

              While symlinking various directories will work, this is not supported.

              Officially, this is not supported to reduce support.
              But it does work.
              And yes, you should not touch the underlaying Server. But it is still your server. If you know what you do and can handle certain issues yourself you can do tasks on the root level.


              I am doing this for almost all my servers and can tell you, I rarely had issues.
              The only issues that ever appeared was when Hetzner Cloud Volumes had some outages (which rarely happens).

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

              @BrutalBirdie said in Disk often full, cannot be extended, what remediations exist?:

              I really had issues.

              s/really/rarely 😉

              I use Cloudron with Gandi & Hetzner

              BrutalBirdieB 1 Reply Last reply
              1
              • jdaviescoatesJ jdaviescoates

                @BrutalBirdie said in Disk often full, cannot be extended, what remediations exist?:

                I really had issues.

                s/really/rarely 😉

                BrutalBirdieB Offline
                BrutalBirdieB Offline
                BrutalBirdie
                Partner
                wrote on last edited by
                #13

                @jdaviescoates Good Catch 😄

                Like my work? Consider donating a drink. Cheers!

                1 Reply Last reply
                1
                • SansGuidonS Offline
                  SansGuidonS Offline
                  SansGuidon
                  wrote on last edited by
                  #14

                  I solved the problem, not sure what had the most impact:

                  Change permissions on my mount points/symlinks:

                  chown yellowtent:yellowtent /mnt/appsdata
                  chown yellowtent:yellowtent /mnt/appsdata/appsdata
                  

                  Reboot: not mentioned in the guides but after changing permissions and rebooting, the problem was solved compared to several attempts before this, without reboot and with improper permissions changes.
                  The permissions and reboot parts are not mentioned in the guide for doing those operations if I'm right, so I'm not sure this was really needed, anyway I prefer to share 🙂

                  Thanks to @BrutalBirdie for all the feedback above and the proposed support (in DM), this community is awesome!

                  About me / Now

                  1 Reply Last reply
                  2
                  • jamesJ james has marked this topic as solved on
                  • SansGuidonS Offline
                    SansGuidonS Offline
                    SansGuidon
                    wrote last edited by
                    #15

                    To add to the story, I've noticed that Cloudron system will often fill the disk with /var/log/syslog, this is patched for Cloudron 9 but for Cloudron 8.x however users are forced to patch manually 😢 , see https://forum.cloudron.io/topic/13361/after-ubuntu-22-24-upgrade-syslog-getting-spammed-and-grows-way-to-much-clogging-up-the-diskspace/6?_=1756455716990

                    I'm a bit confused that such a problem remains to patch manually for half a year anyway I've applied it.

                    systemctl stop rsyslog syslog.socket
                    truncate -s 0 /var/log/syslog.*
                    rsystemctl restart cloudron-syslog.service
                    systemctl start rsyslog syslog.socket
                    

                    About me / Now

                    1 Reply Last reply
                    2
                    • scookeS Offline
                      scookeS Offline
                      scooke
                      wrote last edited by
                      #16

                      I was in a similar situation as you. However, rather than bashing my head (figuratively) against the same wall, i just moved to a vps with more space. Granted, this was before using external volumes was as easy as it is now. But reading that your two main apps are Immich and Sync thing... there's two walls.

                      Listen, there are amazing workarounds and solutions offered by Cloudron and from others on this forum. But, I've never viewed any of this as "recommended and official"; it's more, "enough people refuse to/can't do the obvious, so how can we help them?" The obvious being - get a server or vps or whatever that has all the space you need. It's one reason I moved to ssdnodes (but just enough users have not had a good experience with them so this isn't an ad, I've just had excellent results with them and the 1.2tb server they offer.)

                      A life lived in fear is a life half-lived

                      SansGuidonS 1 Reply Last reply
                      1
                      • scookeS scooke

                        I was in a similar situation as you. However, rather than bashing my head (figuratively) against the same wall, i just moved to a vps with more space. Granted, this was before using external volumes was as easy as it is now. But reading that your two main apps are Immich and Sync thing... there's two walls.

                        Listen, there are amazing workarounds and solutions offered by Cloudron and from others on this forum. But, I've never viewed any of this as "recommended and official"; it's more, "enough people refuse to/can't do the obvious, so how can we help them?" The obvious being - get a server or vps or whatever that has all the space you need. It's one reason I moved to ssdnodes (but just enough users have not had a good experience with them so this isn't an ad, I've just had excellent results with them and the 1.2tb server they offer.)

                        SansGuidonS Offline
                        SansGuidonS Offline
                        SansGuidon
                        wrote last edited by SansGuidon
                        #17

                        @scooke Thanks for the suggestion,
                        while I admit this is a way to move forward, moving to a bigger vps/storage with my provider (Hetzner) would cost me money. I do not want to waste any money to create room for wasted storage. But I understand the advice which is pragmatic. However I find also satisfaction in understanding the root cause of a problem, and sharing the findings with the community rather than throwing dust under the carpet. For now I've been able to mitigate the issue and develop some scripts to monitor logs usage per container. Syncthing is indeed an issue but the main problem seems that there are too many logs generated/kept by application in Cloudron and it seems it's an issue with log management in Cloudron on Ubuntu. I could fix this with some extra logrotate configs on the server to prevent the log files to grow up to many GB in size.
                        Of course some apps might generate lot of activity, but I do not believe this is the main problem, and for now I do not want to waste TB of storage for logs when I could use this for data. So I've tuned the config to reduce proliferation of logs. I've learned some things in the process, about Cloudron & its logs management, about why there were so many issues reported in this forum about disk being full, and I'm happy to see it's partially solved in Cloudron 9.
                        The obvious thing for me is always to understand things and try to find the root cause. however I understand also why for lot of people, the most obvious thing is to throw more Resources (CPU/GPU/Storage) at a problem to not waste time on optimization/maintenance. But for my own education I like to dig deeper when my gut feeling tells me there is a shitty story behind a bug 😆

                        About me / Now

                        1 Reply Last reply
                        2
                        • SansGuidonS Offline
                          SansGuidonS Offline
                          SansGuidon
                          wrote last edited by
                          #18

                          From a deeper investigation, it seems that is has to do with backups and not with Syncthing or Photos app.
                          4 times a day, Uptime Kuma is backed up, and each time the heartbeat table is dumped into syslog, growing the syslog by 1-2GBs each time. More details in https://forum.cloudron.io/post/112261

                          About me / Now

                          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