frigate
frigate copied to clipboard
[Support]: Frigate Crashes w/ Log Showing No EdgeTPU found but Debug Page Shows CoralTPU Found
Describe the problem you are having
Frigate is in a crash loop... reporting no EdgeTPU found. However, the Debug page shows the two Coral TPUs I've installed/configured.
Docker Compose deployment
Didn't include Debug Page info due to error submitting this request
Thank you
Version
0.11.1-2EADA21
Frigate config file
#
# MQTT BROKER
#
mqtt:
host: 10.2.0.44
user: <user>
password: <password>
#
# DETECTORS
#
detectors:
coral1:
type: edgetpu
device: usb:0
coral2:
type: edgetpu
device: usb:1
#
# Global Object Settings
#
objects:
track:
- person
# - car
# - bicycle
# - motorcycle
# - bird
# - cat
# - dog
filters:
person:
min_area: 5000
max_area: 100000
#
# FFMPEG DEFAULT INPUT ARGUMENTS
#
ffmpeg:
input_args: -rtsp_transport tcp
#
# ENABLE REAL TIME FEED
#
rtmp:
enabled: False
#
# CAMERAS
#
cameras:
#
# EXTERIOR CAMERAS
#
# Garage
garage:
ui:
order: 4
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.24/live
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
record:
enabled: True
retain:
days: 3
mode: motion
events:
pre_capture: 10
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
cat: 2
dog: 2
car: 2
objects:
- person
- cat
- dog
- car
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
car: 2
cat: 2
dog: 2
# Camera attached to tree next to front gate
frontgate_tree:
ui:
order: 1
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.0.23/live
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
record:
enabled: True
retain:
days: 3
mode: motion
events:
pre_capture: 10
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
cat: 2
dog: 2
car: 2
objects:
- person
- cat
- dog
- car
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
car: 2
cat: 2
dog: 2
# Side gate camera attched to Studio Roof Facia
sidegate:
ui:
order: 5
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.55/live
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
record:
enabled: True
retain:
days: 7
mode: motion
events:
pre_capture: 10
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
cat: 2
dog: 2
car: 2
objects:
- person
- cat
- dog
- car
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
car: 2
cat: 2
dog: 2
# Camera attached to tree by front gate looking towards house
driveway:
ui:
order: 2
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.0.24/live
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
record:
enabled: True
retain:
days: 7
mode: motion
events:
pre_capture: 10
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
cat: 2
dog: 2
car: 2
objects:
- person
- cat
- dog
- car
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
car: 2
cat: 2
dog: 2
# Camera looking from pool house
poolcam-1:
ui:
order: 11
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.50/live
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
record:
enabled: True
retain:
days: 7
mode: motion
events:
pre_capture: 10
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
cat: 2
dog: 2
objects:
- person
- cat
- dog
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
cat: 2
dog: 2
# Camera looking towards pool house
poolcam2:
ui:
order: 12
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.25/live
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
record:
enabled: True
retain:
days: 7
mode: motion
events:
pre_capture: 10
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
cat: 2
dog: 2
objects:
- person
- cat
- dog
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
cat: 2
dog: 2
# Cam attached to gazibo looking towards house
backyard:
ui:
order: 13
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.28/live
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
record:
enabled: True
retain:
days: 7
mode: motion
events:
pre_capture: 10
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
cat: 2
dog: 2
bird: 5
objects:
- person
- cat
- dog
- bird
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
cat: 2
dog: 2
bird: 5
# Camera attached to house looking down driveway
frontgate-2:
ui:
order: 3
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.5.10:554/Streaming/Channels/102
roles:
- detect
- record
detect:
width: 1280
height: 720
fps: 5
record:
enabled: True
retain:
days: 7
mode: motion
events:
pre_capture: 10
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
cat: 2
dog: 2
car: 2
objects:
- person
- cat
- dog
- car
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
cat: 2
dog: 2
car: 2
#
# INTERIOR CAMERAS
#
# By Gun Safe
garage2house:
ui:
order: 9
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.49/live
roles:
- detect
- record
detect:
width: 1280
height: 720
fps: 5
record:
enabled: False
retain:
days: 7
mode: motion
events:
pre_capture: 5
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
objects:
- person
snapshots:
enabled: False
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
# Garage interior bay 1
garage-bay1:
ui:
order: 10
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.39/live
roles:
- detect
- record
detect:
width: 1280
height: 720
fps: 5
record:
enabled: False
retain:
days: 7
mode: motion
events:
pre_capture: 5
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
objects:
- person
snapshots:
enabled: False
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
# Studio
studio:
ui:
order: 12
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.34/live
roles:
- detect
- record
detect:
width: 1280
height: 720
fps: 5
record:
enabled: True
retain:
days: 7
mode: motion
events:
pre_capture: 5
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
objects:
- person
snapshots:
enabled: True
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
# Living Room
livingroom:
ui:
order: 7
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.26/live
roles:
- detect
- record
detect:
width: 1280
height: 720
fps: 5
record:
enabled: False
retain:
days: 7
mode: motion
events:
pre_capture: 5
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
objects:
- person
snapshots:
enabled: False
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
# Front door entry
foyer:
ui:
order: 8
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.27/live
roles:
- detect
- record
detect:
width: 1280
height: 720
fps: 5
record:
enabled: False
retain:
days: 7
mode: motion
events:
pre_capture: 5
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
objects:
- person
snapshots:
enabled: False
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
# Kitchen
kitchen:
ui:
order: 6
ffmpeg:
input_args: -rtsp_transport tcp
inputs:
- path: rtsp://<user>:<password>@10.2.4.41/live
roles:
- detect
- record
detect:
width: 1280
height: 720
fps: 5
record:
enabled: False
retain:
days: 7
mode: motion
events:
pre_capture: 5
post_capture: 5
retain:
default: 3
mode: active_objects
objects:
person: 5
objects:
- person
snapshots:
enabled: False
timestamp: True
bounding_box: True
retain:
default: 3
objects:
person: 5
Relevant log output
{"log":"[2022-12-05 09:50:05] frigate.app INFO : Starting Frigate (0.11.1-2eada21)\n","stream":"stderr","time":"2022-12-05T16:50:05.620662011Z"}
{"log":"Starting migrations\n","stream":"stderr","time":"2022-12-05T16:50:05.733325538Z"}
{"log":"[2022-12-05 09:50:05] peewee_migrate INFO : Starting migrations\n","stream":"stderr","time":"2022-12-05T16:50:05.733372146Z"}
{"log":"There is nothing to migrate\n","stream":"stderr","time":"2022-12-05T16:50:06.276848665Z"}
{"log":"[2022-12-05 09:50:06] peewee_migrate INFO : There is nothing to migrate\n","stream":"stderr","time":"2022-12-05T16:50:06.276892164Z"}
{"log":"[2022-12-05 09:50:06] detector.coral1 INFO : Starting detection process: 216\n","stream":"stderr","time":"2022-12-05T16:50:06.321506466Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Output process started: 220\n","stream":"stderr","time":"2022-12-05T16:50:06.326541028Z"}
{"log":"[2022-12-05 09:50:06] ws4py INFO : Using epoll\n","stream":"stderr","time":"2022-12-05T16:50:06.330432403Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for garage: 227\n","stream":"stderr","time":"2022-12-05T16:50:06.335275226Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for frontgate_tree: 231\n","stream":"stderr","time":"2022-12-05T16:50:06.336613361Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for sidegate: 234\n","stream":"stderr","time":"2022-12-05T16:50:06.341924066Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for driveway: 238\n","stream":"stderr","time":"2022-12-05T16:50:06.346447323Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for poolcam-1: 240\n","stream":"stderr","time":"2022-12-05T16:50:06.37067705Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for poolcam2: 241\n","stream":"stderr","time":"2022-12-05T16:50:06.37509975Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for backyard: 243\n","stream":"stderr","time":"2022-12-05T16:50:06.380341926Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for frontgate-2: 244\n","stream":"stderr","time":"2022-12-05T16:50:06.385118791Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for garage2house: 246\n","stream":"stderr","time":"2022-12-05T16:50:06.390070846Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for garage-bay1: 248\n","stream":"stderr","time":"2022-12-05T16:50:06.395029457Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for studio: 249\n","stream":"stderr","time":"2022-12-05T16:50:06.399459327Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for livingroom: 251\n","stream":"stderr","time":"2022-12-05T16:50:06.404959824Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for foyer: 252\n","stream":"stderr","time":"2022-12-05T16:50:06.409083857Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Camera processor started for kitchen: 254\n","stream":"stderr","time":"2022-12-05T16:50:06.413956477Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for garage: 255\n","stream":"stderr","time":"2022-12-05T16:50:06.418022589Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for frontgate_tree: 256\n","stream":"stderr","time":"2022-12-05T16:50:06.422967721Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for sidegate: 260\n","stream":"stderr","time":"2022-12-05T16:50:06.427650626Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for driveway: 264\n","stream":"stderr","time":"2022-12-05T16:50:06.434657157Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for poolcam-1: 269\n","stream":"stderr","time":"2022-12-05T16:50:06.435515515Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for poolcam2: 271\n","stream":"stderr","time":"2022-12-05T16:50:06.439825279Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for backyard: 276\n","stream":"stderr","time":"2022-12-05T16:50:06.444347561Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for frontgate-2: 279\n","stream":"stderr","time":"2022-12-05T16:50:06.450269503Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for garage2house: 284\n","stream":"stderr","time":"2022-12-05T16:50:06.458029804Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for garage-bay1: 294\n","stream":"stderr","time":"2022-12-05T16:50:06.470307401Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for studio: 298\n","stream":"stderr","time":"2022-12-05T16:50:06.476943063Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for livingroom: 303\n","stream":"stderr","time":"2022-12-05T16:50:06.482128441Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for foyer: 307\n","stream":"stderr","time":"2022-12-05T16:50:06.486715441Z"}
{"log":"[2022-12-05 09:50:06] frigate.app INFO : Capture process started for kitchen: 311\n","stream":"stderr","time":"2022-12-05T16:50:06.492496408Z"}
{"log":"[2022-12-05 09:50:06] ws4py INFO : Using epoll\n","stream":"stderr","time":"2022-12-05T16:50:06.740551561Z"}
{"log":"[2022-12-05 09:50:06] frigate.edgetpu INFO : Attempting to load TPU as usb:0\n","stream":"stderr","time":"2022-12-05T16:50:08.503121226Z"}
{"log":"[2022-12-05 09:50:08] frigate.edgetpu ERROR : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.\n","stream":"stderr","time":"2022-12-05T16:50:08.503641049Z"}
{"log":"Process detector:coral1:\n","stream":"stderr","time":"2022-12-05T16:50:08.504073559Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2022-12-05T16:50:08.505068469Z"}
{"log":" File \"/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py\", line 160, in load_delegate\n","stream":"stderr","time":"2022-12-05T16:50:08.505088135Z"}
{"log":" delegate = Delegate(library, options)\n","stream":"stderr","time":"2022-12-05T16:50:08.50509473Z"}
{"log":" File \"/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py\", line 119, in __init__\n","stream":"stderr","time":"2022-12-05T16:50:08.505099866Z"}
{"log":" raise ValueError(capture.message)\n","stream":"stderr","time":"2022-12-05T16:50:08.505105073Z"}
{"log":"ValueError\n","stream":"stderr","time":"2022-12-05T16:50:08.505126854Z"}
{"log":"\n","stream":"stderr","time":"2022-12-05T16:50:08.505132161Z"}
{"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2022-12-05T16:50:08.505136602Z"}
{"log":"\n","stream":"stderr","time":"2022-12-05T16:50:08.505141201Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2022-12-05T16:50:08.505145501Z"}
{"log":" File \"/usr/lib/python3.9/multiprocessing/process.py\", line 315, in _bootstrap\n","stream":"stderr","time":"2022-12-05T16:50:08.505164743Z"}
{"log":" self.run()\n","stream":"stderr","time":"2022-12-05T16:50:08.505170921Z"}
{"log":" File \"/usr/lib/python3.9/multiprocessing/process.py\", line 108, in run\n","stream":"stderr","time":"2022-12-05T16:50:08.505175512Z"}
{"log":" self._target(*self._args, **self._kwargs)\n","stream":"stderr","time":"2022-12-05T16:50:08.505180189Z"}
{"log":" File \"/opt/frigate/frigate/edgetpu.py\", line 135, in run_detector\n","stream":"stderr","time":"2022-12-05T16:50:08.505184539Z"}
{"log":" object_detector = LocalObjectDetector(\n","stream":"stderr","time":"2022-12-05T16:50:08.505189128Z"}
{"log":" File \"/opt/frigate/frigate/edgetpu.py\", line 43, in __init__\n","stream":"stderr","time":"2022-12-05T16:50:08.505193431Z"}
{"log":" edge_tpu_delegate = load_delegate(\"libedgetpu.so.1.0\", device_config)\n","stream":"stderr","time":"2022-12-05T16:50:08.505197921Z"}
{"log":" File \"/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py\", line 162, in load_delegate\n","stream":"stderr","time":"2022-12-05T16:50:08.50520255Z"}
{"log":" raise ValueError('Failed to load delegate from {}\\n{}'.format(\n","stream":"stderr","time":"2022-12-05T16:50:08.505207189Z"}
{"log":"ValueError: Failed to load delegate from libedgetpu.so.1.0\n","stream":"stderr","time":"2022-12-05T16:50:08.505211713Z"}
{"log":"\n","stream":"stderr","time":"2022-12-05T16:50:08.505216221Z"}
{"log":"[2022-12-05 09:50:06] detector.coral2 INFO : Starting detection process: 218\n","stream":"stderr","time":"2022-12-05T16:50:08.650692653Z"}
{"log":"Process detector:coral2:\n","stream":"stderr","time":"2022-12-05T16:50:08.650952432Z"}
{"log":"[2022-12-05 09:50:06] frigate.edgetpu INFO : Attempting to load TPU as usb:1\n","stream":"stderr","time":"2022-12-05T16:50:08.651089529Z"}
{"log":"[2022-12-05 09:50:08] frigate.edgetpu ERROR : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.\n","stream":"stderr","time":"2022-12-05T16:50:08.651236021Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2022-12-05T16:50:08.65221479Z"}
{"log":" File \"/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py\", line 160, in load_delegate\n","stream":"stderr","time":"2022-12-05T16:50:08.652251863Z"}
{"log":" delegate = Delegate(library, options)\n","stream":"stderr","time":"2022-12-05T16:50:08.652258919Z"}
{"log":" File \"/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py\", line 119, in __init__\n","stream":"stderr","time":"2022-12-05T16:50:08.652264005Z"}
{"log":" raise ValueError(capture.message)\n","stream":"stderr","time":"2022-12-05T16:50:08.6522688Z"}
{"log":"ValueError\n","stream":"stderr","time":"2022-12-05T16:50:08.65227332Z"}
{"log":"\n","stream":"stderr","time":"2022-12-05T16:50:08.652277718Z"}
{"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2022-12-05T16:50:08.652281927Z"}
{"log":"\n","stream":"stderr","time":"2022-12-05T16:50:08.652286335Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2022-12-05T16:50:08.652290606Z"}
{"log":" File \"/usr/lib/python3.9/multiprocessing/process.py\", line 315, in _bootstrap\n","stream":"stderr","time":"2022-12-05T16:50:08.652309388Z"}
{"log":" self.run()\n","stream":"stderr","time":"2022-12-05T16:50:08.652325414Z"}
{"log":" File \"/usr/lib/python3.9/multiprocessing/process.py\", line 108, in run\n","stream":"stderr","time":"2022-12-05T16:50:08.652331141Z"}
{"log":" self._target(*self._args, **self._kwargs)\n","stream":"stderr","time":"2022-12-05T16:50:08.65233604Z"}
{"log":" File \"/opt/frigate/frigate/edgetpu.py\", line 135, in run_detector\n","stream":"stderr","time":"2022-12-05T16:50:08.652340623Z"}
{"log":" object_detector = LocalObjectDetector(\n","stream":"stderr","time":"2022-12-05T16:50:08.652345191Z"}
{"log":" File \"/opt/frigate/frigate/edgetpu.py\", line 43, in __init__\n","stream":"stderr","time":"2022-12-05T16:50:08.652355045Z"}
{"log":" edge_tpu_delegate = load_delegate(\"libedgetpu.so.1.0\", device_config)\n","stream":"stderr","time":"2022-12-05T16:50:08.652359792Z"}
{"log":" File \"/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py\", line 162, in load_delegate\n","stream":"stderr","time":"2022-12-05T16:50:08.65236478Z"}
{"log":" raise ValueError('Failed to load delegate from {}\\n{}'.format(\n","stream":"stderr","time":"2022-12-05T16:50:08.652369603Z"}
{"log":"ValueError: Failed to load delegate from libedgetpu.so.1.0\n","stream":"stderr","time":"2022-12-05T16:50:08.652374161Z"}
{"log":"\n","stream":"stderr","time":"2022-12-05T16:50:08.65237859Z"}
{"log":"[2022-12-05 09:50:26] frigate.watchdog INFO : Detection appears to have stopped. Exiting frigate...\n","stream":"stderr","time":"2022-12-05T16:50:26.751531081Z"}
{"log":"[2022-12-05 09:50:26] frigate.watchdog INFO : Detection appears to have stopped. Exiting frigate...\n","stream":"stderr","time":"2022-12-05T16:50:26.75231191Z"}
{"log":"[cont-finish.d] executing container finish scripts...\n","stream":"stdout","time":"2022-12-05T16:50:26.802476175Z"}
{"log":"[cont-finish.d] done.\n","stream":"stdout","time":"2022-12-05T16:50:26.803230971Z"}
{"log":"[s6-finish] waiting for services.\n","stream":"stdout","time":"2022-12-05T16:50:26.80368675Z"}
{"log":"[s6-finish] sending all processes the TERM signal.\n","stream":"stdout","time":"2022-12-05T16:50:27.007625733Z"}
{"log":"[s6-finish] sending all processes the KILL signal and exiting.\n","stream":"stdout","time":"2022-12-05T16:50:30.050035138Z"}
{"log":"[s6-init] making user provided files available at /var/run/s6/etc...exited 0.\n","stream":"stdout","time":"2022-12-05T16:50:30.860864471Z"}
{"log":"[s6-init] ensuring user provided files have correct perms...exited 0.\n","stream":"stdout","time":"2022-12-05T16:50:30.885389404Z"}
{"log":"[fix-attrs.d] applying ownership \u0026 permissions fixes...\n","stream":"stdout","time":"2022-12-05T16:50:30.886626695Z"}
{"log":"[fix-attrs.d] done.\n","stream":"stdout","time":"2022-12-05T16:50:30.887168836Z"}
{"log":"[cont-init.d] executing container initialization scripts...\n","stream":"stdout","time":"2022-12-05T16:50:30.887790316Z"}
{"log":"[cont-init.d] done.\n","stream":"stdout","time":"2022-12-05T16:50:30.888360745Z"}
{"log":"[services.d] starting services\n","stream":"stdout","time":"2022-12-05T16:50:30.888966119Z"}
{"log":"[services.d] done.\n","stream":"stdout","time":"2022-12-05T16:50:30.893642784Z"}
FFprobe output from your camera
root@7dd4f2851e67:/opt/frigate# ffprobe rtsp://camuser:[email protected]/live
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
### Frigate stats
```json
{"backyard":{"camera_fps":0.0,"capture_pid":275,"detection_fps":0.0,"pid":242,"process_fps":0.0,"skipped_fps":0.0},"detection_fps":0.0,"detectors":{"coral1":{"detection_start":0.0,"inference_speed":10.0,"pid":216},"coral2":{"detection_start":0.0,"inference_speed":10.0,"pid":218}},"driveway":{"camera_fps":0.0,"capture_pid":262,"detection_fps":0.0,"pid":238,"process_fps":0.0,"skipped_fps":0.0},"foyer":{"camera_fps":0.0,"capture_pid":299,"detection_fps":0.0,"pid":251,"process_fps":0.0,"skipped_fps":0.0},"frontgate-2":{"camera_fps":0.0,"capture_pid":281,"detection_fps":0.0,"pid":243,"process_fps":0.0,"skipped_fps":0.0},"frontgate_tree":{"camera_fps":0.0,"capture_pid":256,"detection_fps":0.0,"pid":231,"process_fps":0.0,"skipped_fps":0.0},"garage":{"camera_fps":0.0,"capture_pid":254,"detection_fps":0.0,"pid":224,"process_fps":0.0,"skipped_fps":0.0},"garage-bay1":{"camera_fps":0.0,"capture_pid":288,"detection_fps":0.0,"pid":246,"process_fps":0.0,"skipped_fps":0.0},"garage2house":{"camera_fps":0.0,"capture_pid":285,"detection_fps":0.0,"pid":245,"process_fps":0.0,"skipped_fps":0.0},"kitchen":{"camera_fps":0.0,"capture_pid":303,"detection_fps":0.0,"pid":252,"process_fps":0.0,"skipped_fps":0.0},"livingroom":{"camera_fps":0.0,"capture_pid":294,"detection_fps":0.0,"pid":249,"process_fps":0.0,"skipped_fps":0.0},"poolcam-1":{"camera_fps":0.0,"capture_pid":265,"detection_fps":0.0,"pid":239,"process_fps":0.0,"skipped_fps":0.0},"poolcam2":{"camera_fps":0.0,"capture_pid":271,"detection_fps":0.0,"pid":240,"process_fps":0.0,"skipped_fps":0.0},"service":{"latest_version":"0.11.1","storage":{"/dev/shm":{"free":534.8,"mount_type":"tmpfs","total":536.9,"used":2.0},"/media/frigate/clips":{"free":2712237.4,"mount_type":"nfs4","total":2952356.2,"used":90072.4},"/media/frigate/recordings":{"free":2712237.4,"mount_type":"nfs4","total":2952356.2,"used":90072.4},"/tmp/cache":{"free":1000.0,"mount_type":"tmpfs","total":1000.0,"used":0.0}},"temperatures":{},"uptime":1,"version":"0.11.1-2eada21"},"sidegate":{"camera_fps":0.0,"capture_pid":258,"detection_fps":0.0,"pid":234,"process_fps":0.0,"skipped_fps":0.0},"studio":{"camera_fps":0.0,"capture_pid":290,"detection_fps":0.0,"pid":248,"process_fps":0.0,"skipped_fps":0.0}}
Operating system
Debian
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
Annke, WyzeCamV3
Any other information that may be helpful
LXC Container
~/DockerServices/frigate-nvr .................................................................................................................... 10:14:56 AM
> lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 14b0:0206 StarTech.com Ltd. SSD 870 EVO 2TB
Bus 004 Device 010: ID 18d1:9302 Google Inc.
Bus 004 Device 009: ID 18d1:9302 Google Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Host
root@pve2:~# lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 14b0:0206 StarTech.com Ltd. SSD 870 EVO 2TB
Bus 004 Device 010: ID 18d1:9302 Google Inc.
Bus 004 Device 009: ID 18d1:9302 Google Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@pve2:~# cat /etc/pve/lxc/105.conf
arch: amd64
cmode: shell
cores: 4
features: mount=nfs,nesting=1
hostname: frigate-nvr
memory: 4096
nameserver: 10.2.0.10 10.0.2.11 1.1.1.1
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=36:ED:C7:BD:1E:16,ip=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-lvm:vm-105-disk-0,size=40G
searchdomain: <mydomain>
swap: 512
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.apparmor.profile: unconfined
lxc.cgroup2.devices.allow: a
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file 0, 0
lxc.mount.entry: /dev/bus/usb/004 dev/bus/usb/004 none bind,optional,create=dir 0, 0
lxc.cap.drop:
lxc.mount.auto: cgroup:rw
The debug page pulls from the config, it does not indicate that the TPU is actually found.
Recommend reading https://github.com/blakeblackshear/frigate/issues/3890 and making the appropriate changes if you're not running the full access addon with protection mode disabled
Ok, odd... In the past, when I had a TPU configured but it wasn't getting passed to the LXC container correctly, the Debug page didn't show a TPU. So I reasoned that when found it was reported and visa versa. I'll check out the ref you posted.
Thank you
I read over the ref post. The conversation seems to center around running w/ Hassio. In my case this is a standalone LXC container. Also referenced was "Protected Mode". According to the LXC conf I posted, Protection Mode is not enabled. So the LXC container is not running in Protected Mode. I've verified this.
In the template above you marked your install method as HassOS addon, if this is not the case then that changes things. Please paste your docker compose.
Sorry, a mistake, I had selected Debian... don't know how/why it changed to Hassio. And I had also selected Docker Compose as the install method.
Of interest, I commented out the detectors because of the crash loop. You can see from this Proxmox Summary graph that the two TPU's where working
can you run lsusb inside the frigate container while this is running?
~/DockerServices/frigate-nvr .................................................................................................................... 10:40:13 AM
> docker exec -it frigate-nvr bash
root@88da7c985c10:/opt/frigate# lsusb
bash: lsusb: command not found
root@88da7c985c10:/opt/frigate#
~/DockerServices/frigate-nvr .................................................................................................................... 10:41:05 AM
> cat docker-compose.yml
version: "3.9"
services:
frigate:
container_name: frigate-nvr
# privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:stable
shm_size: "512mb" # update for your cameras based on calculation above
devices:
- /dev/bus/usb:/dev/bus/usb
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config.yml:/config/config.yml:ro
- ./storage:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "<password>"
PLUS_API_KEY: "<apikey>"
healthcheck:
test: ["CMD", "wget" , "-q", "-O-", "http://localhost:5000"]
interval: 30s
timeout: 10s
retries: 5
start_period: 3m
I just noticed my docker-compose.yml does not have the privileged security option set to true. It never has been enabled. But for the sake of being thorough, I set to true and uncommented the detectors section in my config.yml. No change, still crashes and logs no EdgeTPU found.
- Install lsusb via
apt-get install usbutils
then run and paste the output - maybe try setting /dev/bus/usb as a volume instead of devices just to see
No joy, still crashes, No EdgeTPU found
...
{"log":"[2022-12-05 10:55:48] frigate.edgetpu INFO : Attempting to load TPU as usb:0\n","stream":"stderr","time":"2022-12-05T17:55:51.074351047Z"}
{"log":"[2022-12-05 10:55:50] frigate.edgetpu ERROR : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.\n","stream":"stderr","time":"2022-12-05T17:55:51.074582319Z"}
...
/dev/bus/usb as device in docker-compose.yml
root@597608ce3fcb:/opt/frigate# lsusb
Bus 002 Device 002: ID 8087:0024
Bus 002 Device 001: ID 1d6b:0002 Linux 5.15.74-1-pve ehci_hcd EHCI Host Controller
Bus 001 Device 002: ID 8087:0024
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.74-1-pve ehci_hcd EHCI Host Controller
Bus 004 Device 004: ID 14b0:0206 Samsung SSD 870 EVO 2TB
Bus 004 Device 010: ID 18d1:9302
Bus 004 Device 009: ID 18d1:9302
Bus 004 Device 001: ID 1d6b:0003 Linux 5.15.74-1-pve xhci-hcd xHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.15.74-1-pve xhci-hcd xHCI Host Controller
18d1:9302 is the Google Corral TBU
Changing /dev/bus/usb to a volume bind mount vs a device shows same lsusb output
root@7cc033bee19f:/opt/frigate# lsusb
Bus 002 Device 002: ID 8087:0024
Bus 002 Device 001: ID 1d6b:0002 Linux 5.15.74-1-pve ehci_hcd EHCI Host Controller
Bus 001 Device 002: ID 8087:0024
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.74-1-pve ehci_hcd EHCI Host Controller
Bus 004 Device 004: ID 14b0:0206 Samsung SSD 870 EVO 2TB
Bus 004 Device 010: ID 18d1:9302
Bus 004 Device 009: ID 18d1:9302
Bus 004 Device 001: ID 1d6b:0003 Linux 5.15.74-1-pve xhci-hcd xHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.15.74-1-pve xhci-hcd xHCI Host Controller
Interesting that the name of the device is not showing up, I wonder if that is part of the issue.
Hard to say. I wondered that as well. I can say that it's never shown the name, only the vendor id.
And oddly, in the Proxmox Host Shell AND the LXC container it shows the name. I can try setting up in a VM, but preferred the LXC option for multiple benefits
root@pve2:~# lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 14b0:0206 StarTech.com Ltd. SSD 870 EVO 2TB
Bus 004 Device 010: ID 18d1:9302 Google Inc.
Bus 004 Device 009: ID 18d1:9302 Google Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
LXC Container
~/DockerServices/frigate-nvr .................................................................................................................... 11:07:14 AM
> lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 14b0:0206 StarTech.com Ltd. SSD 870 EVO 2TB
Bus 004 Device 010: ID 18d1:9302 Google Inc.
Bus 004 Device 009: ID 18d1:9302 Google Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Same problem with coral pci
This is likely going to require help from someone that is more familiar with proxmox.
I have my production device running pci corals along with test multiple devices running Debian or Ubuntu with frigate in docker directly and I've never had an issue with it not recognizing the coral when using an external power supply.
I've got the exact same problem as @tonydm. One note is that my docker host is Ubuntu 22, and not Debian like yours. I also tried using volume instead of devices in my compose, and no love. Coral shows up in lsusb
on the host:
zac in config-frigate at docker-cv
➜ lsusb
Bus 004 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 051d:0003 American Power Conversion UPS
Bus 002 Device 004: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Bus 002 Device 002: ID 18d1:9302 Google Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
but inside the docker container there is no name:
root@aad36ee05b21:/opt/frigate# lsusb
Bus 004 Device 002: ID 8087:8000
Bus 004 Device 001: ID 1d6b:0002 Linux 5.15.74-1-pve ehci_hcd EHCI Host Controller
Bus 001 Device 002: ID 8087:8008
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.74-1-pve ehci_hcd EHCI Host Controller
Bus 003 Device 001: ID 1d6b:0003 Linux 5.15.74-1-pve xhci-hcd xHCI Host Controller
Bus 002 Device 003: ID 051d:0003 American Power Conversion Smart-UPS_1500 FW:UPS 04.1 / ID=1018
Bus 002 Device 004: ID 0bda:5411 Generic 4-Port USB 2.0 Hub
Bus 002 Device 002: ID 18d1:9302
Bus 002 Device 001: ID 1d6b:0002 Linux 5.15.74-1-pve xhci-hcd xHCI Host Controller
It's weird that my APC UPS's USB shows up properly there (obviously it isn't used in Frigate but gets passed along just fine).
Going into the container and looking for the device also shows it is there (mine is 002), and I think it has the right permissions:
root@aad36ee05b21:/dev/bus/usb# ls -alh
total 0
drwxr-xr-x 3 root root 60 Dec 9 19:17 .
drwxr-xr-x 3 root root 60 Dec 9 19:17 ..
drwxr-xr-x 2 root root 120 Dec 9 19:17 002
One followup on this. I was able to get the TPU loaded in Docker on a Proxmox VM, so this seems to be an issue with putting Docker in a CT (LXC) specifically. I found reference to this as far back as August so I suspect this isn't new. I was hoping to get a CPU performance boost by using a CT, but VM will have to do!
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.
I have same setup (proxmox/lxc/frigate/google) and had similar issue. Meaning that it could see the usb google device in frigate docker without name, but frigate log revealed no TPU found. But running pycoral test tools inside frigate docker container did work, so TPU was indeed working inside container. I did quite a bit troubleshooting, but I believe it was an obsolete device file 001 in /dev/bus/usb/002 that for some unknown reason caused the issue. At least after deleting that file it started to work.
# Proxmox debian lxc
root@frigate:~# lsusb | grep "Bus 002"
Bus 002 Device 006: ID 18d1:9302 Google Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
# Frigate Docker (latest .12 Beta2)
root@ec43b67b6044:/opt/frigate# lsusb | grep "Bus 002"
Bus 002 Device 006: ID 18d1:9302
Bus 002 Device 001: ID 1d6b:0003 Linux 5.15.83-1-pve xhci-hcd xHCI Host Controller
## lxc
root@frigate:~# ls -la /dev/bus/usb/002/006
crw-rw---- 1 root plugdev 189, 133 Jan 10 01:27 /dev/bus/usb/002/006
# Working conf - lxc 117
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/002 dev/bus/usb/002 none bind,optional,create=dir 0,0
## Docker-compose mapping
devices:
- /dev/dri/renderD128
- /dev/bus/usb/002/006:/dev/bus/usb/002/006
##
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.
I am not running exactly this setup but something similar. I noticed my docker instance kept crashing and restarting because it was no longer detecting the Coral USB device. I tried moving the frigate install from its own LXC to a VM I already had running with some other docker containers but it didn't help. It still kept crashing and restarting.
When I first plugged it in, it never said "Google Inc" but some other name and descrtiption and had 1a6e:089a
for PID:VID.
I then was just googling around and browsing and decided to actually read the Google Coral USB page which described installing drivers for linux. So I did that on the proxmox host.
After doing that, the Coral did show up as 18d1:9302 Google Inc.
and just for belt-and-suspenders, I added both sets of PID/VID to Proxmox as passthrough devices for the VM.
Now it all seems to work and seems much more responsive. It's been up for a few days without issues. I think the only reason it was limping along prior to this was because I still had a CPU detector.