blakeblackshear / frigate

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

[Support]: Updated to latest version from 0.12.x, wont stay up for longer than 1 min #9703

Closed nthulke closed 7 months ago

nthulke commented 8 months ago

Describe the problem you are having

Every time it starts, it lasts about 1 min then restarts the docker image and just loops

Version

0.13.1-34FB1C2

Frigate config file

mqtt:
  host: 192.168.1.201
  user: mqtt-user
  password: "REMOVED"
  topic_prefix: frigate
  client_id: frigate

birdseye:
  restream: true

detectors:
  coral1:
    type: edgetpu
    device: pci:0
  coral2:
    type: edgetpu
    device: pci:1

record:
  enabled: true

snapshots:
      enabled: true
      clean_copy: true
      timestamp: true
      bounding_box: true
      crop: False

cameras:

############################################################ 3d Printer
  3dprinter:
    objects:
      track:
        - person
        - cat
        - dog
        - mouse
        - rat
        - brid
    ffmpeg:
      hwaccel_args: preset-vaapi      
      inputs:
        - path: rtsp://REMOVED:REMOVED@10.0.0.130/live #rtsp://10.0.0.128:8554/unicast # rtsp://REMOVED:REMOVED@10.0.0.128/live
          roles:
            - record

############################################################ Wood Shed
  woodshed:
    objects:
      track:
        - cat
        - dog
        - person
        - car
        - numberplate
    ffmpeg:
      hwaccel_args: preset-vaapi
      inputs:
        - path: rtsp://REMOVED:REMOVED@10.0.0.129/live
          roles:
            - detect
            - record

############################################################ Drive Way
  driveway:
    ffmpeg:
      hwaccel_args: preset-vaapi      
      inputs:
        - path: rtsp://admin:RGlldDM5MENva2U=@192.168.1.159/11
          roles:
            - detect
            - record
    objects:
      track:
        - cat
        - dog
        - person
        - car
        - motorbike
        - truck
        - brid

############################################################ Front Yard
  frontyard:
    objects:
      track:
        - cat
        - dog
        - person
    ffmpeg:
      hwaccel_args: preset-vaapi      
      inputs:
        - path: rtsp://REMOVED:REMOVED@10.0.0.131/live
          roles:
            - detect
            - record

############################################################ Back Yard
  backyard:
    ffmpeg:
      hwaccel_args: preset-vaapi      
      inputs:
        - path: rtsp://192.168.1.108/AB28FE9FD3605EE49C6DAA8FD61F5CD9&0
          roles:
            - detect
            - record
    objects:
      track:
        - cat
        - dog
        - person
        - bird
    motion:
      mask:
        - 575,720,696,507,944,493,995,720
        - 1280,350,1280,531,1218,524,1143,421,1222,334
    zones:
      chookpen: 
        coordinates: 679,85,992,125,989,216,838,263,665,302,532,253,524,116
############################################################ Kids Hallway old
  garage:
    objects:
      track:
        - cat
        - dog
        - person
        - bird        
    ffmpeg:
      hwaccel_args: preset-vaapi      
      inputs:
        - path: rtsp://REMOVED:REMOVED@10.0.0.128/live #rtsp://10.0.0.128:8554/unicast #rtsp://REMOVED:REMOVED@10.0.0.130/live
          roles:
            - detect
            - record
    zones:
      path:
        coordinates: 633,549,720,414,761,301,714,269,719,235,766,254,828,143,868,107,932,114,951,158,901,339,942,374,998,416,1014,501,1057,604,1159,606,1206,678,1280,720,817,720,423,720
        record:
        enabled: True
        mode: motion
        retain:
          days: 7
          mode: motion
############################################################ Kids Hallway
  #hallway:
  driveway2:
    objects:
      track:
        - cat
        - dog
        - person
        - car
        - motorbike
        - truck
        - brid        
     # filters:
     #   dog:
     #     mask:
     #       - 679,561,689,615,857,699,837,720,449,720,303,511,276,436,451,389,464,441
     #       - 0,0,822,0,1280,0,1280,232,1096,223,1091,471,591,346,0,507,0,211
     #   person:
     #     mask:
     #       - 0,0,424,0,470,429,670,552,674,602,829,689,794,720,0,720             
    ffmpeg:
      hwaccel_args: preset-vaapi      
      inputs:
        - path: rtsp://REMOVED:REMOVED@10.0.0.179:554/stream1
          roles:
            - record
        - path: rtsp://REMOVED:REMOVED@10.0.0.179:554/stream2
          roles:
            - detect

    #record:
    #  events:
    #    required_zones:
    #      - hallwaydog

    #snapshots: 
    #  required_zones:
    #    - hallwaydog

    #zones:  
    #    hallwayperson:
    #      coordinates: 1060,0,1039,188,441,186,471,429,568,490,669,557,671,603,829,720,1160,720,1249,443,1247,0          
    #      objects:
    #        - person
    #      snapshots:
    #        enalbe: False

    #    hallwaydog:
    #      coordinates: 0,720,1280,720,1280,0,0,0
    #      objects:
    #        - dog
    #        - cat

############################################################ New Dog Cam backdoor
  backdoor:
    ffmpeg:
      hwaccel_args: preset-vaapi      
      inputs:
        - path: rtsp://REMOVED:REMOVED@10.0.0.178:554/stream1
          roles:
            - record
        - path: rtsp://REMOVED:REMOVED@10.0.0.178:554/stream2
          roles:
            - detect
    objects:
      track:
        - dog
        - cat
      filters:
        dog:
          mask:
          #- 920,531,923,364,676,366,589,500
          #- 0,0,757,0,759,254,0,354          
          - 678,273,731,139,511,129,421,241
          - 0,0,1280,0,1280,86,481,79,373,167,247,240,0,364

Relevant log output

2024-02-06 21:50:32.771743129  [2024-02-06 21:50:32] peewee_migrate.logs            INFO    : Starting migrations
2024-02-06 21:50:32.775703046  [2024-02-06 21:50:32] peewee_migrate.logs            INFO    : There is nothing to migrate
2024-02-06 21:50:32.781731488  [2024-02-06 21:50:32] frigate.app                    INFO    : Recording process started: 346
2024-02-06 21:50:32.784402928  [2024-02-06 21:50:32] frigate.app                    INFO    : go2rtc process pid: 86
2024-02-06 21:50:32.815243348  [2024-02-06 21:50:32] detector.coral1                INFO    : Starting detection process: 356
2024-02-06 21:50:32.818268889  Process detector:coral1:
2024-02-06 21:50:32.818696577  [2024-02-06 21:50:32] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as pci:0
2024-02-06 21:50:32.818702923  [2024-02-06 21:50:32] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2024-02-06 21:50:32.820308423  Traceback (most recent call last):
2024-02-06 21:50:32.820312276    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2024-02-06 21:50:32.820313856      delegate = Delegate(library, options)
2024-02-06 21:50:32.820315524    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2024-02-06 21:50:32.820317696      raise ValueError(capture.message)
2024-02-06 21:50:32.820320512  ValueError
2024-02-06 21:50:32.820379918  
2024-02-06 21:50:32.820381609  During handling of the above exception, another exception occurred:
2024-02-06 21:50:32.820382756  
2024-02-06 21:50:32.820384005  Traceback (most recent call last):
2024-02-06 21:50:32.820385454    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-02-06 21:50:32.820386646      self.run()
2024-02-06 21:50:32.820388125    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-02-06 21:50:32.820389489      self._target(*self._args, **self._kwargs)
2024-02-06 21:50:32.820391125    File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-02-06 21:50:32.820412516      object_detector = LocalObjectDetector(detector_config=detector_config)
2024-02-06 21:50:32.820414203    File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
2024-02-06 21:50:32.820415570      self.detect_api = create_detector(detector_config)
2024-02-06 21:50:32.820441688    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2024-02-06 21:50:32.820442992      return api(detector_config)
2024-02-06 21:50:32.820444986    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
2024-02-06 21:50:32.820446461      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2024-02-06 21:50:32.820462792    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2024-02-06 21:50:32.820464319      raise ValueError('Failed to load delegate from {}\n{}'.format(
2024-02-06 21:50:32.820465835  ValueError: Failed to load delegate from libedgetpu.so.1.0
2024-02-06 21:50:32.820466960  
2024-02-06 21:50:32.827935158  [2024-02-06 21:50:32] frigate.app                    INFO    : Output process started: 361
2024-02-06 21:50:32.835675513  [2024-02-06 21:50:32] detector.coral2                INFO    : Starting detection process: 358
2024-02-06 21:50:32.835679796  [2024-02-06 21:50:32] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as pci:1
2024-02-06 21:50:32.835682225  [2024-02-06 21:50:32] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2024-02-06 21:50:32.835807046  Process detector:coral2:
2024-02-06 21:50:32.836906992  Traceback (most recent call last):
2024-02-06 21:50:32.836910964    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2024-02-06 21:50:32.836912612      delegate = Delegate(library, options)
2024-02-06 21:50:32.836914289    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2024-02-06 21:50:32.836915713      raise ValueError(capture.message)
2024-02-06 21:50:32.836916904  ValueError
2024-02-06 21:50:32.836918112  
2024-02-06 21:50:32.836919586  During handling of the above exception, another exception occurred:
2024-02-06 21:50:32.836920758  
2024-02-06 21:50:32.836922040  Traceback (most recent call last):
2024-02-06 21:50:32.836923476    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-02-06 21:50:32.836924642      self.run()
2024-02-06 21:50:32.836926061    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-02-06 21:50:32.836927363      self._target(*self._args, **self._kwargs)
2024-02-06 21:50:32.836928791    File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-02-06 21:50:32.836930258      object_detector = LocalObjectDetector(detector_config=detector_config)
2024-02-06 21:50:32.836931585    File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
2024-02-06 21:50:32.836932912      self.detect_api = create_detector(detector_config)
2024-02-06 21:50:32.836934326    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2024-02-06 21:50:32.836935506      return api(detector_config)
2024-02-06 21:50:32.836936984    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
2024-02-06 21:50:32.836938384      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2024-02-06 21:50:32.836974444    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2024-02-06 21:50:32.836976122      raise ValueError('Failed to load delegate from {}\n{}'.format(
2024-02-06 21:50:32.836977497  ValueError: Failed to load delegate from libedgetpu.so.1.0
2024-02-06 21:50:32.836978775  
2024-02-06 21:50:32.879043600  [2024-02-06 21:50:32] frigate.app                    INFO    : Camera processor started for 3dprinter: 372
2024-02-06 21:50:32.880407849  [2024-02-06 21:50:32] frigate.app                    INFO    : Camera processor started for woodshed: 373
2024-02-06 21:50:32.887061559  [2024-02-06 21:50:32] frigate.app                    INFO    : Camera processor started for driveway: 375
2024-02-06 21:50:32.893943007  [2024-02-06 21:50:32] frigate.app                    INFO    : Camera processor started for frontyard: 378
2024-02-06 21:50:32.900998950  [2024-02-06 21:50:32] frigate.app                    INFO    : Camera processor started for backyard: 380
2024-02-06 21:50:32.908966820  [2024-02-06 21:50:32] frigate.app                    INFO    : Camera processor started for garage: 383
2024-02-06 21:50:32.920883968  [2024-02-06 21:50:32] frigate.app                    INFO    : Camera processor started for driveway2: 385
2024-02-06 21:50:32.927315634  [2024-02-06 21:50:32] frigate.app                    INFO    : Camera processor started for backdoor: 388
2024-02-06 21:50:32.934086689  [2024-02-06 21:50:32] frigate.app                    INFO    : Capture process started for 3dprinter: 390
2024-02-06 21:50:32.940951584  [2024-02-06 21:50:32] frigate.app                    INFO    : Capture process started for woodshed: 394
2024-02-06 21:50:32.948471339  [2024-02-06 21:50:32] frigate.app                    INFO    : Capture process started for driveway: 397
2024-02-06 21:50:32.955812953  [2024-02-06 21:50:32] frigate.app                    INFO    : Capture process started for frontyard: 403
2024-02-06 21:50:32.963125597  [2024-02-06 21:50:32] frigate.app                    INFO    : Capture process started for backyard: 407
2024-02-06 21:50:32.970750737  [2024-02-06 21:50:32] frigate.app                    INFO    : Capture process started for garage: 412
2024-02-06 21:50:32.980375586  [2024-02-06 21:50:32] frigate.app                    INFO    : Capture process started for driveway2: 415
2024-02-06 21:50:32.993078141  [2024-02-06 21:50:32] frigate.app                    INFO    : Capture process started for backdoor: 420
2024-02-06 21:50:49.962708352  192.168.1.194 - - [06/Feb/2024:21:50:49 +1100] "GET /api/config HTTP/1.1" 200 37080 "http://192.168.1.189:5000/system" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
2024-02-06 21:50:53.132965581  [2024-02-06 21:50:53] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...
2024-02-06 21:50:53.133416035  [2024-02-06 21:50:53] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service go2rtc-healthcheck: stopping
2024-02-06 21:50:53.143720209  [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2024-02-06 21:50:53.204114154  [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
2024-02-06 21:50:53.206943116  [2024-02-06 21:50:53] frigate.app                    INFO    : Stopping...
2024-02-06 21:50:53.207371514  [2024-02-06 21:50:53] frigate.storage                INFO    : Exiting storage maintainer...
s6-rc: info: service nginx-log successfully stopped
2024-02-06 21:50:53.213270019  [2024-02-06 21:50:53] frigate.events.cleanup         INFO    : Exiting event cleanup...
2024-02-06 21:50:53.213274115  [2024-02-06 21:50:53] frigate.record.cleanup         INFO    : Exiting recording cleanup...
2024-02-06 21:50:53.213275908  [2024-02-06 21:50:53] frigate.stats                  INFO    : Exiting stats emitter...
2024-02-06 21:50:53.214514478  [2024-02-06 21:50:53] frigate.ptz.autotrack          INFO    : Exiting autotracker...
2024-02-06 21:50:53.214517719  [2024-02-06 21:50:53] frigate.watchdog               INFO    : Exiting watchdog...
2024-02-06 21:50:53.218397430  [2024-02-06 21:50:53] frigate.object_processing      INFO    : Exiting object processor...
2024-02-06 21:50:53.338964048  [2024-02-06 21:50:53] frigate.comms.ws               INFO    : Exiting websocket client...
2024-02-06 21:50:54.177962049  [2024-02-06 21:50:54] frigate.events.maintainer      INFO    : Exiting event processor...
2024-02-06 21:50:54.178359170  [2024-02-06 21:50:54] peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
2024-02-06 21:50:54.182637671  [2024-02-06 21:50:54] watchdog.woodshed              INFO    : Terminating the existing ffmpeg process...
2024-02-06 21:50:54.182965942  [2024-02-06 21:50:54] watchdog.3dprinter             INFO    : Terminating the existing ffmpeg process...
2024-02-06 21:50:54.183268799  [2024-02-06 21:50:54] watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
2024-02-06 21:50:54.183447201  [2024-02-06 21:50:54] watchdog.3dprinter             INFO    : Waiting for ffmpeg to exit gracefully...
2024-02-06 21:50:54.183825347  [2024-02-06 21:50:54] watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
2024-02-06 21:50:54.184177951  [2024-02-06 21:50:54] watchdog.woodshed              INFO    : Waiting for ffmpeg to exit gracefully...
2024-02-06 21:52:53.321114330  [INFO] Service Frigate exited with code 256 (by signal 9)
s6-rc: info: service frigate successfully stopped
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
2024-02-06 21:52:53.323739377  exit with signal: terminated
s6-rc: info: service frigate-log successfully stopped
2024-02-06 21:52:53.329010829  [INFO] The go2rtc service exited with code 0 (by signal 0)
s6-rc: info: service go2rtc successfully stopped
s6-rc: info: service go2rtc-log: stopping
s6-rc: info: service go2rtc-log successfully stopped
s6-rc: info: service log-prepare: stopping
s6-rc: info: service s6rc-fdholder: stopping
s6-rc: info: service log-prepare successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service s6rc-fdholder successfully stopped
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

FFprobe output from your camera

Metadata:
    title           : Session streamed by "TP-LINK RTSP Server"
    comment         : stream2
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuv420p(progressive), 2304x1296, 15 fps, 20 tbr, 90k tbn, 30 tbc
  Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s

Frigate stats

No response

Operating system

Other Linux

Install method

Docker Compose

Coral version

M.2

Network connection

Wired

Camera make and model

RTSP mixed

Any other information that may be helpful

There is one section in the logs showing that no TPU detected but I can see in the system page it sees both TPUs image

nthulke commented 8 months ago

I will also add that during the minute its running the camera feeds all show up.

NickM-27 commented 8 months ago

corals are not detected, what is your docker compose

nthulke commented 8 months ago

Here is my docker compose file

version: "3.9"
services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: always
    image: ghcr.io/blakeblackshear/frigate:stable
    shm_size: "200mb" # update for your cameras based on calculation above
    devices:
      - /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
      - /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
      - /dev/apex_1:/dev/apex_1 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
      - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /home/awd/frigate/config/:/config
      - /home/awd/frigate/config/config.yml:/config/config.yml
      - /home/awd/frigate/storage:/media/frigate
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "5000:5000"
      - "8554:8554" # RTSP feeds
      - "8555:8555/tcp" # WebRTC over tcp
      - "8555:8555/udp" # WebRTC over udp
    environment:
      FRIGATE_RTSP_PASSWORD: "REMOVED"
      FRIGATE_MQTT_PASSWORD: "REMOVED"
      FRIGATE_BACKDOORCAM_PATH: "http://REMOVED:REMOVED=@10.0.0.23:8080/stream/getvideo"
      FRIGATE_3DPRINTER_PATH: "rtsp://REMOVED:REMOVED@10.0.0.128/live"
nthulke commented 8 months ago

Here is the full log running attached


[+] Running 2/2
 ✔ Network frigate_default  Created                                                                                                                                                                                                                      0.1s
 ✔ Container frigate        Created                                                                                                                                                                                                                      0.1s
Attaching to frigate
frigate  | s6-rc: info: service s6rc-fdholder: starting
frigate  | s6-rc: info: service s6rc-oneshot-runner: starting
frigate  | s6-rc: info: service s6rc-oneshot-runner successfully started
frigate  | s6-rc: info: service fix-attrs: starting
frigate  | s6-rc: info: service s6rc-fdholder successfully started
frigate  | s6-rc: info: service fix-attrs successfully started
frigate  | s6-rc: info: service legacy-cont-init: starting
frigate  | s6-rc: info: service legacy-cont-init successfully started
frigate  | s6-rc: info: service log-prepare: starting
frigate  | s6-rc: info: service log-prepare successfully started
frigate  | s6-rc: info: service nginx-log: starting
frigate  | s6-rc: info: service go2rtc-log: starting
frigate  | s6-rc: info: service frigate-log: starting
frigate  | s6-rc: info: service frigate-log successfully started
frigate  | s6-rc: info: service nginx-log successfully started
frigate  | s6-rc: info: service go2rtc-log successfully started
frigate  | s6-rc: info: service go2rtc: starting
frigate  | s6-rc: info: service go2rtc successfully started
frigate  | s6-rc: info: service go2rtc-healthcheck: starting
frigate  | s6-rc: info: service frigate: starting
frigate  | s6-rc: info: service go2rtc-healthcheck successfully started
frigate  | s6-rc: info: service frigate successfully started
frigate  | s6-rc: info: service nginx: starting
frigate  | s6-rc: info: service nginx successfully started
frigate  | s6-rc: info: service legacy-services: starting
frigate  | 2024-02-07 22:25:32.149527019  [INFO] Preparing Frigate...
frigate  | 2024-02-07 22:25:32.151379102  [INFO] Preparing new go2rtc config...
frigate  | 2024-02-07 22:25:32.152832731  [INFO] Starting NGINX...
frigate  | s6-rc: info: service legacy-services successfully started
frigate  | 2024-02-07 22:25:32.162891245  [INFO] Starting Frigate...
frigate  | 2024-02-07 22:25:32.408962539  [INFO] Starting go2rtc...
frigate  | 2024-02-07 22:25:32.529108426  22:25:32.529 INF go2rtc version 1.8.4 linux/amd64
frigate  | 2024-02-07 22:25:32.529630995  22:25:32.529 INF [rtsp] listen addr=:8554
frigate  | 2024-02-07 22:25:32.529790834  22:25:32.529 INF [api] listen addr=:1984
frigate  | 2024-02-07 22:25:32.529974712  22:25:32.529 INF [webrtc] listen addr=:8555
frigate  | 2024-02-07 22:25:33.570451443  [2024-02-07 22:25:33] frigate.app                    INFO    : Starting Frigate (0.13.1-34fb1c2)
frigate  | 2024-02-07 22:25:37.119096798  2024/02/07 22:25:37 [error] 145#145: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
frigate  | 2024-02-07 22:25:42.150805339  [INFO] Starting go2rtc healthcheck service...
frigate  | 2024-02-07 22:25:42.210873311  2024/02/07 22:25:42 [error] 148#148: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
frigate  | 2024-02-07 22:25:47.270310120  2024/02/07 22:25:47 [error] 146#146: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
frigate  | 2024-02-07 22:25:52.359143970  2024/02/07 22:25:52 [error] 147#147: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
frigate  | 2024-02-07 22:25:55.821891167  192.168.1.194 - - [07/Feb/2024:22:25:55 +1100] "GET / HTTP/1.1" 200 6637 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:25:55.935320672  2024/02/07 22:25:55 [error] 145#145: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.194, server: , request: "GET /api/config HTTP/1.1", upstream: "http://127.0.0.1:5001/config", host: "192.168.1.189:5000", referrer: "http://192.168.1.189:5000/"
frigate  | 2024-02-07 22:25:55.935383956  192.168.1.194 - - [07/Feb/2024:22:25:55 +1100] "GET /api/config HTTP/1.1" 502 559 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:25:57.451350667  2024/02/07 22:25:57 [error] 145#145: *12 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
frigate  | 2024-02-07 22:26:00.954668743  2024/02/07 22:26:00 [error] 145#145: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.194, server: , request: "GET /api/config HTTP/1.1", upstream: "http://127.0.0.1:5001/config", host: "192.168.1.189:5000", referrer: "http://192.168.1.189:5000/"
frigate  | 2024-02-07 22:26:00.954734121  192.168.1.194 - - [07/Feb/2024:22:26:00 +1100] "GET /api/config HTTP/1.1" 502 559 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:02.534737932  2024/02/07 22:26:02 [error] 145#145: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
frigate  | 2024-02-07 22:26:07.619122916  2024/02/07 22:26:07 [error] 145#145: *17 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
frigate  | 2024-02-07 22:26:08.179031481  [2024-02-07 22:26:08] peewee_migrate.logs            INFO    : Starting migrations
frigate  | 2024-02-07 22:26:08.183280194  [2024-02-07 22:26:08] peewee_migrate.logs            INFO    : There is nothing to migrate
frigate  | 2024-02-07 22:26:08.189437445  [2024-02-07 22:26:08] frigate.app                    INFO    : Recording process started: 381
frigate  | 2024-02-07 22:26:08.192243664  [2024-02-07 22:26:08] frigate.app                    INFO    : go2rtc process pid: 89
frigate  | 2024-02-07 22:26:08.223080831  [2024-02-07 22:26:08] detector.coral1                INFO    : Starting detection process: 390
frigate  | 2024-02-07 22:26:08.226186234  [2024-02-07 22:26:08] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as pci:0
frigate  | 2024-02-07 22:26:08.226605554  [2024-02-07 22:26:08] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
frigate  | 2024-02-07 22:26:08.228063660  Process detector:coral1:
frigate  | 2024-02-07 22:26:08.228067749  Traceback (most recent call last):
frigate  | 2024-02-07 22:26:08.228069633    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
frigate  | 2024-02-07 22:26:08.228073564      delegate = Delegate(library, options)
frigate  | 2024-02-07 22:26:08.228075726    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
frigate  | 2024-02-07 22:26:08.228094205      raise ValueError(capture.message)
frigate  | 2024-02-07 22:26:08.228095603  ValueError
frigate  | 2024-02-07 22:26:08.228096795
frigate  | 2024-02-07 22:26:08.228098737  During handling of the above exception, another exception occurred:
frigate  | 2024-02-07 22:26:08.228099980
frigate  | 2024-02-07 22:26:08.228101292  Traceback (most recent call last):
frigate  | 2024-02-07 22:26:08.228102801    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
frigate  | 2024-02-07 22:26:08.228129190      self.run()
frigate  | 2024-02-07 22:26:08.228130787    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
frigate  | 2024-02-07 22:26:08.228132257      self._target(*self._args, **self._kwargs)
frigate  | 2024-02-07 22:26:08.228133736    File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
frigate  | 2024-02-07 22:26:08.228150629      object_detector = LocalObjectDetector(detector_config=detector_config)
frigate  | 2024-02-07 22:26:08.228152109    File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
frigate  | 2024-02-07 22:26:08.228153585      self.detect_api = create_detector(detector_config)
frigate  | 2024-02-07 22:26:08.228154979    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
frigate  | 2024-02-07 22:26:08.228156205      return api(detector_config)
frigate  | 2024-02-07 22:26:08.228157683    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
frigate  | 2024-02-07 22:26:08.228159099      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
frigate  | 2024-02-07 22:26:08.228178445    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
frigate  | 2024-02-07 22:26:08.228179942      raise ValueError('Failed to load delegate from {}\n{}'.format(
frigate  | 2024-02-07 22:26:08.228181321  ValueError: Failed to load delegate from libedgetpu.so.1.0
frigate  | 2024-02-07 22:26:08.228182482
frigate  | 2024-02-07 22:26:08.233640080  [2024-02-07 22:26:08] frigate.app                    INFO    : Output process started: 397
frigate  | 2024-02-07 22:26:08.235057721  [2024-02-07 22:26:08] detector.coral2                INFO    : Starting detection process: 393
frigate  | 2024-02-07 22:26:08.235061924  [2024-02-07 22:26:08] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as pci:1
frigate  | 2024-02-07 22:26:08.235064260  [2024-02-07 22:26:08] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
frigate  | 2024-02-07 22:26:08.235279813  Process detector:coral2:
frigate  | 2024-02-07 22:26:08.241426837  Traceback (most recent call last):
frigate  | 2024-02-07 22:26:08.241431280    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
frigate  | 2024-02-07 22:26:08.241432944      delegate = Delegate(library, options)
frigate  | 2024-02-07 22:26:08.241434639    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
frigate  | 2024-02-07 22:26:08.241436047      raise ValueError(capture.message)
frigate  | 2024-02-07 22:26:08.241437243  ValueError
frigate  | 2024-02-07 22:26:08.241438482
frigate  | 2024-02-07 22:26:08.241439992  During handling of the above exception, another exception occurred:
frigate  | 2024-02-07 22:26:08.241441147
frigate  | 2024-02-07 22:26:08.241442428  Traceback (most recent call last):
frigate  | 2024-02-07 22:26:08.241443857    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
frigate  | 2024-02-07 22:26:08.241445022      self.run()
frigate  | 2024-02-07 22:26:08.241446446    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
frigate  | 2024-02-07 22:26:08.241447762      self._target(*self._args, **self._kwargs)
frigate  | 2024-02-07 22:26:08.241449108    File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
frigate  | 2024-02-07 22:26:08.241450535      object_detector = LocalObjectDetector(detector_config=detector_config)
frigate  | 2024-02-07 22:26:08.241451923    File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
frigate  | 2024-02-07 22:26:08.241453196      self.detect_api = create_detector(detector_config)
frigate  | 2024-02-07 22:26:08.241454589    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
frigate  | 2024-02-07 22:26:08.241455739      return api(detector_config)
frigate  | 2024-02-07 22:26:08.241457168    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
frigate  | 2024-02-07 22:26:08.241458546      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
frigate  | 2024-02-07 22:26:08.241460073    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
frigate  | 2024-02-07 22:26:08.241461476      raise ValueError('Failed to load delegate from {}\n{}'.format(
frigate  | 2024-02-07 22:26:08.241462828  ValueError: Failed to load delegate from libedgetpu.so.1.0
frigate  | 2024-02-07 22:26:08.241463920
frigate  | 2024-02-07 22:26:08.261443268  [2024-02-07 22:26:08] frigate.app                    INFO    : Camera processor started for 3dprinter: 405
frigate  | 2024-02-07 22:26:08.291828717  [2024-02-07 22:26:08] frigate.app                    INFO    : Camera processor started for woodshed: 407
frigate  | 2024-02-07 22:26:08.291833074  [2024-02-07 22:26:08] frigate.app                    INFO    : Camera processor started for driveway: 410
frigate  | 2024-02-07 22:26:08.291835024  [2024-02-07 22:26:08] frigate.app                    INFO    : Camera processor started for frontyard: 411
frigate  | 2024-02-07 22:26:08.301300196  [2024-02-07 22:26:08] frigate.app                    INFO    : Camera processor started for backyard: 416
frigate  | 2024-02-07 22:26:08.308306931  [2024-02-07 22:26:08] frigate.app                    INFO    : Camera processor started for garage: 418
frigate  | 2024-02-07 22:26:08.315136819  [2024-02-07 22:26:08] frigate.app                    INFO    : Camera processor started for driveway2: 420
frigate  | 2024-02-07 22:26:08.322153930  [2024-02-07 22:26:08] frigate.app                    INFO    : Camera processor started for backdoor: 423
frigate  | 2024-02-07 22:26:08.329285336  [2024-02-07 22:26:08] frigate.app                    INFO    : Capture process started for 3dprinter: 425
frigate  | 2024-02-07 22:26:08.337226564  [2024-02-07 22:26:08] frigate.app                    INFO    : Capture process started for woodshed: 429
frigate  | 2024-02-07 22:26:08.344397461  [2024-02-07 22:26:08] frigate.app                    INFO    : Capture process started for driveway: 433
frigate  | 2024-02-07 22:26:08.352005482  [2024-02-07 22:26:08] frigate.app                    INFO    : Capture process started for frontyard: 437
frigate  | 2024-02-07 22:26:08.364148091  [2024-02-07 22:26:08] frigate.app                    INFO    : Capture process started for backyard: 443
frigate  | 2024-02-07 22:26:08.375088311  [2024-02-07 22:26:08] frigate.app                    INFO    : Capture process started for garage: 451
frigate  | 2024-02-07 22:26:08.384553464  [2024-02-07 22:26:08] frigate.app                    INFO    : Capture process started for driveway2: 456
frigate  | 2024-02-07 22:26:08.392509556  [2024-02-07 22:26:08] frigate.app                    INFO    : Capture process started for backdoor: 465
frigate  | 2024-02-07 22:26:20.971281741  192.168.1.194 - - [07/Feb/2024:22:26:20 +1100] "GET /api/config HTTP/1.1" 200 37080 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.013320308  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/backdoor/latest.jpg?h=100 HTTP/1.1" 200 4866 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.018518363  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/driveway2/latest.jpg?h=100 HTTP/1.1" 200 3866 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.022143777  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/3dprinter/latest.jpg?h=100 HTTP/1.1" 499 0 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.022816010  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/backyard/latest.jpg?h=100 HTTP/1.1" 499 0 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.023163880  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/driveway/latest.jpg?h=100 HTTP/1.1" 499 0 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.023503869  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/frontyard/latest.jpg?h=100 HTTP/1.1" 499 0 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.023665525  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/garage/latest.jpg?h=100 HTTP/1.1" 499 0 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.023811445  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/woodshed/latest.jpg?h=100 HTTP/1.1" 499 0 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.078737084  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/driveway/latest.jpg?h=323 HTTP/1.1" 200 9498 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.078748450  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/driveway2/latest.jpg?h=323 HTTP/1.1" 200 26075 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.078883411  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/backdoor/latest.jpg?h=323 HTTP/1.1" 200 31797 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.080191481  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/frontyard/latest.jpg?h=323 HTTP/1.1" 200 21753 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.084962207  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/backyard/latest.jpg?h=323 HTTP/1.1" 200 19149 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.091599117  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/3dprinter/latest.jpg?h=323 HTTP/1.1" 200 27902 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.099020743  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/woodshed/latest.jpg?h=323 HTTP/1.1" 200 12309 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:21.110686166  192.168.1.194 - - [07/Feb/2024:22:26:21 +1100] "GET /api/garage/latest.jpg?h=323 HTTP/1.1" 200 26793 "http://192.168.1.189:5000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
frigate  | 2024-02-07 22:26:28.515852436  [2024-02-07 22:26:28] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...
frigate  | 2024-02-07 22:26:28.516864475  [2024-02-07 22:26:28] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...
frigate  | s6-rc: info: service legacy-services: stopping
frigate  | s6-rc: info: service legacy-services successfully stopped
frigate  | s6-rc: info: service nginx: stopping
frigate  | s6-rc: info: service go2rtc-healthcheck: stopping
frigate  | 2024-02-07 22:26:28.528173359  [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
frigate  | s6-rc: info: service go2rtc-healthcheck successfully stopped
frigate  | 2024-02-07 22:26:28.574677021  [INFO] Service NGINX exited with code 0 (by signal 0)
frigate  | s6-rc: info: service nginx successfully stopped
frigate  | s6-rc: info: service nginx-log: stopping
frigate  | s6-rc: info: service frigate: stopping
frigate  | 2024-02-07 22:26:28.577129089  [2024-02-07 22:26:28] frigate.app                    INFO    : Stopping...
frigate  | s6-rc: info: service nginx-log successfully stopped
frigate  | 2024-02-07 22:26:28.577993306  [2024-02-07 22:26:28] frigate.record.cleanup         INFO    : Exiting recording cleanup...
frigate  | 2024-02-07 22:26:28.579313770  [2024-02-07 22:26:28] frigate.watchdog               INFO    : Exiting watchdog...
frigate  | 2024-02-07 22:26:28.580153166  [2024-02-07 22:26:28] frigate.stats                  INFO    : Exiting stats emitter...
frigate  | 2024-02-07 22:26:28.580156788  [2024-02-07 22:26:28] frigate.events.cleanup         INFO    : Exiting event cleanup...
frigate  | 2024-02-07 22:26:28.580158709  [2024-02-07 22:26:28] frigate.ptz.autotrack          INFO    : Exiting autotracker...
frigate  | 2024-02-07 22:26:28.580160502  [2024-02-07 22:26:28] frigate.storage                INFO    : Exiting storage maintainer...
frigate  | 2024-02-07 22:26:28.580162175  [2024-02-07 22:26:28] frigate.object_processing      INFO    : Exiting object processor...
frigate  | 2024-02-07 22:26:28.994312856  [2024-02-07 22:26:28] frigate.comms.ws               INFO    : Exiting websocket client...
frigate  | 2024-02-07 22:26:29.527446142  [2024-02-07 22:26:29] frigate.events.maintainer      INFO    : Exiting event processor...
frigate  | 2024-02-07 22:26:29.528315724  [2024-02-07 22:26:29] peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
frigate  | 2024-02-07 22:26:29.531320782  [2024-02-07 22:26:29] watchdog.3dprinter             INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.531324827  [2024-02-07 22:26:29] watchdog.3dprinter             INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:29.532774698  [2024-02-07 22:26:29] watchdog.frontyard             INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.532779643  [2024-02-07 22:26:29] watchdog.frontyard             INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:29.532781587  [2024-02-07 22:26:29] watchdog.woodshed              INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.532783284  [2024-02-07 22:26:29] watchdog.woodshed              INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:29.532784973  [2024-02-07 22:26:29] watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.532786494  [2024-02-07 22:26:29] watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:29.532788030  [2024-02-07 22:26:29] watchdog.driveway              INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.532789534  [2024-02-07 22:26:29] watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:29.532791149  [2024-02-07 22:26:29] watchdog.garage                INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.532792681  [2024-02-07 22:26:29] watchdog.garage                INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:29.532794305  [2024-02-07 22:26:29] watchdog.backdoor              INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.533281547  [2024-02-07 22:26:29] watchdog.backdoor              INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:29.533799181  [2024-02-07 22:26:29] watchdog.driveway2             INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.534051980  [2024-02-07 22:26:29] watchdog.driveway2             INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:29.578781421  [2024-02-07 22:26:29] watchdog.driveway2             INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.579166848  [2024-02-07 22:26:29] watchdog.driveway2             INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:29.617782125  [2024-02-07 22:26:29] watchdog.backdoor              INFO    : Terminating the existing ffmpeg process...
frigate  | 2024-02-07 22:26:29.618218772  [2024-02-07 22:26:29] watchdog.backdoor              INFO    : Waiting for ffmpeg to exit gracefully...
frigate  | 2024-02-07 22:26:30.445815143  [2024-02-07 22:26:30] frigate.video                  INFO    : frontyard: exiting subprocess
frigate  | 2024-02-07 22:26:30.897868970  [2024-02-07 22:26:30] frigate.output                 INFO    : exiting output process...
frigate  | 2024-02-07 22:26:33.862444820  /usr/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 54 leaked shared_memory objects to clean up at shutdown
frigate  | 2024-02-07 22:26:33.862448412    warnings.warn('resource_tracker: There appear to be %d '
frigate  | 2024-02-07 22:26:33.865748391  [INFO] Service Frigate exited with code 0 (by signal 0)
frigate  | s6-rc: info: service frigate successfully stopped
frigate  | s6-rc: info: service go2rtc: stopping
frigate  | s6-rc: info: service frigate-log: stopping
frigate  | 2024-02-07 22:26:33.867981965  exit with signal: terminated
frigate  | s6-rc: info: service frigate-log successfully stopped
frigate  | 2024-02-07 22:26:33.873597931  [INFO] The go2rtc service exited with code 0 (by signal 0)
frigate  | s6-rc: info: service go2rtc successfully stopped
frigate  | s6-rc: info: service go2rtc-log: stopping
frigate  | s6-rc: info: service go2rtc-log successfully stopped
frigate  | s6-rc: info: service log-prepare: stopping
frigate  | s6-rc: info: service s6rc-fdholder: stopping
frigate  | s6-rc: info: service log-prepare successfully stopped
frigate  | s6-rc: info: service legacy-cont-init: stopping
frigate  | s6-rc: info: service s6rc-fdholder successfully stopped
frigate  | s6-rc: info: service legacy-cont-init successfully stopped
frigate  | s6-rc: info: service fix-attrs: stopping
frigate  | s6-rc: info: service fix-attrs successfully stopped
frigate  | s6-rc: info: service s6rc-oneshot-runner: stopping
frigate  | s6-rc: info: service s6rc-oneshot-runner successfully stopped
frigate exited with code 0
NickM-27 commented 8 months ago

Weird, looks like it is just erroring out trying to connect to the corals. Have you tried a full system reboot?

Omertron commented 8 months ago

Also have the issues since updating to 0.13.1-34FB1C2 from 0.12. M2 Coral isn't detected at system level though (running the example scripts gives the same error), so might be a coral issue rather than Frigate?

>   --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite  \
>   --labels test_data/inat_bird_labels.txt \
>   --input test_data/parrot.jpg
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
    delegate = Delegate(library, options)
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
    raise ValueError(capture.message)
ValueError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "examples/classify_image.py", line 121, in <module>
    main()
  File "examples/classify_image.py", line 71, in main
    interpreter = make_interpreter(*args.model.split('@'))
  File "/usr/lib/python3/dist-packages/pycoral/utils/edgetpu.py", line 87, in make_interpreter
    delegates = [load_edgetpu_delegate({'device': device} if device else {})]
  File "/usr/lib/python3/dist-packages/pycoral/utils/edgetpu.py", line 52, in load_edgetpu_delegate
    return tflite.load_delegate(_EDGETPU_SHARED_LIB, options or {})
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 163, in load_delegate
    library, str(e)))
ValueError: Failed to load delegate from libedgetpu.so.1
nthulke commented 8 months ago

I have found some information since this happened and it appears to be an issue with the OS kernel updating to 6.5. There are a lot of people with the same issue, just by chance it happened when I updated to 0.13 google have not updated their drivers to handle it. There are some 3rd party drivers someone has created but I couldn't get them to work, I think in my tinkering to fix it I broke it further. I might need to rebuild my OS and lock it in to kernel 6.0. Once I'm off my phone I'll provide some links for more information.

nthulke commented 8 months ago

This is the fix apparently - https://github.com/google/gasket-driver/ Found it here: https://github.com/google-coral/edgetpu/issues/808 There are many other pages relating to it too.

Omertron commented 8 months ago

I followed the instructions here https://coral.ai/docs/m2/get-started/#troubleshooting-on-linux which was to disable apex and gasket, reinstall/update and then reinstate apex/gasket\ That initially worked for me. I will try your link next, @nthulke

Edit: After a couple of reboots and some heavy googling on how to build debian stuff, seems to be working now. Thanks 👍

Karmak23 commented 7 months ago

Linking https://github.com/blakeblackshear/frigate/issues/9810 I thinks it's the same issue. I will test workaround and report here and there.

Karmak23 commented 7 months ago

I can confirm that building gasket driver DKMS from source gets the issue resolved on my system.

I still cannot understand why this worked flawlessly until 2 days ago. I'm on Debian stable (kernel 5.10), I didn't update anything recently except security updates, and the stacktrace appeared suddently.

ANyway, it's working again. Thanks for the pointers.