-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network share mounting after add-ons have started, after a reboot (Example: Frigate add-on) #5471
Comments
This has been an issue for a long time, is there any resolve to this? I have to manually click on repair or do an HA restart and then start Frigate to resolve... |
Getting to this late. On HA Start I have set Frigate to not load on boot in the Addon Options. Its a workaround and for now its working just fine. Would be nice to not have to think about this though. |
@neekul : I'd suggest change of title. Something like "Supervisor starts add-on:s before HA network storage is mounted." |
@Hiekkaharju good point. Changed! |
update: this might not be as straightforward as I have thought. I was just restarting the computer my HA runs on, After the restart I noticed that Frigate had apparently written to the media/frigate location during the shutdown, after the network storage mount had been unmounted. Thus at startup there already was a local media/frigate directory, and as there was some time between the shutdown and start, the timestamps made clear it was from the time of the shutdown. That directory then prevented the mount already before Frigate got started again. |
That's not good! |
Strange. I performed multiple HA restarts, and also rebooted the machine HA runs on (Proxmox node reboot) and did not have this happen to me. |
It doesn't seem to happen often. I've also had far more restarts without this than with it - while the startup version happened every time until I delayed Frigate start. |
+1 |
Describe the issue you are experiencing
I have recently spotted something that is causing issues with Frigate.
I followed the documentation in Frigate to have my recordings placed on my NAS so my local drive isn’t eaten up (500GB SSD. HA is running on Proxmox in a VM)
I moved the Frigate DB to /config/
I used HA (Settings → System → Storage → Add Network Storage)
Started up Frigate and it all was working great.
Then I noticed if HA was to reboot in anyway, the mount would not happen, as it sees there is an existing fold/file in the location (media/frigate).
Here is the Supervisor Error
ERROR (MainThread) [supervisor.mounts.mount] Cannot mount bind_frigate at /data/media/frigate because it is not empty
What I suspect is happening is during a reboot, HA starts up all the Addons.
Frigate is set to start up on boot.
Frigate attempts to look at the media folder and realises its not there (the mount hasnt taken place by HA at this point) so it creates a directory (now this is created on the local drive by Frigate)
Then the mount process, I guess, kicks in and sees stuff in /media/frigate already and throws the error.
Frigate is happy so I don't notice it until I see my local drive suddenly filling up.
I have worked around this by making sure I uncheck “Start on Boot” for Frigate addon. Then created an automation that waits a few mins for HA to start up and then turns on Frigate giving HA time to mount the network drive.
I assume this a sequence thing for when HA boots up. The mount should happen before any Addons start to avoid this issue and have any addons that use mounted drives not try create their own folders before a mount has been done.
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Steps to reproduce the issue
Anything in the Supervisor logs that might be useful for us?
System Health information
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Supervisor diagnostics
config_entry-hassio-834020f9bf7ad173979ba5f36fa06776.json
Additional information
No response
The text was updated successfully, but these errors were encountered: