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. Cannot update due to one tiny app filling up 20GB drive

Cannot update due to one tiny app filling up 20GB drive

Scheduled Pinned Locked Moved Solved Support
updatesdisk space
19 Posts 6 Posters 2.9k 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.
  • jdaviescoatesJ jdaviescoates

    @nebulon I'd say what I'm now looking for is for it to be made clear that the bare minimum evidently needs to be higher than 20GB, because even with only one tiny Uptime Kuma app with only 161.21 MB of data it is not possible to update with just 20GB.

    I also wonder how much extra space would be needed for the update to successfully run?

    Perhaps something like 25GB is the real bare minimum if one wants updates to work?

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

    @jdaviescoates it might also depend on the images of your hosting provider. I have a few 20GB machines at Hetzner (although your signature mentions that as well) which have WordPress and webmail installed and still a few GB to spare:

    before update (v7.3.4)
    3df56122-cd08-4deb-a4b9-c4eb1fdf4533-grafik.png

    after update (v7.3.5)
    7e332e13-d895-42ae-bd10-b7b89ff2143a-grafik.png

    You can try to run a docker image prune -a and see if you gain some of that space back, but it seems your Ubuntu image is already taking up almost 2GB more than the one on my Hetzner Cloud server.

    jdaviescoatesJ 1 Reply Last reply
    2
    • M msbt

      @jdaviescoates it might also depend on the images of your hosting provider. I have a few 20GB machines at Hetzner (although your signature mentions that as well) which have WordPress and webmail installed and still a few GB to spare:

      before update (v7.3.4)
      3df56122-cd08-4deb-a4b9-c4eb1fdf4533-grafik.png

      after update (v7.3.5)
      7e332e13-d895-42ae-bd10-b7b89ff2143a-grafik.png

      You can try to run a docker image prune -a and see if you gain some of that space back, but it seems your Ubuntu image is already taking up almost 2GB more than the one on my Hetzner Cloud server.

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

      @msbt said in Cannot update due to one tiny app filling up 20GB drive:

      docker image prune -a

      Thanks, this machine is actually on Netcup. Perhaps their Ubuntu image is bigger for some reason.

      I ran that docker command which did free up some space, but still not enough for the update to run.

      I use Cloudron with Gandi & Hetzner

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

        @jdaviescoates The updater checks if the server has atleast 2GB space (hardcoded).

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

          Maybe you can reduce the swap space to 1GB to get reclaim some space. I think sudo swapoff -a . Then, truncate -s 1G /apps.swap and sudo swapon -a.

          jdaviescoatesJ 2 Replies Last reply
          1
          • girishG girish

            Maybe you can reduce the swap space to 1GB to get reclaim some space. I think sudo swapoff -a . Then, truncate -s 1G /apps.swap and sudo swapon -a.

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

            @girish said in Cannot update due to one tiny app filling up 20GB drive:

            @jdaviescoates The updater checks if the server has atleast 2GB space (hardcoded).

            Go to know, thanks.

            Would be nice if the Event log error specified that.

            So, instead of just:

            Cloudron update errored. Error: Not enough disk space

            Have it say:

            Cloudron update errored. Error: Not enough disk space. Updates require at least 2GB of free space

            @girish said in Cannot update due to one tiny app filling up 20GB drive:

            Maybe you can reduce the swap space to 1GB to get reclaim some space. I think sudo swapoff -a . Then, truncate -s 1G /apps.swap and sudo swapon -a.

            Thanks, sounds like that would probably work, but I don't understand enough about what swap is used for to know what the longer term implications of that might be?

            But presumably I could easily up it back to 2GB after the update?

            I use Cloudron with Gandi & Hetzner

            girishG 1 Reply Last reply
            1
            • jdaviescoatesJ jdaviescoates

              @girish said in Cannot update due to one tiny app filling up 20GB drive:

              @jdaviescoates The updater checks if the server has atleast 2GB space (hardcoded).

              Go to know, thanks.

              Would be nice if the Event log error specified that.

              So, instead of just:

              Cloudron update errored. Error: Not enough disk space

              Have it say:

              Cloudron update errored. Error: Not enough disk space. Updates require at least 2GB of free space

              @girish said in Cannot update due to one tiny app filling up 20GB drive:

              Maybe you can reduce the swap space to 1GB to get reclaim some space. I think sudo swapoff -a . Then, truncate -s 1G /apps.swap and sudo swapon -a.

              Thanks, sounds like that would probably work, but I don't understand enough about what swap is used for to know what the longer term implications of that might be?

              But presumably I could easily up it back to 2GB after the update?

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

              @jdaviescoates Good suggestion, I have fixed the error message.

              As for swap, you can see free -m to see how much swap your server is using. Overall, swap is just disk space to use as RAM when your actual RAM is full. This is very hard to know if it's needed for your server. But for just uptime kuma on Cloudron, it's probably not needed.

              1 Reply Last reply
              1
              • girishG girish

                Maybe you can reduce the swap space to 1GB to get reclaim some space. I think sudo swapoff -a . Then, truncate -s 1G /apps.swap and sudo swapon -a.

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

                @girish said in Cannot update due to one tiny app filling up 20GB drive:

                sudo swapoff -a .

                That didn't work, I think possibly because there was more in swap than there was free RAM or something (swapoff: /apps.swap: swapoff failed: Cannot allocate memory)

                total        used        free      shared  buff/cache   available
                Mem:           1.9G        897M         59M         33M        1.0G        1.0G
                Swap:          1.9G        193M        1.8G
                

                So I tried just commenting out the swap in /etc/fstab and rebooting

                But that didn't help either as whilst it gave me a tiny bit more space most of it seems to have just ended up in Everything else (Ubuntu etc) instead 🤦

                cac32333-b5c4-4bab-8d63-7cc8001b0a62-image.png

                ``

                I use Cloudron with Gandi & Hetzner

                girishG 1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  @girish said in Cannot update due to one tiny app filling up 20GB drive:

                  sudo swapoff -a .

                  That didn't work, I think possibly because there was more in swap than there was free RAM or something (swapoff: /apps.swap: swapoff failed: Cannot allocate memory)

                  total        used        free      shared  buff/cache   available
                  Mem:           1.9G        897M         59M         33M        1.0G        1.0G
                  Swap:          1.9G        193M        1.8G
                  

                  So I tried just commenting out the swap in /etc/fstab and rebooting

                  But that didn't help either as whilst it gave me a tiny bit more space most of it seems to have just ended up in Everything else (Ubuntu etc) instead 🤦

                  cac32333-b5c4-4bab-8d63-7cc8001b0a62-image.png

                  ``

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

                  @jdaviescoates you have to actually delete the swap file /apps.swap to get the space back.

                  jdaviescoatesJ 1 Reply Last reply
                  1
                  • girishG girish

                    @jdaviescoates you have to actually delete the swap file /apps.swap to get the space back.

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

                    @girish said in Cannot update due to one tiny app filling up 20GB drive:

                    @jdaviescoates you have to actually delete the swap file /apps.swap to get the space back.

                    Thanks! That did the job, I'm now updating. Finally!

                    I use Cloudron with Gandi & Hetzner

                    scookeS 1 Reply Last reply
                    1
                    • jdaviescoatesJ jdaviescoates

                      @girish said in Cannot update due to one tiny app filling up 20GB drive:

                      @jdaviescoates you have to actually delete the swap file /apps.swap to get the space back.

                      Thanks! That did the job, I'm now updating. Finally!

                      scookeS Offline
                      scookeS Offline
                      scooke
                      wrote on last edited by
                      #19

                      @jdaviescoates Phew, my thoughts and prayers worked!

                      A life lived in fear is a life half-lived

                      1 Reply Last reply
                      2
                      • girishG girish marked this topic as a question on
                      • girishG girish has marked this topic as solved on
                      • rosanoR rosano 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