Closed ovizii closed 10 months ago
Not sure if this is important but when I set this all up as shown here: https://docs.frigate.video/guides/ha_network_storage/
I noticed that there seem to be 2 frigate folder visible in HA Gui somehow. One is directly under "media" but it seems to differ from what is visible via the terminal :-(
Via terminal:
Via GUI:
BUT via GUI: media => my media => frigate:
The stats endpoint is failing to check how much storage space is left. What version of HassOS and Home Assistant are you running?
For me this is related to the OS 11.3 after updating I get the exact same errors.
Rolling back to OS 11.2 and it's working again.
@andonevris are you also using an SMB share for recordings?
@andonevris are you also using an SMB share for recordings?
Yes I am
https://github.com/blakeblackshear/frigate/discussions/9196 is related as well, seems HA OS 11.3 broke something
The stats endpoint is failing to check how much storage space is left. What version of HassOS and Home Assistant are you running?
HA OS 11.3 HA Core 2024.1.0 HA Supervisor 2023.12.0
Can someone who is experiencing this please make an issue on the HA OS repo https://github.com/home-assistant/operating-system/issues
Can someone who is experiencing this please make an issue on the HA OS repo https://github.com/home-assistant/operating-system/issues
I don't mind doing that but what logs could I submit? All I have is posted in this thread and those are all Frigate logs, right?
you can show that 2024-01-05 11:49:24.300409714 BlockingIOError: [Errno 11] Resource temporarily unavailable: '/media/frigate/recordings'
occurs when frigate runs shutil.disk_usage(path)
and this started in HA OS 11.3, they should be able to direct to get logs from the HA side but maybe there is something in superivsor logs
Here is the created issue: https://github.com/home-assistant/operating-system/issues/3041
In the section called “Anything in the Host logs that might be useful for us?” you will see there seems to be another built-ion integration called “systemmonitor” with the same problem.
Facing the same issue here, HA OS 11.3 broke something.
HA logs: 2024-01-05 10:13:43.150 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate-fa:5000/api/stats: 500, message='INTERNAL SERVER ERROR', url=URL('http://ccab4aaf-frigate-fa:5000/api/stats')
Rolling back to OS 11.2 and everything is working again
Confirming same issue here on OS 11.3. Reverting to 11.2 (SSH > os update --version 11.2
) resolves this for me.
Same issue in my system - OS 11.3, SMB share with frigate media. Rollback to version 11.2 resolves problem. I'm waiting for more info.
how you reverse the os? i cant his backups;(
In terminal
ha os update --version 11.2
thanks:) and then restart off course;)
Andres Roepke Del Solar. Ingeniero Civil Industrial Ingeniero Electronico Mobile 88196932
On Sat, Jan 6, 2024 at 08:14 gednet @.***> wrote:
ha os update --version 11.2
— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate/issues/9218#issuecomment-1879639972, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOTKWRGUWWKQHP73ADBXDTYNEWZJAVCNFSM6AAAAABBOL2BJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZGYZTSOJXGI . You are receiving this because you commented.Message ID: @.***>
now its working thanks for all.. 11.3 has some issues
Andres Roepke Del Solar. Ingeniero Civil Industrial Ingeniero Electronico Mobile 88196932
On Sat, Jan 6, 2024 at 08:26 Andres Roepke @.***> wrote:
thanks:) and then restart off course;)
Andres Roepke Del Solar. Ingeniero Civil Industrial Ingeniero Electronico Mobile 88196932
On Sat, Jan 6, 2024 at 08:14 gednet @.***> wrote:
ha os update --version 11.2
— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate/issues/9218#issuecomment-1879639972, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOTKWRGUWWKQHP73ADBXDTYNEWZJAVCNFSM6AAAAABBOL2BJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZGYZTSOJXGI . You are receiving this because you commented.Message ID: @.***>
Just to echo, had the same issue here as other folks.
Rolled back to 11.2 per https://github.com/blakeblackshear/frigate/issues/9218#issuecomment-1879639972 and is working again
The same for me, likewise the solution was to go back to the previous version of OS. Without a doubt Home Assistant Operating System has a problem. Please report if there is any news, thank
Haven't tested yet but looks like haos rc has found the fix https://github.com/home-assistant/operating-system/pull/3051
New update with downgraded kernel version
Tested now and Nas storage now works fine for frigate with latest HAOS update
HA OS 11.4 is out, I confirm it solves the issue.
Although this was a HA issue, I think frigate should tolerate shutil.disk_usage
exceptions here, since they're not that important (it already tolerates FileNotFoundError
) and it's at least the second time users report such exceptions breaking their system.
frigate uses the storage info for a number of different things including the retention by available storage to ensure that it is not going to fill the recording storage. Going to close this since the actual issue is solved, but having the function tolerate no storage info will take more time and planning
I am facing this same issue now, however, I do not have Frigate running on HAOS. I use Ubuntu 22.04 with Docker 26.
/media/frigate
is a CIFS-mounted docker volume. This has worked for years. Not sure what changed to break things. From looking at the patch HAOS repo made, it seems like they reverted some changes to fs/smb/client/smb2pdu.c
, which I guess is the SMB client running on the OS?? Any ideas how I can resolve this on an Ubuntu 22 host using docker?
I'm also facing this issue, running on ubuntu server.
I did find this: https://forums.linuxmint.com/viewtopic.php?t=417371. looks like there is a linux kernel, 5.15.0-102.
Me too, but as @eohlde says the issue seems to be with kernel 5.15.0-102 rather than Frigate. This landed on my Frigate machine yesterday when I ran apt update/upgrade. Following the clues in @eohlde's link, I reverted to 5.15.0-101 and the issue disappeared. I guess I'll leave it like this until the fix trickles through to Ubuntu.
Me too, but as @eohlde says the issue seems to be with kernel 5.15.0-102 rather than Frigate. This landed on my Frigate machine yesterday when I ran apt update/upgrade. Following the clues in @eohlde's link, I reverted to 5.15.0-101 and the issue disappeared. I guess I'll leave it like this until the fix trickles through to Ubuntu.
Many thanks, I had the same issue on my Ubuntu.
I'm running a Hyper-V VM and I couldn't get grub to show alternate boot options.
Reference of what I did for other linux noobs:
uname -r
showed that I was on kernel 102.
I had to sudo nano /etc/default/grub
and comment out GRUB_TIMEOUT_STYLE=hidden
-->#GRUB_TIMEOUT_STYLE=hidden
then sudo update-grub
and reboot.
On reboot I selected "Advanced options for Ubuntu" and select the entry for the 5.15.0-101 kernel
Anyway, I'm glad to have found this issue as I never would've known it was an Ubuntu kernel problem otherwise.
I'm also running into this issue. I have the latest HA (version 2024.4.3) in a Docker Container.
I just had the same problems when updating to 2024.10.1 OS 13.1, Frigate 5.4.0; error message;
Logger: custom_components.frigate.api Source: custom_components/frigate/api.py:259 integration: Frigate (documentation, issues) First occurred: 21:16:54 (12 occurrences) Last logged: 21:28:13
Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [Connect call failed ('172.30.33.4', 5000)]
So besides rolling back to 11.2, any information on the root cause?,
I have HAOS on hardware
it means frigate addon is likely not running
Thank you so much for pointing me in the right direction NickM-27, your right, it's not running.
That's a mighty complicated way of stating that the Frigate Addon is not running.
Somehow the update broke this, the add-on won't start, I found the root cause;
https://github.com/blakeblackshear/frigate/discussions/12980
Would be nice if the intergration would check and state 'Frigate Add-on is not running...'
Would be nice if the intergration would check and state 'Frigate Add-on is not running...'
there's no way for the integration to know if it is indeed not running or something else is the problem
Describe the problem you are having
I always keep HA, the HACS integrations and HA add-ons up to date. Recently there have been Frigate updates as well as HA updates, so I am unsure what caused the problem.
I apologize in advance for the information overload :-(
The problem started with the Frigate lovelace card reporting:
Using:
HA logs:
2024-01-05 13:29:45.435 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate-fa:5000/api/stats: 500, message='INTERNAL SERVER ERROR', url=URL('http://ccab4aaf-frigate-fa:5000/api/stats')
While checking everything for related problems, I saw the Frigate integration “needs attention”.
I tried configuring the integration again with these settings but it says could not connect: I tried these settings with the Frigate integration:
I have double-checked and the settings of the Frigate add-on correspond to these ports.
If I visit HA dashboard => Frigate I see my live camera working just fine. If I click on “events” and “recordings” I see past events and recordings and can play them BUT going to Frigate => Logs there is a problem:
This error keeps repeating every minute:
BlockingIOError: [Errno 11] Resource temporarily unavailable: '/media/frigate/recordings'
Not sure what is the problem since Frigate can actually view events and recordings and play them for me.
When setting up Frigate initially I followed this guide: https://docs.frigate.video/guides/ha_network_storage/ and made Frigate use the mounted SMB share.
On the terminal the folder does exist and is accessible and Frigate can indeed access it as shown above.:
Btw. when visiting HA Dashboard => Frigate I can only access the initial page via https://mydomain.tld/ccab4aaf_frigate-fa/ingress and the birdseye, events, config and log page. The system and storage pages are resulting in server error 500.
This last bit of info might be unrelated but it looks confusing.
Version
UnknownToMe
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
HassOS
Install method
HassOS Addon
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
Hikvision but the problem is unrelated to the camera
Any other information that may be helpful
I am accessing my HA instance behind traefik as a reverse proxy in case it matters.