Failing to upgrade Operating System

Hi all,

I’m trying to understand where all my space is going and how this metric measures it.

I have a 6Gb image, have recently deleted the home_assistant_v2.db file, purged the log file and can’t see any other obviously big files. What’s using up my 6Gb worth of space?

image

This seems to be causing my system to fail to upgrade:

20-12-01 12:37:57 INFO (MainThread) [supervisor.homeassistant.core] Updating Home Assistant to version 0.118.4
20-12-01 12:37:57 INFO (SyncWorker_2) [supervisor.docker.interface] Updating image homeassistant/qemux86-64-homeassistant:0.114.3 to homeassistant/qemux86-64-homeassistant:0.118.4
20-12-01 12:37:57 INFO (SyncWorker_2) [supervisor.docker.interface] Downloading docker image homeassistant/qemux86-64-homeassistant with tag 0.118.4.
20-12-01 12:51:43 ERROR (SyncWorker_2) [supervisor.docker.interface] Can't install homeassistant/qemux86-64-homeassistant:0.118.4 -> 404 Client Error: Not Found ("no such image: homeassistant/qemux86-64-homeassistant:0.118.4: No such image: homeassistant/qemux86-64-homeassistant:0.118.4").
20-12-01 12:51:43 INFO (SyncWorker_2) [supervisor.docker.interface] This error is often caused by not having enough disk space available. Available space in /data is: 0.3 GiB
20-12-01 12:51:43 WARNING (MainThread) [supervisor.homeassistant.core] Updating Home Assistant image failed

Previously this has been caused by backing up the media folder in snapshots.

SSH onto the server and run du -sh / to list the sizes of directories in the root. Change the path at the end of the command to look at the sizes of any suspiciously big directores. e.g. du -sh /usr/*

1 Like

Thanks for the tip.

But it only reports 1 Gb?
image

When I run ls, there’s only a few folders and only the config folder and backup folder contain much sizable data. Config: 745Mb, Backup: 150Mb. Not much in the other folders.

Do you only have a 1GB disk, or partitioned it as 1GB? It’s hard to help you remotely, so I suggest you look up ways to explore the size of the disk, for example: https://unix.stackexchange.com/questions/365165/how-to-find-the-files-that-fill-my-disk

For what it’s worth, it looks like you don’t have much disk space to work with. You might want to think about increasing this with a bigger disk.

Thanks.

Actually this is a 6Gb image. Running that command shows that only 1Gb of space is used which is not corrected. I’ve in the past been able to accommodate 3Gb database size before the 6Gb image fills up but some other hidden thing is now taking up the space. The db file is currently 600Mb.

A 32GB SD card / partition is recommended.

Fair enough. I could just increase the storage size, but I think the underlying problem is a different one. The OS is slowly using up all the storage over time and there’s no obvious file I can see. Will increasing to 32Gb just give the OS more time till that’s all full?

This doesn’t seem like a sustainable design if the storage capacity has to continually grow over time.

1 Like