Hi all,
Ive just jumped back into HAOS, I used Home Assistant back in the early days and dropped it as it was to difficult to use at the time, it seems to be a more polished solution these days so Im having another go at it and trying to move away from Homekit.
I have Frigate setup and working fine, but I’m seeing major issues when using the intergrated network sharing.
I have everything done correctly, and Frigate is recording to /media/frigate just fine…until the network share is interupted, frigate keeps recording to the /media/frigate, but now its recording to local storage, and once that happens, the mount point is unable to be used by HAOS again.
To fix this, I have to shut down Frigate, use a terminal add on, delete the frigate folder from media, then go back to storage in HAOS settings, and reconnect the network share, then I need to delete the frigate.db folder and start frigate back up, where it now works correctly and is recording to the network share again.
But after doing all this, I have now lost all the logged clips in Frigate, they are still availble on the network share, but Frigate cant see them as it has generated a new database, and more to this, if I dont delete the old database, it just throws errors and still thinks its recording to local storage and nothing works as it should.
To be honest, I do manual SMB shares in linux all the time, and I have never seen this kind of behavior, once a folder is mounted as a SMB share via fstab, it stays that way, regarless if the share is online or not, you cant creat a local folder in the same location with the same name, not until you unmount and delete it.
Also I tried mapping the frigate.db file to the share location, but Frigate will not startup, this is only happing in HAOS, if I run frigate in a docker container, or on TruNAS Scale, it will let me save the frigate.db to the SMB share.
This behavior is odd, and is a real deal breaker, once all this happens, Frigate cant manage the clips anymore so you will have to go in and delete them from the NAS manually.
I see this as more of a HAOS issue rather than a Frigate issue, maybe its some of both? Frigate should allow me to put the database file on the share, I would rather Frigate just crash or stop if it loses the network share, and HAOS shore lock the mount point end of story, no matter if the network is up or down, as this can happen anytime, and it will happen at some point, and when it does, you lose access to all your motion detection clips from the web interface.