Cannot update due to one tiny app filling up 20GB drive
-
@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)
after update (v7.3.5)
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. -
@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.
-
@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
andsudo 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?
-
@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. -
@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
``
-
@jdaviescoates you have to actually delete the swap file
/apps.swap
to get the space back. -
@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!
-
@jdaviescoates Phew, my thoughts and prayers worked!
-
-
-