Closed SchoolGuy closed 1 year ago
Please read the docs: https://docs.frigate.video/guides/getting_started#record
You must explicitly enable record
in the frigate config otherwise it can not be enabled in the UI and recordings won't work
@NickM-27 Please have a look at my config again. I enabled in L8 globally. Isn't that enough?
My bad, missed that somehow.
So in that case you'll want to include frigate logs.
Also, you can check chrome://media-internals
to get specific logs from the browser why it can't play back
Also, your ffprobe only contains the header and no actual stream info, it would be helpful to see
Frigate Logs with IPs removed: https://gist.github.com/SchoolGuy/9609ecbc89e732128c668afac857b051
Chrome Media Internals:
The output of ffprobe
is not outputting more. The camera works as expected though in the live view. Since the affected camera has only a single stream for all three roles this appears to be rather weird.
Could be a different issue, but the error message was seen in #6054. I saw this same error message several times as well. My issue was fixed automatically after several days.
do you see any lerrors in the NGINX logs when trying to view?
@NickM-27 What nginx? I am using Traefik on my k3s. Traefik is not reporting any errors that are related to Frigate. I will double check but I didn't see any so far.
nginx is built into frigate, you can get the logs from the UI
@my-umd Thanks for the hint. It appears that there was no solution provided in the issue according to my understanding. I will however check the client side network log of Chrome/Firefox and report with results.
@NickM-27 arent't those this logs?
Frigate Logs with IPs removed: https://gist.github.com/SchoolGuy/9609ecbc89e732128c668afac857b051
no, those are frigate logs.
Okay found them. I overlooked the Tab Switcher. There are indeed related errors visible:
2023-04-23 17:36:49.399479983 10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /api/events?before=1682287199&after=1682200800&camera=garten_vogel&has_clip=1&include_thumbnails=0&limit=5000 HTTP/1.1" 200 3 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:36:49.404401687 2023/04/23 19:36:49 [error] 136#136: *6785 ngx_file_reader_update_state_file_info: open() "/media/frigate/recordings/2023-04-22/22/garten_vogel/59.39.mp4" failed (2: No such file or directory), client: 10.42.3.23, server: , request: "GET /vod/2023-04/23/00/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1", host: "frigate.<domain>.local", referrer: "https://frigate.<domain>.local/recording/garten_vogel"
2023-04-23 17:36:49.404522920 10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /vod/2023-04/23/00/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 404 124 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:36:49.406148458 10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /api/garten_vogel/recordings/summary?timezone=Europe%2FBerlin HTTP/1.1" 200 695 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:36:49.409582370 10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /api/garten_vogel/recordings?before=1682272799&after=1682269200 HTTP/1.1" 200 3 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:36:49.434645090 2023/04/23 19:36:49 [error] 136#136: *6787 ngx_file_reader_update_state_file_info: open() "/media/frigate/recordings/2023-04-22/22/garten_vogel/59.39.mp4" failed (2: No such file or directory), client: 10.42.3.23, server: , request: "GET /vod/2023-04/23/00/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1", host: "frigate.<domain>.local", referrer: "https://frigate.<domain>.local/recording/garten_vogel"
2023-04-23 17:36:49.434765964 10.42.3.23 - - [23/Apr/2023:19:36:49 +0200] "GET /vod/2023-04/23/00/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 404 124 "https://frigate.<domain>.local/recording/garten_vogel" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
From client side this looks like this:
However, it seems that those 404's are a bad example since I deleted those manually since there is nothing on them. Other files which are present just return 200s...
2023-04-23 17:45:09.047063975 10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /api/garten_vogel/recordings?before=1682164799&after=1682161200 HTTP/1.1" 200 380 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:09.050936681 10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /vod/2023-04/22/13/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 200 168 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:09.073648984 10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /vod/2023-04/22/13/garten_vogel/Europe,Berlin/index-v1.m3u8 HTTP/1.1" 200 181 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:09.099079370 10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /vod/2023-04/22/13/garten_vogel/Europe,Berlin/init-v1.mp4 HTTP/1.1" 200 792 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:09.111379022 10.42.3.23 - - [23/Apr/2023:19:45:09 +0200] "GET /vod/2023-04/22/13/garten_vogel/Europe,Berlin/seg-1-v1.m4s HTTP/1.1" 200 4029313 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/13" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.042035257 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /api/garten_vogel/recordings?before=1682157599&after=1682154000 HTTP/1.1" 200 756 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.080061430 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /api/events?before=1682200799&after=1682114400&camera=garten_vogel&has_clip=1&include_thumbnails=0&limit=5000 HTTP/1.1" 200 3 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.103784745 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 200 166 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.124961320 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/index-v1.m3u8 HTTP/1.1" 200 197 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.146456522 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/init-v1.mp4 HTTP/1.1" 200 792 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.157546855 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/seg-1-v1.m4s HTTP/1.1" 200 2858984 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.569158084 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/master.m3u8 HTTP/1.1" 200 166 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.589701966 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/index-v1.m3u8 HTTP/1.1" 200 197 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.619945964 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/init-v1.mp4 HTTP/1.1" 200 792 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
2023-04-23 17:45:12.629285524 10.42.3.23 - - [23/Apr/2023:19:45:12 +0200] "GET /vod/2023-04/22/11/garten_vogel/Europe,Berlin/seg-1-v1.m4s HTTP/1.1" 200 2858984 "https://frigate.<domain>.local/recording/garten_vogel/2023-04-22/11" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" "10.42.3.1"
the media-internals that were provided show the playback happening as expected and shows no errors. So either it wasn't the right one that was selected, or this playback error has nothing to do with frigate itself. We have definitely seen errors like this before happening due to a bad network or proxy setup, have you tried with local ip and port?
@NickM-27 Then I see the following problems (mind that my frigate runs inside a k3s and as such all connections are NATed):
$ kubectl -n frigate port-forward pods/frigate-578c7849c7-jgtrr 5000:5000
Forwarding from 127.0.0.1:5000 -> 5000
Forwarding from [::1]:5000 -> 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
Handling connection for 5000
E0423 20:07:03.240178 452 portforward.go:379] error copying from remote stream to local connection: readfrom tcp4 127.0.0.1:5000->127.0.0.1:42860: write tcp4 127.0.0.1:5000->127.0.0.1:42860: write: broken pipe
Handling connection for 5000
E0423 20:07:15.471483 452 portforward.go:379] error copying from remote stream to local connection: readfrom tcp4 127.0.0.1:5000->127.0.0.1:42830: write tcp4 127.0.0.1:5000->127.0.0.1:42830: write: broken pipe
Any more ideas?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bump. This issue is still present and unsolved.
This looks like some issue specific to the network setup here
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the problem you are having
I have video files that play perfectly fine with VLC locally however in the WebUI, they refuse to play with the following error:
,
Version
0.12.0
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
Other Linux
Install method
HassOS Addon
Coral version
USB
Network connection
Wired
Camera make and model
iCSee
Any other information that may be helpful
The install method is the official Helmchart and not the HassOS Addon.
The camera recording I am trying to see is the following:
https://green-backyard.com/collections/watch-on-smartphone-tablet-pc/products/outdoor-poe-wired-ip-bird-box-camera/
The only thing about the exact model I am able to tell you is that the app is from iCSee: https://icseeapp.com/