blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
17.99k stars 1.64k forks source link

[Support]: 0.12 beta 7 Webinterface becomes unresponsive #5423

Closed EricReiche closed 1 year ago

EricReiche commented 1 year ago

Describe the problem you are having

0.11.1 was working fine. After upgrading to 0.12 beta 7, I'm having issues with the web interface becoming unresponsive. The navigation menu is there, but the 'content' area is empty. Clicking on navigation links sometimes changes the URL, but the webinterface is mostly empty. After a fresh restart, the interface sometimes works, but only for a short time. Refreshing the homepage shows that the camera streams are working (fresh snapshots), but birdseye doesn't. I deleted the DB for debugging purposes without much success. Disk has space left. There is a Javascript error in the browser console that I attached.

Version

0.12 beta 7

Frigate config file

database:
  path: /db/frigate.db
mqtt:
  host: mosquitto
  user: redacted
  password: redacted

birdseye:
  enabled: True
  width: 1920
  height: 1080
  quality: 8
  mode: continuous
ffmpeg:
  hwaccel_args: preset-vaapi
#    - -hwaccel_device
#    - /dev/dri/renderD128

detectors:
  coral:
    type: edgetpu
    device: usb

objects:
  track:
    - person
    - car
    - dog
    - bicycle

record:
  enabled: True
  retain:
    days: 2
    mode: active_objects
  events:
    pre_capture: 2
    post_capture: 8
    retain:
      default: 14

#go2rtc:
#  streams:
#    kellereingang: 
#      - http://redacted/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=redacted&password=redacted
#      - ffmpeg:reolink#audio=opus
#    kellereingang_sub: 
#      - http://redacted/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=redacted&password=redacted

cameras:
  einfahrt:
    motion:
      mask:
        - 216,86,73,434,0,480,0,0,231,0,640,0,640,268,541,79
        - 522,438,277,480,640,480,640,370
    zones:
      driveway:
        coordinates: 408,129,454,257,403,319,295,333,148,333,102,448,268,459,445,451,640,387,615,263,530,131
      frontyard:
        coordinates: 183,190,208,122,407,124,450,269,424,332,338,358,199,350
    ffmpeg:
      inputs:
        - path: rtsp://redacted:554/Streaming/Channels/102
          roles:
            - detect
        - path: rtsp://redacted:554/Streaming/Channels/101
          roles:
            - record
            - rtmp
    detect:
      width: 640
      height: 480
      enabled: True
    snapshots:
      enabled: True
    record:
      enabled: True
    rtmp:
      enabled: False

  vorgarten:
    motion:
      mask:
        - 215,21,245,0,0,0,0,31
        - 640,480,640,383,580,426,451,480
    ffmpeg:
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -tag:v hvc1 -bsf:v hevc_mp4toannexb -c:a aac
        rtmp: -c:v copy -c:a aac -f flv
      inputs:
        - path: rtsp://redacted:554/Streaming/Channels/102
          roles:
            - detect
        - path: rtsp://redacted:554/Streaming/Channels/101
          roles:
            - record
    detect:
      width: 640
      height: 480
      enabled: True
    snapshots:
      enabled: True
    record: 
      enabled: True
    rtmp:
      enabled: False
    objects:
      filters:
        bicycle:
          mask:
            - 256,79,574,84,640,281,279,383
        motorcycle:
          mask: 
            - 256,79,574,84,640,281,279,383
        person:
          mask: 
            - 0,56,95,34,75,261,0,260

  hausseite:
    ffmpeg:
      inputs:
        - path: rtsp://redacted:554/Streaming/Channels/102
          roles:
            - detect
        - path: rtsp://redacted:554/Streaming/Channels/101
          roles:
            - record
            - rtmp
    detect:
      width: 640
      height: 480
      enabled: True
    snapshots:
      enabled: True
    record:
      enabled: True
    rtmp:
      enabled: False
    motion:
      mask:
        - 413,480,640,480,640,358,559,426
        - 0,0,204,0,201,25,0,28

  garage:
    motion:
      mask:
        - 0,0,210,0,207,28,0,27
    ffmpeg:
      inputs:
        - path: rtsp://redacted:554/Streaming/Channels/102
          roles:
            - detect
        - path: rtsp://redacted:554/Streaming/Channels/101
          roles:
            - record
            - rtmp
    detect:
      width: 640
      height: 480
      enabled: True
    snapshots:
      enabled: True
    record:
      enabled: True
    rtmp:
      enabled: False

  pool:
    motion:
      mask:
        - 212,21,0,62,0,0,277,0
        - 640,0,640,59,511,0
    ffmpeg:
      inputs:
        - path: rtsp://redacted:554/Streaming/Channels/102
          roles:
            - detect
        - path: rtsp://redacted:554/Streaming/Channels/101
          roles:
            - record
            - rtmp
    detect:
      width: 640
      height: 480
      enabled: True
    snapshots:
      enabled: True
    record:
      enabled: True
    rtmp:
      enabled: False

  child2:
    motion:
      mask:
        - 159,21,170,0,0,0,0,32
    ffmpeg:
      inputs:
        - path: rtsp://redacted:554/s0
          roles:
            - detect
            - record
            - rtmp
    detect:
      width: 640
      height: 360
      enabled: False
    snapshots:
      enabled: False
    record:
      enabled: False
    birdseye:
      enabled: False

  wohnzimmer:
    motion:
      mask:
        - 640,0,640,139,0,130,0,0
    ffmpeg:
      output_args:
        record: preset-record-ubiquiti
        rtmp: preset-rtmp-ubiquiti
      inputs:
        - path: rtsp://redacted:554/s0
          roles:
            - detect
            - record
            - rtmp
    detect:
      width: 640
      height: 360
      enabled: True
    snapshots:
      enabled: True
    record:
      enabled: False

  flur:
    ffmpeg:
      output_args:
        record: preset-record-ubiquiti
        rtmp: preset-rtmp-ubiquiti
      inputs:
        - path: rtsp://redacted:554/s0
          roles:
            - detect
            - record
            - rtmp
    detect:
      width: 640
      height: 360
      enabled: False
    snapshots:
      enabled: False
    record:
      enabled: False

  doorbird:
    detect:
      width: 1280
      height: 720
      enabled: True
    snapshots:
      enabled: True
    record:
      enabled: False
      retain:
        days: 7
        mode: motion
      events:
        retain:
          default: 14
          mode: active_objects
    motion:
      mask:
        - 0,404,0,0,1280,0,1280,405,1001,439,461,441
    ffmpeg:
      inputs:
        - path: 'rtsp://redacted:554/mpeg/media.amp'
          roles:
            - detect
            - record
            - clips
            - rtmp
    rtmp:
      enabled: False

Relevant log output

data:application/ma…:1 Manifest: property 'src' ignored, URL is invalid.
data:application/ma…:1 Manifest: property 'src' ignored, URL is invalid.
VM286 index-338adbe7.js:1 Uncaught TypeError: Cannot read properties of null (reading 'context')
    at $e (index-338adbe7.js:1:16786)
    at zs (index-338adbe7.js:14:6198)
    at index-338adbe7.js:14:6304
    at X.v [as constructor] (Birdseye-afb95263.js:1:201)
    at X.oi [as render] (VM286 index-338adbe7.js:1:8978)
    at vn (VM286 index-338adbe7.js:1:6647)
    at Vr (VM286 index-338adbe7.js:1:2850)
    at vn (VM286 index-338adbe7.js:1:6917)
    at VM286 index-338adbe7.js:1:2200
    at Array.some (<anonymous>)
$e @ index-338adbe7.js:1
zs @ index-338adbe7.js:14
(anonymous) @ index-338adbe7.js:14
v @ Birdseye-afb95263.js:1
oi @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
(anonymous) @ VM286 index-338adbe7.js:1
wt @ VM286 index-338adbe7.js:1
setTimeout (async)
Yt @ VM286 index-338adbe7.js:1
X.setState @ VM286 index-338adbe7.js:1
(anonymous) @ VM286 index-338adbe7.js:1
Promise.then (async)
(anonymous) @ VM286 index-338adbe7.js:1
loadComponent @ VM286 index-338adbe7.js:1
componentWillMount @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
ri @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
ri @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
ri @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
(anonymous) @ VM286 index-338adbe7.js:1
wt @ VM286 index-338adbe7.js:1
setTimeout (async)
Yt @ VM286 index-338adbe7.js:1
X.setState @ VM286 index-338adbe7.js:1
Zr.r.__c.r.__ @ VM286 index-338adbe7.js:1
(anonymous) @ VM286 index-338adbe7.js:1
c @ VM286 index-338adbe7.js:1
await in c (async)
(anonymous) @ VM286 index-338adbe7.js:1
Qt @ VM286 index-338adbe7.js:1
xi @ VM286 index-338adbe7.js:1
setTimeout (async)
n @ VM286 index-338adbe7.js:1
requestAnimationFrame (async)
Ei @ VM286 index-338adbe7.js:1
b.diffed @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
Vr @ VM286 index-338adbe7.js:1
vn @ VM286 index-338adbe7.js:1
(anonymous) @ VM286 index-338adbe7.js:1
wt @ VM286 index-338adbe7.js:1
setTimeout (async)
Yt @ VM286 index-338adbe7.js:1
X.setState @ VM286 index-338adbe7.js:1
Zr.r.__c.r.__ @ VM286 index-338adbe7.js:1
(anonymous) @ VM286 index-338adbe7.js:14
Ut @ VM286 index-338adbe7.js:14
(anonymous) @ VM286 index-338adbe7.js:14
f @ VM286 index-338adbe7.js:14
(anonymous) @ VM286 index-338adbe7.js:14
c @ VM286 index-338adbe7.js:14
Promise.then (async)
u @ VM286 index-338adbe7.js:14
(anonymous) @ VM286 index-338adbe7.js:14
po @ VM286 index-338adbe7.js:14
(anonymous) @ VM286 index-338adbe7.js:14
(anonymous) @ VM286 index-338adbe7.js:14
Qt @ VM286 index-338adbe7.js:1
(anonymous) @ VM286 index-338adbe7.js:1
(anonymous) @ VM286 index-338adbe7.js:1
b.__c @ VM286 index-338adbe7.js:1
Kr @ VM286 index-338adbe7.js:1
Zt @ VM286 index-338adbe7.js:1
(anonymous) @ VM286 index-338adbe7.js:16
birdseye:1 Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

[----snip----]

s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
[INFO] Preparing go2rtc config...
s6-rc: info: service go2rtc successfully started
s6-rc: info: service frigate: starting
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
[INFO] Starting Frigate...
s6-rc: info: service nginx successfully started
[INFO] Starting NGINX...
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[INFO] Starting go2rtc...
2023-02-08 06:47:49.385493523  06:47:49.385 INF go2rtc version 1.1.1 linux/amd64
2023-02-08 06:47:49.385791978  06:47:49.385 INF [api] listen addr=:1984
2023-02-08 06:47:49.385991050  06:47:49.385 INF [rtsp] listen addr=:8554
2023-02-08 06:47:49.386228391  06:47:49.386 INF [srtp] listen addr=:8443
2023-02-08 06:47:49.386373368  06:47:49.386 INF [webrtc] listen addr=:8555
2023-02-08 06:47:49.470099216  2023/02/08 06:47:49 [error] 121#121: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.123.0.1, server: , request: "GET /api/stats HTTP/1.1", upstream: "http://127.0.0.1:5001/stats", host: "10.123.0.2:5000"
2023-02-08 06:47:49.470130265  10.123.0.1 - - [08/Feb/2023:06:47:49 +0000] "GET /api/stats HTTP/1.1" 502 157 "-" "HomeAssistant/2023.2.2 aiohttp/3.8.1 Python/3.10" "-"
2023-02-08 06:47:50.174741551  [2023-02-08 06:47:50] frigate.app                    INFO    : Starting Frigate (0.12.0-66881eb)
2023-02-08 06:47:50.207891547  [2023-02-08 06:47:50] frigate.config                 WARNING : einfahrt: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2023-02-08 06:47:50.209612360  [2023-02-08 06:47:50] frigate.config                 WARNING : vorgarten: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2023-02-08 06:47:50.210519355  [2023-02-08 06:47:50] frigate.config                 WARNING : hausseite: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2023-02-08 06:47:50.211394929  [2023-02-08 06:47:50] frigate.config                 WARNING : garage: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2023-02-08 06:47:50.212280278  [2023-02-08 06:47:50] frigate.config                 WARNING : pool: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2023-02-08 06:47:50.213088494  [2023-02-08 06:47:50] frigate.config                 WARNING : child1: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2023-02-08 06:47:50.213886524  [2023-02-08 06:47:50] frigate.config                 WARNING : wohnzimmer: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2023-02-08 06:47:50.214721463  [2023-02-08 06:47:50] frigate.config                 WARNING : flur: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2023-02-08 06:47:50.224016043  [2023-02-08 06:47:50] frigate.app                    INFO    : Creating directory: /tmp/cache
2023-02-08 06:47:50.225466100  [2023-02-08 06:47:50] peewee_migrate                 INFO    : Starting migrations
2023-02-08 06:47:50.237850889  [2023-02-08 06:47:50] peewee_migrate                 INFO    : There is nothing to migrate
2023-02-08 06:47:50.253315187  [2023-02-08 06:47:50] detector.coral                 INFO    : Starting detection process: 283
2023-02-08 06:47:50.268682400  [2023-02-08 06:47:50] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2023-02-08 06:47:50.268862365  [2023-02-08 06:47:50] frigate.app                    INFO    : Output process started: 285
2023-02-08 06:47:50.296218634  [2023-02-08 06:47:50] frigate.app                    INFO    : Camera processor started for einfahrt: 293
2023-02-08 06:47:50.296223642  [2023-02-08 06:47:50] frigate.app                    INFO    : Camera processor started for vorgarten: 294
2023-02-08 06:47:50.296225864  [2023-02-08 06:47:50] frigate.app                    INFO    : Camera processor started for hausseite: 296
2023-02-08 06:47:50.296231249  [2023-02-08 06:47:50] frigate.app                    INFO    : Camera processor started for garage: 297
2023-02-08 06:47:50.296234519  [2023-02-08 06:47:50] frigate.app                    INFO    : Camera processor started for pool: 298
2023-02-08 06:47:50.300133166  [2023-02-08 06:47:50] frigate.app                    INFO    : Camera processor started for child1: 299
2023-02-08 06:47:50.307623150  [2023-02-08 06:47:50] frigate.app                    INFO    : Camera processor started for wohnzimmer: 301
2023-02-08 06:47:50.318082490  [2023-02-08 06:47:50] frigate.app                    INFO    : Camera processor started for flur: 302
2023-02-08 06:47:50.318088385  [2023-02-08 06:47:50] frigate.app                    INFO    : Camera processor started for doorbird: 303
2023-02-08 06:47:50.326258859  [2023-02-08 06:47:50] frigate.app                    INFO    : Capture process started for einfahrt: 305
2023-02-08 06:47:50.331750827  [2023-02-08 06:47:50] frigate.app                    INFO    : Capture process started for vorgarten: 306
2023-02-08 06:47:50.337077203  [2023-02-08 06:47:50] frigate.app                    INFO    : Capture process started for hausseite: 309
2023-02-08 06:47:50.356036690  [2023-02-08 06:47:50] frigate.app                    INFO    : Capture process started for garage: 311
2023-02-08 06:47:50.357268593  [2023-02-08 06:47:50] frigate.app                    INFO    : Capture process started for pool: 319
2023-02-08 06:47:50.376417063  [2023-02-08 06:47:50] frigate.app                    INFO    : Capture process started for child1: 321
2023-02-08 06:47:50.395954550  [2023-02-08 06:47:50] frigate.app                    INFO    : Capture process started for wohnzimmer: 334
2023-02-08 06:47:50.434717091  [2023-02-08 06:47:50] frigate.app                    INFO    : Capture process started for flur: 338
2023-02-08 06:47:50.455639486  [2023-02-08 06:47:50] frigate.app                    INFO    : Capture process started for doorbird: 351
2023-02-08 06:47:52.029909143  172.21.0.5 - nvr [08/Feb/2023:06:47:52 +0000] "GET /api/config HTTP/1.1" 200 31387 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:52.043320604  172.21.0.5 - nvr [08/Feb/2023:06:47:52 +0000] "GET /api/config HTTP/1.1" 200 31387 "https://frigate.redacted/birdseye" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:53.485394025  [2023-02-08 06:47:53] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-02-08 06:47:56.256747536  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET / HTTP/1.1" 200 6641 "https://frigate.redacted/birdseye" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.402831265  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET /api/config HTTP/1.1" 200 31387 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.690703316  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/doorbird/latest.jpg?h=299 HTTP/1.1" 200 22480 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.698683450  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/einfahrt/latest.jpg?h=399 HTTP/1.1" 499 0 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.698846653  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/flur/latest.jpg?h=300 HTTP/1.1" 499 0 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.699211104  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/garage/latest.jpg?h=399 HTTP/1.1" 499 0 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.699274047  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/hausseite/latest.jpg?h=399 HTTP/1.1" 499 0 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.699330711  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/pool/latest.jpg?h=399 HTTP/1.1" 499 0 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.699492198  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/vorgarten/latest.jpg?h=399 HTTP/1.1" 499 0 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.699495537  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/child1/latest.jpg?h=300 HTTP/1.1" 499 0 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.699501077  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/wohnzimmer/latest.jpg?h=300 HTTP/1.1" 499 0 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.728550991  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/doorbird/latest.jpg?h=296 HTTP/1.1" 200 22081 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.734881553  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/garage/latest.jpg?h=395 HTTP/1.1" 200 28713 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.742836026  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/flur/latest.jpg?h=296 HTTP/1.1" 200 18773 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.744491676  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/pool/latest.jpg?h=395 HTTP/1.1" 200 50344 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.749929201  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/vorgarten/latest.jpg?h=395 HTTP/1.1" 200 54584 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.751449856  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/einfahrt/latest.jpg?h=395 HTTP/1.1" 200 40238 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.757276853  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/hausseite/latest.jpg?h=395 HTTP/1.1" 200 68415 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.757419252  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/wohnzimmer/latest.jpg?h=296 HTTP/1.1" 200 20156 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:56.758743184  172.21.0.5 - nvr [08/Feb/2023:06:47:56 +0000] "GET //api/child1/latest.jpg?h=296 HTTP/1.1" 200 15363 "https://frigate.redacted/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:58.122877304  10.123.0.1 - - [08/Feb/2023:06:47:58 +0000] "GET /api/stats HTTP/1.1" 200 4477 "-" "HomeAssistant/2023.2.2 aiohttp/3.8.1 Python/3.10" "-"
2023-02-08 06:47:59.147979183  172.21.0.5 - nvr [08/Feb/2023:06:47:59 +0000] "GET /birdseye HTTP/1.1" 200 6641 "https://frigate.redacted/birdseye" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:59.198003464  172.21.0.5 - nvr [08/Feb/2023:06:47:59 +0000] "GET /ws HTTP/1.1" 101 4 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:47:59.219915460  172.21.0.5 - nvr [08/Feb/2023:06:47:59 +0000] "GET /api/config HTTP/1.1" 200 31387 "https://frigate.redacted/birdseye" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:48:00.115297354  172.21.0.5 - nvr [08/Feb/2023:06:48:00 +0000] "GET /birdseye HTTP/1.1" 200 6641 "https://frigate.redacted/birdseye" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:48:00.121279843  172.21.0.5 - nvr [08/Feb/2023:06:48:00 +0000] "GET /ws HTTP/1.1" 101 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"
2023-02-08 06:48:00.157806209  172.21.0.5 - nvr [08/Feb/2023:06:48:00 +0000] "GET /api/config HTTP/1.1" 200 31387 "https://frigate.redacted/birdseye" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" "79.255.164.11"

[----snip----]

FFprobe output from your camera

ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, rtsp, from 'rtsp://redacted:redacted@redacted:554/Streaming/Channels/101':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.080000, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], 12.50 tbr, 90k tbn

Frigate stats

{"cpu_usages":{"%Cpu(s):":{"cpu":"id,","mem":"0.5"},"1":{"cpu":"0.0","mem":"0.0"},"107":{"cpu":"7.0","mem":"1.1"},"1074":{"cpu":"0.0","mem":"0.0"},"1077":{"cpu":"0.3","mem":"0.0"},"112":{"cpu":"0.0","mem":"0.1"},"115":{"cpu":"0.0","mem":"0.0"},"116":{"cpu":"0.0","mem":"0.0"},"117":{"cpu":"0.0","mem":"0.0"},"118":{"cpu":"0.3","mem":"0.0"},"15":{"cpu":"0.0","mem":"0.0"},"16":{"cpu":"0.0","mem":"0.0"},"24":{"cpu":"0.0","mem":"0.0"},"25":{"cpu":"0.0","mem":"0.0"},"26":{"cpu":"0.0","mem":"0.0"},"27":{"cpu":"0.0","mem":"0.0"},"273":{"cpu":"0.0","mem":"0.5"},"279":{"cpu":"1.0","mem":"0.1"},"28":{"cpu":"0.0","mem":"0.0"},"280":{"cpu":"0.0","mem":"0.7"},"282":{"cpu":"3.0","mem":"0.6"},"287":{"cpu":"0.7","mem":"0.6"},"288":{"cpu":"1.0","mem":"0.6"},"289":{"cpu":"0.3","mem":"0.6"},"29":{"cpu":"0.0","mem":"0.0"},"291":{"cpu":"0.7","mem":"0.6"},"292":{"cpu":"0.0","mem":"0.1"},"293":{"cpu":"0.0","mem":"0.1"},"294":{"cpu":"0.7","mem":"0.6"},"295":{"cpu":"1.0","mem":"0.6"},"296":{"cpu":"0.0","mem":"0.1"},"297":{"cpu":"0.7","mem":"0.6"},"298":{"cpu":"0.7","mem":"0.6"},"299":{"cpu":"0.7","mem":"0.6"},"30":{"cpu":"0.0","mem":"0.0"},"300":{"cpu":"0.0","mem":"0.1"},"301":{"cpu":"1.0","mem":"0.6"},"303":{"cpu":"1.0","mem":"0.6"},"305":{"cpu":"0.0","mem":"0.1"},"306":{"cpu":"1.0","mem":"0.6"},"31":{"cpu":"0.0","mem":"0.0"},"311":{"cpu":"1.0","mem":"0.6"},"312":{"cpu":"3.0","mem":"0.3"},"313":{"cpu":"0.0","mem":"0.1"},"314":{"cpu":"1.3","mem":"0.6"},"315":{"cpu":"3.0","mem":"0.4"},"318":{"cpu":"3.0","mem":"0.3"},"320":{"cpu":"0.7","mem":"0.6"},"322":{"cpu":"0.0","mem":"0.1"},"325":{"cpu":"1.0","mem":"0.6"},"326":{"cpu":"1.0","mem":"0.6"},"327":{"cpu":"0.0","mem":"0.1"},"333":{"cpu":"3.7","mem":"0.3"},"334":{"cpu":"4.0","mem":"0.2"},"337":{"cpu":"3.0","mem":"0.3"},"339":{"cpu":"0.0","mem":"0.1"},"340":{"cpu":"1.0","mem":"0.2"},"342":{"cpu":"2.3","mem":"0.6"},"343":{"cpu":"5.0","mem":"0.4"},"344":{"cpu":"4.7","mem":"0.5"},"349":{"cpu":"0.0","mem":"0.1"},"357":{"cpu":"2.3","mem":"0.2"},"358":{"cpu":"5.3","mem":"0.5"},"371":{"cpu":"1.3","mem":"0.2"},"372":{"cpu":"4.3","mem":"0.4"},"40":{"cpu":"0.0","mem":"0.0"},"42":{"cpu":"0.0","mem":"0.0"},"76":{"cpu":"0.0","mem":"0.0"},"78":{"cpu":"0.0","mem":"0.0"},"82":{"cpu":"0.0","mem":"0.0"},"96":{"cpu":"0.0","mem":"0.1"},"982":{"cpu":"1.0","mem":"0.1"},"MiB":{"cpu":"11093.8","mem":"avail"},"PID":{"cpu":"%CPU","mem":"%MEM"},"Tasks:":{"cpu":"stopped,","mem":"0"},"top":{"cpu":"users,","mem":"load"}},"detection_fps":2.5,"detectors":{"coral":{"detection_start":0.0,"inference_speed":34.63,"pid":280}},"doorbird":{"camera_fps":5.0,"capture_pid":342,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":372,"pid":299,"process_fps":5.0,"skipped_fps":0.0},"einfahrt":{"camera_fps":5.0,"capture_pid":301,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":315,"pid":287,"process_fps":5.0,"skipped_fps":0.0},"flur":{"camera_fps":5.0,"capture_pid":326,"detection_enabled":0,"detection_fps":0.0,"ffmpeg_pid":358,"pid":298,"process_fps":5.0,"skipped_fps":0.0},"garage":{"camera_fps":5.1,"capture_pid":311,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":333,"pid":291,"process_fps":5.1,"skipped_fps":0.0},"gpu_usages":{"intel-vaapi":{"gpu":"9.65 %","mem":"- %"}},"hausseite":{"camera_fps":5.0,"capture_pid":306,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":318,"pid":289,"process_fps":5.0,"skipped_fps":0.0},"leif":{"camera_fps":5.1,"capture_pid":320,"detection_enabled":0,"detection_fps":0.0,"ffmpeg_pid":344,"pid":295,"process_fps":5.1,"skipped_fps":0.0},"pool":{"camera_fps":5.0,"capture_pid":314,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":337,"pid":294,"process_fps":5.0,"skipped_fps":0.0},"service":{"last_updated":1675838221,"latest_version":"0.11.1","storage":{"/dev/shm":{"free":1065.0,"mount_type":"tmpfs","total":1073.7,"used":8.8},"/media/frigate/clips":{"free":494041.0,"mount_type":"exfat","total":500057.8,"used":6016.7},"/media/frigate/recordings":{"free":494041.0,"mount_type":"exfat","total":500057.8,"used":6016.7},"/tmp/cache":{"free":154928.3,"mount_type":"overlay","total":244465.7,"used":77044.6}},"temperatures":{},"uptime":386,"version":"0.12.0-66881eb"},"vorgarten":{"camera_fps":5.0,"capture_pid":303,"detection_enabled":1,"detection_fps":0.0,"ffmpeg_pid":312,"pid":288,"process_fps":5.0,"skipped_fps":0.0},"wohnzimmer":{"camera_fps":5.1,"capture_pid":325,"detection_enabled":1,"detection_fps":2.5,"ffmpeg_pid":343,"pid":297,"process_fps":5.1,"skipped_fps":0.0}}

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

Annke C800

Any other information that may be helpful

No response

NickM-27 commented 1 year ago

What browser are you using? Can you try a different browser? Seems very odd

EricReiche commented 1 year ago

I tried Chrome on Windows and Android on 4 different devices.

NickM-27 commented 1 year ago

what kind of device / OS are you running frigate on?

EricReiche commented 1 year ago

Host is an Intel NUC BXNUC10i3FNK2 i3-10110U with Ubuntu 22.04.1 LTS, with the official frigate docker image. I switched back to 0.11.1 for testing now, and it's running fine all day.

version: "3.7"

services:
    frigate12:
      container_name: frigate
      shm_size: '1gb'
      devices:
        - /dev/dri:/dev/dri
        - /dev/bus/usb:/dev/bus/usb
      environment:
        - FRIGATE_RTSP_PASSWORD=redacted
        - PLUS_API_KEY=redacted
      image: ghcr.io/blakeblackshear/frigate:0.12.0-beta7
      networks:
          physical:
              ipv4_address: redacted
          default:
          traefik-public:
          internalbr:
              ipv4_address: redacted
      ports:
        - 1935:1935/tcp
      privileged: true
      restart: unless-stopped
      dns:
        - redacted
      volumes:
        - /etc/localtime:/etc/localtime:ro
        - /docker/frigate/config.yml:/config/config.yml
        - /media/nvr:/media/frigate:rw
        - /docker/frigate/db:/db:rw
      labels:
        - "traefik.enable=true"
        - "traefik.docker.network=traefik-public"
        - "traefik.http.routers.frig2.rule=Host(`frigate.redacted`)"
        - "traefik.http.routers.frig2.entrypoints=websecure"
        - "traefik.http.routers.frig2.tls.certresolver=myresolver"
        - "traefik.http.routers.frig2.middlewares=nvr-auth@file"
        - "traefik.http.services.frig2.loadbalancer.server.port=5000"
NickM-27 commented 1 year ago

If I had to guess something with the networks / traefik is conflicting with some changes in the webUI for 0.12. No one else has experienced this issue in the beta so I'd say it is likely to be something specific to your setup. The log message is unfortunately incredibly unhelpful so no idea what it could be specifically.

Flamewires commented 1 year ago

Unsure if this is related, but on beta7 too and I've noticed, at least on firefox (not tried others) that after a few days my frigate tab is at like 6+ gigs of memory used. Needed to kill it or shift+f5 reload and then its fine again. Perhaps some kind of memory leak on client side? Unsure if this maybe causing issue for OP.

github-actions[bot] commented 1 year ago

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.

EricReiche commented 1 year ago

I ignored this problem for a while after going back to 0.11, but after the 0.12 release I decided to look into it again. It does look to be related to my reverse proxy as you suggested, because if I access the UI via IP from my internal network, it's fine. I'm unsure how to debug this further. I'm using Traefik with basic auth. Maybe I'll try to set up nginx to troubleshoot.

Firefox throws this exception btw., which also doesn't sound very useful to me:

Uncaught (in promise) DOMException: A mutation operation was attempted on a database that did not allow mutations.
GloryVu commented 1 year ago

internal

did you solve this problem yet? i ocur the same issue and even with internal.

EricReiche commented 1 year ago

unfortunately not, I even replaced traefik with nginx without any change.

GloryVu commented 1 year ago

it was solved by recent released 0.12.1 version.

EricReiche commented 1 year ago

Can you please elaborate?

EricReiche commented 10 months ago

If anyone stumbles upon this via search, the problem seems to persist if the Web interface is accessed through a proxy in combination with setting basicauth via URL, e.g. https://user:password@url I'm not sure if this is a bug in Chrome or in Frigate, but it seems to not properly re-use the credentials for some child requests and hence makes the UI unresponsive.