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

    I can't update one of my Cloudrons to 7.3.5, I'm guessing because it doesn't have enough spare disk space.

    But I don't understand why so much disk space is being taken up? I've literally only got Uptime Kuma installed, but it's taking up nearly all the space on my drive?

    6b23b524-2935-411c-95df-13baa5765d2a-image.png

    That can't be right, surely?

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

    Seems to all be this overlay stuff?

    0a459e5d-612a-4454-8c3b-9ebc14d232d5-image.png

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    0
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by
      #3

      Does Cloudron really need more than 20GB disk space just to run one tiny app?

      I use Cloudron with Gandi & Hetzner

      BrutalBirdieB 1 Reply Last reply
      0
      • jdaviescoatesJ jdaviescoates

        Does Cloudron really need more than 20GB disk space just to run one tiny app?

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

        @jdaviescoates can you please share the output of

        docker images
        

        ?

        Like my work? Consider donating a drink. Cheers!

        jdaviescoatesJ 1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #5

          So the minimum disk size for Cloudron is actually 20Gb. The platform comes with various things to cater to more apps. For a single app installed, this may be overhead, but its not really targetted to run only one app.

          jdaviescoatesJ 1 Reply Last reply
          0
          • nebulonN nebulon

            So the minimum disk size for Cloudron is actually 20Gb. The platform comes with various things to cater to more apps. For a single app installed, this may be overhead, but its not really targetted to run only one app.

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

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

            So the minimum disk size for Cloudron is actually 20Gb.

            Well, it seems maybe 20GB isn't actually enough as updates don't seem to work when you only have 20GB

            57a6fcbc-2a92-4db1-a8f3-e0e208182cf8-image.png

            I use Cloudron with Gandi & Hetzner

            nebulonN 1 Reply Last reply
            0
            • BrutalBirdieB BrutalBirdie

              @jdaviescoates can you please share the output of

              docker images
              

              ?

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

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

              @jdaviescoates can you please share the output of

              docker images
              

              ?

              # docker images
              REPOSITORY                                 TAG                         IMAGE ID       CREATED         SIZE
              cloudron/louislam.uptimekuma.app           20230119-084851-244567a80   b19e8e86a8f4   9 days ago      3.54GB
              registry-1.docker.io/cloudron/mail         3.7.4                       8889742c287e   2 months ago    3.09GB
              cloudron/mail                              <none>                      8889742c287e   2 months ago    3.09GB
              registry-1.docker.io/cloudron/postgresql   4.3.5                       71cd99ca14d2   2 months ago    2.57GB
              registry-1.docker.io/cloudron/redis        3.3.1                       96a9f9f44027   3 months ago    2.24GB
              registry-1.docker.io/cloudron/mongodb      4.2.2                       cebe87db8404   3 months ago    2.39GB
              registry-1.docker.io/cloudron/mysql        3.2.2                       7b470da9b31f   3 months ago    2.57GB
              registry-1.docker.io/cloudron/postgresql   4.3.4                       cded91e9730b   3 months ago    2.57GB
              registry-1.docker.io/cloudron/graphite     3.2.0                       37d3f884026e   3 months ago    2.3GB
              registry-1.docker.io/cloudron/mail         3.7.0                       44d872dafe25   3 months ago    2.98GB
              cloudron/sftp                              3.6.1                       2ab2a10df10d   9 months ago    2.25GB
              registry-1.docker.io/cloudron/sftp         3.6.1                       2ab2a10df10d   9 months ago    2.25GB
              cloudron/turn                              1.4.0                       25ca2ae58229   13 months ago   2.24GB
              registry-1.docker.io/cloudron/turn         1.4.0                       25ca2ae58229   13 months ago   2.24GB
              cloudron/graphite                          3.1.0                       2b37cdb8a666   13 months ago   2.3GB
              registry-1.docker.io/cloudron/graphite     3.1.0                       2b37cdb8a666   13 months ago   2.3GB
              cloudron/base                              3.2.0                       0fe0cc664045   13 months ago   2.23GB
              registry-1.docker.io/cloudron/base         3.2.0                       0fe0cc664045   13 months ago   2.23GB
              

              Seems mail and graphite images are both there twice. Is that right?

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

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

                So the minimum disk size for Cloudron is actually 20Gb.

                Well, it seems maybe 20GB isn't actually enough as updates don't seem to work when you only have 20GB

                57a6fcbc-2a92-4db1-a8f3-e0e208182cf8-image.png

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

                @jdaviescoates well it is the bare minimum, below it would even refuse to install. So on top of this it depends which app(s) are installed and how large those app images are, next to the data itself of course. So not sure what kind of solution is expected to be honest.

                jdaviescoatesJ 1 Reply Last reply
                0
                • nebulonN nebulon

                  @jdaviescoates well it is the bare minimum, below it would even refuse to install. So on top of this it depends which app(s) are installed and how large those app images are, next to the data itself of course. So not sure what kind of solution is expected to be honest.

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

                  @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?

                  I use Cloudron with Gandi & Hetzner

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