What is taking up space?

hi,

i was able to see from the debug mode… can someone help me clean up space in the debug mode so HA can start please?

root@hassio:/tmp# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 481M 0 481M 0% /dev
/dev/mmcblk0p3 295M 217M 62M 78% /
/dev/disk/by-label/resin-state 19M 202K 17M 2% /mnt/state
tmpfs 487M 0 487M 0% /dev/shm
tmpfs 487M 5.6M 481M 2% /run
tmpfs 487M 0 487M 0% /sys/fs/cgroup
tmpfs 487M 0 487M 0% /tmp
tmpfs 487M 32K 487M 1% /var/volatile
/dev/mmcblk0p1 40M 26M 15M 64% /mnt/boot
/dev/mmcblk0p6 14G 14G 0 100% /mnt/data

I had the same problem yesterday. My HA server ran out of space. I tracked the problem to extremely large logfiles (5+ gb); the home-assistant.log, the syslog.log and the daemon.log. The HA debug events were being recorded in the above files. I never had the issue before and haven’t tracked down the cause yet. As a temporary measure I changed my HA configuration.yaml…

logger:
…default: warn (ignore the periods, showing indents)

to keep the logs from growing to several gigabytes.
I will try to find the cause when I get some time.

Also, there were a couple of very large rotated log files, I just removed them. Don’t delete the active log files, but you can zero them out or truncate them, just google to find the proper procedure.

thanks is there a way to get to these log files from the debug mode on the pi of hassio?

I use webmin on my linux servers. Makes it easy to manage the server.
You can ssh in and use the terminal commands to work with the files also…
Looks like you can already do this. Check /var/log for syslog, daemon logs & your home assistant directory for the home-assistant logs.

it seems i cant get into the docker instance due to space issues docker doesnt start and i wasnt sure how to get to /var/log in the HASSIO from outside of the container not that familiar with docker / containerization

I’m not familiar with docker since I don’t use it. Maybe someone here can explain…

Docker creates huge logfike if allowed.

It is in HA config folder. It a “.db” file

This also tends to wear out SD cards so you may also hit that soon

I could be wrong, but I believe the .db file is for the HA recorder database, not a log file. Although that could be a problem too if it is bloated. That can be corrected by turning off history recording for components you don’t need to have history info for. I always check the history after installing new sensors to make sure they are not recording if I don’t need the history.
Seems to me the system log files should be in the standard locations, /var/log.

try this…

Yes, your right. I meant re order database.
It gets huge (GB of data) unless you have it off or limit retention days.

Can pull SD card and put into another PC and delete that way if access via ssh or direct on host not possible

thanks, can you share the path / name of the file please?

yesterday when i was connected under /var/tmp it had a file name with a lot of random character’s.

also is it safe to delete this file i dont want to loose my configs…

i also had created snapshots… wonder if that takes up a lot of room… cant seem to find the path for them either…

ok, i was able to delete one of the snapshots and get into hassio… finally

now i can make the config changes to limit the history etc.

thanks,