I adjusted the size of my virtual machine to 50GB while i figure this out.
I narrowed down the culprit to the /var/log folder Image of var folder stats
I checked my influxdb sizes and they seem okay influxdb sizes
home-assistant_v2.db size is 300MB which is normal for me.
What logs are being sent to var folder?
How can I figure out what’s filling it up?
How can I prevent it from happening?
When I try to run that on the community version SSL on home assistant there is no etc/systemd directory.
I then went on my synology via ssh and that location doesn’t exist either.
What am i doing wrong?
Thanks for the suggestions, MarcinL, but it does not help. The location of files is not necessary as one can just run journalctl --vacuum-size=100M and add it to crontab, to regularly trim the journal.
The problem is that all this refers to systemd, but from what I can see, HAOS does not run system, but something else (it is based on Alpine linux). This means ‘journalctl’ nor its config files are not present in the system. Meanwhile, /var/log/journal/ swells like a motherfkr.
The problem is not filesize limit, because the largest file is 128MB. But they are multiple, and keep multiplying, and none of them seem to get deleted even though they have ever-increasing date of last modification.
I’m also seeing the same issue and would like to reduce the space used by the journal system on HASSOS. Right now I have 8GB used by the journal and this is way to much for something that I don’t even use.
My problem was that I kept running this inside SSH which is actually the SSH addon docker container. That’s why I couldn’t run any of the journalctl --rotate, and journalctl --vacuum-size=100M commands. I also couldn’t delete the /var/log/journal files manually (Error: Read Only File System).
When I manually logged onto the physical HASS OS instance machine, I could run the journalctl commands, and managed to free the disk space I wanted!
Hi.
I am having a similar issue but the files are located in the folder
/var/log.hdd/journal/4d4f6d7f9df948e6afd380c743b4ba53
and there are more than 70000 files in it - Over 24 GB.