I got a repair notice this morning saying my disk is running low on free space and I only have 2GB left. I have looked at the documents the notice links to but I can't translate tehm into something I can understand. It appears to be impossible to add extra storage to HA Green and although there seems to be something called recorder where I could change what is saved or purge data from the disk, I can't find it on the system.
Please can some kind person help me to sort this out before the disk fills up completely and the whole thing dies. I have no ability to code in Yaml, and I have had the system just over a year.
#Home Assistant Green disk nearly full
1 messages ยท Page 1 of 1 (latest)
do you have a bunch of apps (add-ons) running?
or Is it perhaps just backups using up your space? check your backup storage and see what it looks like. you may just need to tweak your backup rention settings.
Thank you Michael - I have 2GB of backups, my system backs up every night and saves a backup to the cloud and to the system, saving 3 backups and deleting older ones. Every time I update it I save a backup first and I keep a couple of those on the system, otherwise it is just "storage" which I presume is data:
I have some addons, but I have tried to keep it to a minimum because I know storage is finite. I think what I need to do is choose which data to retain and which not - for example I have smart plugs for things like dehumidifiers which are useful to see what they are currently using but don't need to keep all the data all the time when they are not in use
I think its unlikely to be data stored as if that was ballooning then you would also see ballooning in your backup file size.
could it be logs, and if so how do I delete them?
Logs take care of themselves.
Tbh, A way to narrow a few things down without delving too deeply is probably to:
create full backup, keep it safe along with encryption key
do a full reset of the green
upload backup during onboarding to restore system.
It might seem drastic but it is likely to just solve the issue outright.
Knowing me, that is likely to break teh whole thing - I am catastrophic when it comes to this sort of stuff. I haven't a clue how to onboard a backup to HA
when it starts up for the first time and you get the onboarding wizzard, you have the option to upload a backup instead of setting up a new system.
I see, and is the encryption key somewhere I can find it? I may have made a note of it but not sure (sorry, I'm a pensioner with a poor memory).
in the backup settings you can show it and can also download the "emergancy kit" which is a text file with the key and some other info.
Then for the reset itself. You can do a Normal Reset or a Full Reflash reset using a SD card.
Ahh, I think I did download an emergency kit, thanks. I haven't an SD card but I could try a normal reset
Thank you for your help ๐
No worries, Hopefully it solves your issue with minimal downtime. If not then we can potentially delve into some other stuff that might be causing excess storage issues.
Thanks, I will report back on how it goes
Thank you, unfortunately I do not understand 90% of that. However I can see from HA that the app data is using 0GB. It is the "System" that is using the vast majority of the disk space.
I tried to make it easily followable :<
Thank you - I understand that programming is hard. Unfortunately it uses visuals and words that are completely new to me. I don't know what docker means, I don't know what SSH addon means, there are various groups of letters like gdu and ncdu which mean absolutely nothing to me, and it says to "use" things and do things that I have no idea how to access or even what device to attempt to access them on. Basically I am a computer imbecile with a talent for breaking anything vaguely techie and have bitten off far more than I can get in my mouth, let alone chew.
Home Assistant is incredibly useful and having had it for a year I don't know what I would do without it. I am currently trying to pluck up the courage to do a factory reset, but I am terrified of breaking it,
It takes me several days to dare to do a core update, let alone this
Another question before I make any serious errors - I have bluetooth and Zigbee dongles attached to Home Assistant Green. Should I remove them before doing a reset?
I personally wouldn't bother.
thanks
Thanks for the help - I have done a backup and reset and it is now showing that I have used 28% of the disk space. I will keep an eye on it to check if it is filling up quickly again, but hopefully it is fixed ๐
Awesome, Something was probably randomly misbehaving. Sometimes just doing a reset is the simple solution.
Hopefully it doesn't happen again. ๐
Hi Michael, restoring the system worked in that when it came back up the disk space was 28% full. However, only a week later it is now 45% full. At this rate it is only going to last a couple more weeks before it fills up again. Is there anything else I can try to stop it from doing this? It does an automatic backup to HA and the cloud every night, and keeps 3 backups, which are less than 500Mb each, but it is noticeable that the biggest increase in space used comes over night (3% last night for example).
Has anyone any idea what I can do to stop the disk filling up - it seems to be getting worse as it is now 49% full. I can't keep wiping the whole thing every 2-3 weeks. Is it irreparably broken? Do I need to buy another unit and start again from scratch? I would be really, really upset if I have to stop using Home Assistant because I can't stop it doing this.
Interesting. It is a bit strange. given the problem usage disappeared by a backup/reset/restore means that its not something that is in backups that is the issue.
What app integrations are present
Is everything up to date including OS version?
The link above from Impact may help narrow down what is using space and then we can potentially go from there.
And as @bold mantle mentioned, What apps are installed? perhaps one is misbehaving and doing strange stuff.
You could try manually pruning the docker container images too.
something like docker image prune although I am not sure if you can run this from a terminal app or if it needs to be on the host terminal.
perhaps an app is misbehaving and trying to update and downloading a bunch of images or something.
although as said the above guide from impact will help narrow down specific files/directories that are growing.
Thank you both. I updated the OS version when I did the restore so that is up to date. The core is up to date except for the most recent version so I am on 2026.4.2. There are no pending updates to any of the apps,
The apps that are installed are Alpha ESS, Backup, Bluetooth, BT Home, Electricity Maps, ESP Home, Google Translate, HACS, Home Assistant Connect, Home Asssistant Green, Home Assistant Supervisor, Local Calendar, Melcloud, Meteorological Institutt, Mobile App, Myenergi, Octopus Energy, Radio Browser, Shelly, Shopping List, Solar Edge, Sonoff, Sun, ThemoPro and Zigbee Home Automation. I have Terminal installed, 6 custom dashboards and an extra one called Ewelink smart home which appeared when I installed teh Sonoff smart plugs.
Attached to the little box is a blue ZBT-1 dongle and nearby is a little square grey dongle that deals with the bluetooth - it has a strange name that I can't remember.
After a lot of thought my diagnosis is that I first noticed the problem on 12th April when I got a notification that the disk was 90% full. I have added no new integrations since and the disk fills up at about 3-4% a day. When I restored it 28% was used, meaning that to use the extra 62% will have taken it something in the region of 15-20 days, which takes you back to 23rd - 28th March for the cause., which is very interesting. On 23rd March I had electricians here, finishing of work which involved completely rewiring and replacing my consumer unit. Before they turned the power off I shut down Home Assistant, but stupidly didn't think to unplug it. The power came back on and then went off again straight away and I remember the electrician saying that something slightly odd had happened. Home Assistant will have been starting up when it was suddenly deprived of power. I wonder if this has damaged it. For information, since that day I have also had problems with my Zappi, which will charge the car but not accept any sort of programming from Octopus, car or Zappi app. The 13A fuse in the kettle blew a couple of days later, 3 of my smart plugs record the current power but don't reset at midnight like they used to, one of my sets of growlights stopped working the next day and the house now draws a continual small (10-60W) import from the grid even with solar and battery running everything. The electricians have been back twice since to try and sort these things and are completely bemused although they haven't given up. My thought is that there has been a spike in the electricity that has damaged some things, including Home Assistant. Does that sound likely?
I am looking at Impact's link above and trying to turn off the part of my brain that goes into meltdown when it sees computer code. The point I start to get lost is where it says Advanced SSH addon, then tells me to run something. Do I have to install this Advanced SSH addon? Where do I run it - is that in Terminal? "apk add gdu
Use this if you want to ignore shares/mounts
gdu --ignore-dirs /share /
Otherwise use this
gdu /" is double dutch to me - what are shares/mounts and do I want to ignore them?
"Then press m (file modification dates) and c (file counts) and i (item info) and look around with the arrow keys.
Press ? for shortcuts, q to close modals. Ask before deleting anything if you're unsure ๐" - presumably the options m, c ? and q will appear somewhere?
Yep. You click the link to the app and install and configure it (set password in options). Once started you can use it via the sidebar to enter these commands.
Sorry for the stupid questions - I am not a programmer
m is a shortcut. Basically press the m key on the keyboard when gdu is open.
ahh
I've never used those - that probably tells you something about the level I usually work at
You'll get there over time. HA can be somewhat complicated so you kinda have to learn a lot of things at some point.
yeah, this is why I chose HA Green - it took me over a day to work out how to install HACS
I'm not stupid, I just go into a sort of frozen panic state where I am terrified of breaking things
The green can give you an easier start by saving you from the installation but that's just part of the learning curve. Once you learn how to reset and take and restore backups that panic should decrease a lot since you can't permanently break things. Theoretically.
Hmm, I wouldn't put it past me! But yes, I see about the backups, although I noticed when I did the restore last time that all the backups had vanished including in the cloud, so if it had not worked I would have been completely stuck
I don't use the nabu cloud but that shouldn't happen. The local (on device) backups are removed by a full reset. Fortunately there's different storages you can back up too. Google drive for example. Or simply download them to your PC regularily.
I download a manual backup to my pc every time I do one. It saves it as a TAR file but I wouldn't have the faintest idea how to get it back onto HA
You can upload it during the setup for example: https://www.home-assistant.io/common-tasks/general/#restoring-a-backup
ok
I will try downloading the addon and see if I can make head or tail of it - will you be around later, maybe this evening, if I make a mess of stuff? I have to get on with things now unfortunately
I can't really predicts when I'm available but michael and I are attached to this thread and get notifications. One of us can likely help.
Also time zones make "evening" ambiguous ๐
Thank you, I really appreciate your help ๐ FYI I am in the UK.
Ok, I have installed Terminal and SSH and now have 2 things that say Terminal in the sidebar. Is that because I had it before, or is this a different one, and should I get rid of one, in which case, how?
You can technically keep and use both if you configure them to use different network ports. I'd just keep the Advanced one. You can remove the other in the settings.
Stupid question - how do I remove it? I can't see it in teh list of integrations
It's an app/addon.
You are seeing this page because you have been linked to a page in your Home Assistant instance but have not configured My Home Assistant. Enter the URL of your Home Assistant instance to continue.
ok I've got to teh app store
The Core SSH App should be there. It's the same place where you configure the password for the Advanced SSS App.
I can't see core SSH. I also can't see an apps link in teh sidebar of HA, which I am 95% certain was there bofore
I can see Terminal, which says it is allowing logging in remotely - which I do need to do
I might not have the correct name at the top of my head. I'm mobile at the moment. Apps is in the settings.
Ok found Apps, I can see both Terminals. I think at this point I will leave it for now as there are multiple other things I ought to be doing!
I checked and Terminal & SSH is what I meant with core SSH. See the name in the address? https://my.home-assistant.io/create-link/?redirect=supervisor_app&app=core_ssh
I'd just keep the Advanced one or disable the other and its sidebar item: https://my.home-assistant.io/redirect/supervisor_addon/?addon=a0d7b954_ssh
Thanks, I have disabled the old one and removed its sidebar item. The new Terminal is showing in the sidebar and in the apps list. If I click on the sidebar it says the app is not running and gives me teh option to start it. If I do that it thinks about it for a bit and then seems to go back to the stopped state. If I start it after clicking on the app in the apps list it appears to start but if I then try to go to it from the sidebar it says it is not running...
Check its logs. You likely didn't set a password as mentioned earlier.
This is absolutely typical of what happens when I try to so this sort of stuff - what normally happens for everyone else does not happen for me!
Where do I set a password - I didn't see an option to do that
In the Configuration tab under SSH.
its asking for a username, which is hassio, do I need to change that to me?
You can but no.
In your case I'd suggest the full access way: https://gist.github.com/Impact123/fb086b391f7d14cb3515144fcbe4785e#full-access-to-files
what is shares/mounts - do I want to ignore tehm or not?
ok so I have turned off protection and restarted the app and I now have Terminal open and a green arrow followed by a blue wiggly line, then a grey block. I expected to be able to copy and paste the code, but it doesn't like that. I am now absolutely petrified of breaking something.
I have done a backup
The commands there are safe. I thought the mouse issue was fixed by now. Does SHIFT + right click give you a paste option?
shift + right click, if you mean press teh shift key and right click the mouse, does nothign as far as I can see
Here, found it: #1350167114400399471 message
Specifically this: #installation-archived message
as usual I don't understand that ๐
And yes I'm aware all these hoops are painful and kind of ridiculous but ๐คท
its more that I don't trust myself not to do something stupid
you are being very kind and patient, thank you
Hmm. I reinstalled the app to start with default settings but the normal browser context menu (right click) to paste stuff works for me on chrome.
I was using ctrl c and ctrl v which is the way I normally copy and paste
I'm using Brave which is pretty much chrome
The CTRL+ hotkeys have special meaning in some terminals. CTRL+L clears the screen, for example. CTRL+C closes apps.
https://superuser.com/questions/421463/why-does-ctrl-v-not-paste-in-bash-linux-shell
TLDR: Try CTRL+SHIFT+V.
I tried right click and it works, thanks. Do I now press return?
Yep.
its doing something...
Deleting all the data of course ๐
HAOS is composed of a lot of files. Finding and checking all their sizes and such can take a few seconds.
ok I have a list. At teh top it says in green 22.2 GiB /mnt
the next biggest thing (I assume) is 501.9 MiB /user
Look around with the arrow keys for the largest items. You can mostly ignore everything but *mnt/data and stuff beneath.
This is what's wiped during a factory reset, for example.
ok...
Here's how mine looks for comparison
this is what I see
I don't expect you to know what this data is for, just look around if you're curious. I also added a section at the bottom today about how to easily clean some and check which image/addon/app uses the space: https://gist.github.com/Impact123/fb086b391f7d14cb3515144fcbe4785e#a-note-about-dockeraddonapp-bloat
The docker part looks fairly normal. depends how many apps you have installed and which ones. The way linked above should partially show what's taking up its space. You can traverse into the supervisor directory. I'm guessing most of the data is your HA backups but worth a check.
yes 1.7GiB is backups (there are currently 4)
so after 3 days from when I restored it there were 3 additional backups, after which the system deletes the oldest one when it does a new one (every night). So why is the stored data increasing at about 3% a day?
That I cannot tell you but you can now check exactly what takes up what amount of space which should help figure that out.
Its very odd because it only started after I had electrical work done. It can't have been doing it before or it would have filled up the disk
Maybe it's the database or logs. Anything else had a large size in the *mnt/data/supervisor/ path?
You can close gdu via q or CTRL+C and check docker system df -v. Also try the repair I linked and see if it decreases.
the next biggest under supervisor is 795.8 MiB /homeassistant
Can make some notes (take some screenshots etc...) about what space directories are taking up then check them again tomorrow and see if you can spot what is growing and narrow it down. I am suspicious that the supervisor (docker) is over downloading images or something.
I am not aware of anything downloading images if you mean pictures. there are charts created from the data, mainly from smart plugs or APIs, and quite a few utility meters
Nothing has been changed recently which is why I suspect the electrical work
No i mean images as in container images.
Images refer to the docker/container "templates". It's what taking space in the docker directory. You can see their sizes via docker system df -v.
ahh ok, its just that I don't speak the language
Basically you need some space for the archive/image and then the uncompressed version of that that the app uses as working path. Well, kinda.
On updates that image is updated and the old one apparently kept around for some time. After all this time I still don't know when images are auto pruned. To be fair I didn't look into it much but still, someone should have mentioned it.
So if I have an API that is reading data every 10 seconds or something, its creating an updated image and the old one stays around?
I'm thinking for example of my Shelly that monitors the heating, which sends data very frequently
No. Pretty much all services on HAOS are containers. HA, apps, etc. Containers are considered ephemeral/temporary. When they are created they are created form a image. The image is like the template or base state of a service. Think of it like a archive (.zip) file for a portable application. You extract it and run the app.
mmm, ok
Reading your API likely stores some data in the recorder database though. For investigating that I recommend the DB Stats app. Also linked in my article. But considering the homeassistant directory is not very large it likely is not that. The database file is called home-assistant_v2.db.
yeah, its a puzzle. If I type in ha supervisor repair
ha host reboot will that reduce the disk space used?
Maybe. The idea was that you check docker system df -v first to see the images and their sizes. You could check it again afterwards.
ok I can try that - how do I get back to teh bit where I can type stuff?
sorry I'm rather slow
Take your time, feel free to re-read stuff.
this is what I see
Personally I feel like 32G is stretching it for a future proof HA device. Even more so after HAOS 17 which uses more space.
Hmm. That ewelink app seems to use a lot of space. The rest looks normal. You should be able to uninstall the HACS addon. It's a one time thing.
I keep using HACS though
for new addons
ewelink is the app that works the sonoff smart plugs, of which I have 26
HACS has integrations: https://www.hacs.xyz/docs/faq/addons/
The HACS addon is not running, right? It's just a one time installer for the HACS integration
err, no idea tbh
Just trust me on that ๐
Well, trust, but verify.
it wouldn't surprise me if the ewelink is the problem because 3 of the smart plug utility meters broke after teh electrical work
Maybe I have some time tomorrow to look into it and reproduce it. Kinda curious about that
you are very kind
I was just about to say. given the version number it looks like you are using a non-mained version.
I'm not really used to seeing a lot of space in that Containers space usage section.
I have installed all the updates that have appeared for all of the apps, the only pending update is the latest core one
for the ewelink thing it looks like you are perhaps using:
This project - https://github.com/CoolKit-Technologies/ha-addon
but that is non maintained and have been replaced with:
This project - https://github.com/iHost-Open-Source-Project/hassio-ihost-addon
so what do I do about that - do I uninstall it and install the new one?
yeah uninstall the old one and remove the custom repo from the appstore (addon store) , then add the custom repo for the new one to install it.
Back up first. And not just to the green ๐
last time I deleted an addon (for my car) I broke it completely and have been unable to reinstall it. Thats one of the reasons I'm very scared of this
I don't expect the device to blow up but I've "exhaustion quit" some migrations like this in the past and having a recent backup is very helpful for that occasion.
I am suspicious that there was an update/change that broke the old one and its now misbehaving and spewing stuff somewhere. and the new version likely works better.
seems likely
there are 2 things related to the smart plugs. One is the sonoff integration and the other appears as a tab in the sidebar called ewelink smart home. I was surprised to see that as I don't think I specifically installed it, but its a long time ago and my memory isn't great.
which do I delete?
ok - will it break all my utility meters?
I have no idea, I don't know what it does. either way ensure you have a full backup safe.
I will do, thanks
Ok, I uninstalled the ewelink app and attempted to reinstall it from the link on the page. It says "an unknown error occurred"
the data from the smart plugs still seems to be being updated, so I am not sure what the ewelink app actually does
Uninstalling ewelink has dropped the disk usage from 53% earlier to 36%
well we found the problem causer. at least
yes ๐
you can manually remove the old repo and install the new one. that way you can at least get the new app down the line if you work out you need it.
not sure how to manually remove the old repo, or even how to find it
settings - apps - install app - repositories (overflow menu in top right)
ahh, is that where I remove the old HACS thing mentioned earlier?
hacs has nothing to do with apps
ok, forget that. so I just delete teh ewelink one
yeah. its probablty the "CoolKit" one right?
yes
delete that
ok, that's gone
then can press "add"
it asks for url
and add the new repo:
https://github.com/iHost-Open-Source-Project/hassio-ihost-addon
ok
Then when you you go "back" and are on the install app screen you will probably see the new version in the list along with the other stuff in that repo.
Yeah some apps take some time to install. depends on size and config.
ok it seems to have installed it
Now showing 40% disk used so that app uses 4%
seems a lot
That is like 1.2-1.3GB so its large'ish but not huge.
ok
Again, I have no idea what the app is actually doing or what it contains so just guesswork at this point. ๐
So hopefully we have solved the problem, I will keep an eye on the disk space and see what happens
it is supposed to link teh ewelink app on my phone to HA I think
not quite sure why it is needed as well as the Sonoff integration
Indeed, Hopefully it is indeed sorted for now. ๐
Thank you so much for all your help , and Impact as well - I could not have done this without it. Very much appreciated.
No worries, Good Luck. ๐