Media Browser filling disk in tmp directory

I have just added a media library to my Homeassistant. I mapped (SMB) my video library to /usr/share/hassio/media. After this the disk is filling up from time to time. I use Nagios monitoring and the disk usage graph is a bit interesting. I am running HA in docker on a Ubuntu 16. In the folder /usr/share/hassio/tmp/ there is another folder created called tmpxxxxx. In that folder there is a media.tar.gz that fills the disk (gets to around 450 GB). The whole tmpxxxx is then removed after a while. I guess this is by design ? Is it some kind of indexing ? It doesn’t really affect anything but I am curiuos…

Nagios graph
Screenshot 2020-12-18 132619

Filstructure:
Screenshot 2020-12-18 132842

Replying to my own topic here but it is of course the snapshot that creates this. I need to do a partial snapshot and deselect Media. So by design obviously …

Hello @MrDlundqvist

I’m bumping in this thread 1 year later.

I had a failed backup that seem to have left a large folder in /usr/share/hassio/tmp/ and it takes a large chunk of space on my SSD. I guess I can just delete that folder? Can we basically delete all those folder inside /usr/share/hassio/tmp/ ??

I have same issue. /tmp folders fill the disk

same here, is this by design that tmp is never flushed?

1 Like

Keeping this updated months ago… still same issue. When the cloud backup plugin fails the tmp folder start creating a media.tar.gz untill it exchaust the ssd.
I also have an external NAS for Frigate connected to the system.
When I hard reboot the raspberry the storage is released.

if it is released but until the backup is finished, so that you don’t have problems you should have twice as much free disk space as your entire homeassistant instance occupies including your media folder or make partial backups without backing up the folder media