-
Notifications
You must be signed in to change notification settings - Fork 118
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
Clips not playing in HA browser #21
Comments
What happens if you right click and open that url in a new chrome tab? What does the 404 page look like? |
If you try to use the url immediately after it fails from homeassistant, the authSig will still be valid. You can click the file again to have homeassistant generate a new one. |
Any chance that url is being captured upstream by traefik or nginx? That 404 is not coming from frigate and the headers indicate it is served up by nginx. |
That isn't related. The URL looks correct. Can you check the logs inside frigates container at |
Yes, in Nginx logs when I go to HA web browser I see:
But when I click on clip to watch it - no any requests to Nginx (Frigate) side. No any errors in HA log, just warning:
which definitely should not be related. Ok, I'l try debug more from HA side when will have little bit more free time... |
The screenshot of the 404 page you posted looks like the one Traefik uses |
It's strange, but after I click "reload" button for Frigate integration - it started work even through Traefik |
Oh no, @blakeblackshear you was right, this is Traefik, after changing url (in Frigate integration) to direct service and checking by tcpdump I saw that traffic continue going to Traefik and it only fixed (changed to direct service) after HA restart. |
Version of the custom_component
1.0.1 (also tried on 1.0.0)
Configuration
Nothing specific, just copied "custom_components/frigate" to my "custom_components" folder in HomeAssistant and configured it (via HA integrations) to frigate host.
Describe the bug
I see clips in (and images/thumbnails) but when I click on it - it not playing. In debug console I see 404:
Via Frigate UI everything works.
Tried on versions:
Frigate: 0.8.0-beta2-amd64, 0.8.0-rc[2-5]-amd64
Home Assistant: “2020.12.2” and “2021.1.[1-5]” versions.
Maybe required more configuration here. In documentation https://www.home-assistant.io/integrations/media_source/#playing-media-from-a-media-source "media_content_id" should be like "media-source://media_source/<media_dir>/", where "media_source" - not clear for me, it should be local dir (but seems not, as local dirs configured in "media_dirs") or it's remote address? In debug logs (below) you can see that "media_content_id" defined as "media-source:/ frigate/clips/outdoor_front-1611527640.595162-h066r2.mp4", where 2 questions:
P.S. About my configuration. Frigate running in container on Kubernetes. HA running on LXD. No any issues in communication between HA and frigate, also everything works except one this issue.
Debug log
The text was updated successfully, but these errors were encountered: