[Support]: #11822
-
Describe the problem you are havingI haven't changed my Frigate setup for about two months, and everything was running smoothly until now. Suddenly, it has started crashing and won't work anymore. It will boot up and then crash. I checked all my video camera streams with VLC to see if maybe that was the problem, but they work fine in VLC. I haven't seen any updates from Frigate (version 0.13.2). I'm really wondering what could be causing this malfunction, as nothing has changed on my end for a long time. Could it be an update from Home Assistant that has caused this issue? Thank you for your assistance. Version0.13.2 Frigate config filemqtt:
host: 192.168.50.202
port: 1883
user: <my usernamer>
password: <my password>
topic_prefix: frigate
client_id: frigate
stats_interval: 60
detectors:
coral:
type: edgetpu
device: usb
environment_vars:
LIBVA_DRIVER_NAME: i965
ffmpeg:
hwaccel_args: preset-vaapi
output_args:
record: preset-record-generic-audio-copy
objects:
track:
- person
filters:
person:
min_area: 5000
max_area: 100000
min_score: 0.6
threshold: 0.7
birdseye:
enabled: true
mode: motion
restream: false
quality: 8
inactivity_threshold: 30
timestamp_style:
position: tl
format: '%d/%m/%Y %H:%M:%S'
color:
red: 255
green: 255
blue: 255
thickness: 2
go2rtc:
streams:
woonkamer:
- ffmpeg: rtsp:https://<stream 1>
keuken:
- ffmpeg: rtsp:https://<stream 2>
Living:
- ffmpeg: rtsp:https://<stream 3>
#
# START CAMERA
#
cameras:
#
# CAMERA LIVING AREA
#
Living:
ffmpeg:
inputs:
- path: rtsp:https://<my stream>
roles:
- detect
- record
detect:
width: 2304
height: 1296
fps: 5
stationary:
interval: 50
threshold: 50
record:
enabled: true
retain:
days: 2
events:
pre_capture: 15
post_capture: 15
retain:
default: 10
mqtt:
timestamp: true
bounding_box: false
crop: false
quality: 100
required_zones:
- Livingroom_area
- sofa
- sofa_2
- desk
- Livingroom_door
snapshots:
enabled: true
clean_copy: true
timestamp: true
bounding_box: true
crop: false
retain:
default: 15
objects:
person: 20
motion:
mask:
- 427,0,870,1296,0,1296,0,0
objects:
filters:
person:
mask:
- 427,0,870,1296,0,1296,0,0
zones:
Livingroom_area:
coordinates: 869,1296,2304,1296,2304,0,434,0
sofa:
coordinates: 2268,542,1973,1035,1374,578,1587,236
desk:
coordinates: 800,322,589,373,530,89,732,46
Livingroom_door:
coordinates: 1502,0,1479,493,1254,363,1254,0
sofa_2:
coordinates: 1267,1296,2091,1296,2304,1004,1961,830
#
# CAMERA LOUNGE
#
woonkamer:
ffmpeg:
inputs:
- path: rtsp:https://<my stream>
roles:
- detect
- record
output_args:
record: preset-record-generic-audio-aac
detect:
width: 1920
height: 1080
fps: 5
stationary:
interval: 50
threshold: 50
record:
enabled: true
retain:
days: 2
events:
pre_capture: 15
post_capture: 15
retain:
default: 10
required_zones:
- woonkamer_area
- deur_area
mqtt:
required_zones:
- woonkamer_area
- deur_area
snapshots:
enabled: true
clean_copy: true
timestamp: true
bounding_box: true
crop: false
required_zones:
- woonkamer_area
- deur_area
retain:
default: 15
objects:
person: 20
objects:
filters:
person:
mask:
- 1880,377,1890,475,1920,876,1920,1080,1920,0,1920,119,253,455,288,808
- 1920,876,1920,1080,0,1080,0,881
- 1920,0,1920,119,0,126,0,0
motion:
mask:
- 1920,876,1920,1080,0,1080,0,881
- 1920,0,1920,119,0,126,0,0
zones:
woonkamer_area:
coordinates: 0,901,1920,893,1920,73,0,70
objects:
- person
filters:
person:
min_score: 0.7
threshold: 0.75
deur_area:
coordinates: 839,239,815,793,1211,799,1229,261
objects:
- person
filters:
person:
min_score: 0.7
threshold: 0.75
keuken:
ffmpeg:
inputs:
- path: rtsp:https://<my stream>
roles:
- detect
- record
output_args:
record: preset-record-generic-audio-aac
detect:
width: 1920
height: 1080
fps: 5
record:
enabled: true
retain:
days: 2
events:
pre_capture: 15
post_capture: 15
retain:
default: 10
required_zones:
- keuken_area
- yard_area
mqtt:
required_zones:
- keuken_area
- yard_area
snapshots:
enabled: true
clean_copy: true
timestamp: true
bounding_box: true
crop: false
required_zones:
- keuken_area
- yard_area
objects:
filters:
person:
mask:
- 447,371,455,768,489,846,555,930,630,1080,0,1080,0,768,0,403,0,0,481,0
- 1920,1080,1920,873,1795,849,1381,1080
- 1272,190,1734,101,1920,0,421,0
motion:
mask:
- 447,371,455,768,489,846,555,930,630,1080,0,1080,0,768,0,403,0,0,481,0
- 1920,1080,1920,873,1795,849,1381,1080
- 1272,190,1734,101,1920,0,421,0
zones:
bedroom_door:
coordinates: 1920,259,1920,856,1741,816,1757,265
object:
- person
filters:
person:
min_score: 0.7
threshold: 0.8
keuken_area:
coordinates:
1920,868,1807,841,1745,869,1580,970,1363,1080,930,1080,638,1080,609,1012,541,894,480,759,453,661,460,406,486,23,1283,198,1920,106
objects:
- person
filters:
person:
min_score: 0.7
threshold: 0.8
yard_area:
coordinates: 802,133,785,529,787,958,605,989,485,807,488,102
objects:
- person
filters:
person:
min_score: 0.7
threshold: 0.8
#
#
# THE END
#
# Relevant log outputDeze fout is ontstaan door een aangepaste integratie.
Logger: custom_components.frigate.api
Bron: custom_components/frigate/api.py:259
integratie: Frigate (documentatie, problemen)
Eerst voorgekomen: 17:37:58 (6 gebeurtenissen)
Laatst gelogd: 17:39:22
Error fetching information from http:https://ccab4aaf-frigate-fa:5000/api/stats: Cannot connect to host ccab4aaf-frigate-fa:5000 ssl:default [Connect call failed ('172.30.33.6', 5000)]
Deze fout is ontstaan door een aangepaste integratie.
Logger: custom_components.frigate.api
Bron: custom_components/frigate/api.py:244
integratie: Frigate (documentatie, problemen)
Eerst voorgekomen: 17:38:51 (2 gebeurtenissen)
Laatst gelogd: 17:39:06
Timeout error fetching information from http:https://ccab4aaf-frigate-fa:5000/api/stats:
Deze fout is ontstaan door een aangepaste integratie.
Logger: custom_components.frigate
Bron: helpers/update_coordinator.py:344
integratie: Frigate (documentatie, problemen)
Eerst voorgekomen: 17:38:31 (1 gebeurtenissen)
Laatst gelogd: 17:38:31
Error fetching frigate data:
File "/usr/local/go2rtc/create_config.py", line 147, in <module>
go2rtc_config["streams"][name][i] = stream.format(**FRIGATE_ENV_VARS)
AttributeError: 'dict' object has no attribute 'format'
2024-06-08 15:38:26.380864145 [INFO] The go2rtc service exited with code 1 (by signal 0)
2024-06-08 15:38:27.397553458 [INFO] Preparing new go2rtc config...
2024-06-08 15:38:27.451135568 [INFO] Got IP address from supervisor: 192.168.50.202
2024-06-08 15:38:27.497612987 [INFO] Got WebRTC port from supervisor: 8555
Traceback (most recent call last):
File "/usr/local/go2rtc/create_config.py", line 147, in <module>
go2rtc_config["streams"][name][i] = stream.format(**FRIGATE_ENV_VARS)
AttributeError: 'dict' object has no attribute 'format'
2024-06-08 15:38:27.938754230 [INFO] The go2rtc service exited with code 1 (by signal 0)
2024-06-08 15:38:28.955437568 [INFO] Preparing new go2rtc config...
2024-06-08 15:38:29.006005307 [INFO] Got IP address from supervisor: 192.168.50.202
2024-06-08 15:38:29.052685148 [INFO] Got WebRTC port from supervisor: 8555
Traceback (most recent call last):
File "/usr/local/go2rtc/create_config.py", line 147, in <module>
go2rtc_config["streams"][name][i] = stream.format(**FRIGATE_ENV_VARS)
AttributeError: 'dict' object has no attribute 'format'
2024-06-08 15:38:29.507772042 [INFO] The go2rtc service exited with code 1 (by signal 0)
2024-06-08 15:38:30.122731709 [2024-06-08 17:38:30] 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-06-08 15:38:30.140386707 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2024-06-08 15:38:30.156805853 [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-06-08 15:38:30.160001897 [2024-06-08 17:38:30] frigate.app INFO : Stopping...
s6-rc: info: service nginx-log successfully stopped
2024-06-08 15:38:30.160832011 [2024-06-08 17:38:30] frigate.stats INFO : Exiting stats emitter...
2024-06-08 15:38:30.161758186 [2024-06-08 17:38:30] frigate.ptz.autotrack INFO : Exiting autotracker...
2024-06-08 15:38:30.166908488 [2024-06-08 17:38:30] frigate.watchdog INFO : Exiting watchdog...
2024-06-08 15:38:30.166915621 [2024-06-08 17:38:30] frigate.storage INFO : Exiting storage maintainer...
2024-06-08 15:38:30.166917626 [2024-06-08 17:38:30] frigate.record.cleanup INFO : Exiting recording cleanup...
2024-06-08 15:38:30.169428780 [2024-06-08 17:38:30] frigate.events.cleanup INFO : Exiting event cleanup...
2024-06-08 15:38:30.522920303 [INFO] Preparing new go2rtc config...
2024-06-08 15:38:30.557547185 [2024-06-08 17:38:30] frigate.comms.ws INFO : Exiting websocket client...
2024-06-08 15:38:30.569456140 [INFO] Got IP address from supervisor: 192.168.50.202
2024-06-08 15:38:30.620803879 [INFO] Got WebRTC port from supervisor: 8555
2024-06-08 15:38:30.854879692 [2024-06-08 17:38:30] frigate.object_processing INFO : Exiting object processor...
Traceback (most recent call last):
File "/usr/local/go2rtc/create_config.py", line 147, in <module>
go2rtc_config["streams"][name][i] = stream.format(**FRIGATE_ENV_VARS)
AttributeError: 'dict' object has no attribute 'format'
2024-06-08 15:38:31.096993028 [INFO] The go2rtc service exited with code 1 (by signal 0)
2024-06-08 15:38:31.148940551 [2024-06-08 17:38:31] frigate.events.maintainer INFO : Exiting event processor...
2024-06-08 15:38:31.149664923 [2024-06-08 17:38:31] peewee.sqliteq INFO : writer received shutdown request, exiting.
2024-06-08 15:38:31.155117209 [2024-06-08 17:38:31] watchdog.keuken INFO : Terminating the existing ffmpeg process...
2024-06-08 15:38:31.155916287 [2024-06-08 17:38:31] watchdog.keuken INFO : Waiting for ffmpeg to exit gracefully...
2024-06-08 15:38:31.156197019 [2024-06-08 17:38:31] watchdog.Living INFO : Terminating the existing ffmpeg process...
2024-06-08 15:38:31.156200755 [2024-06-08 17:38:31] watchdog.Living INFO : Waiting for ffmpeg to exit gracefully...
2024-06-08 15:38:31.156761634 [2024-06-08 17:38:31] watchdog.woonkamer INFO : Terminating the existing ffmpeg process...
2024-06-08 15:38:31.157020277 [2024-06-08 17:38:31] watchdog.woonkamer INFO : Waiting for ffmpeg to exit gracefully...
2024-06-08 15:38:32.113017083 [INFO] Preparing new go2rtc config...
2024-06-08 15:38:32.159245163 [INFO] Got IP address from supervisor: 192.168.50.202
2024-06-08 15:38:32.205203816 [INFO] Got WebRTC port from supervisor: 8555
Traceback (most recent call last):
File "/usr/local/go2rtc/create_config.py", line 147, in <module>
go2rtc_config["streams"][name][i] = stream.format(**FRIGATE_ENV_VARS)
AttributeError: 'dict' object has no attribute 'format'
2024-06-08 15:38:32.613543862 [INFO] The go2rtc service exited with code 1 (by signal 0)
2024-06-08 15:38:33.630391912 [INFO] Preparing new go2rtc config...
2024-06-08 15:38:33.676509108 [INFO] Got IP address from supervisor: 192.168.50.202
2024-06-08 15:38:33.722114887 [INFO] Got WebRTC port from supervisor: 8555
Traceback (most recent call last):
File "/usr/local/go2rtc/create_config.py", line 147, in <module>
go2rtc_config["streams"][name][i] = stream.format(**FRIGATE_ENV_VARS)
AttributeError: 'dict' object has no attribute 'format'
2024-06-08 15:38:34.124094049 [INFO] The go2rtc service exited with code 1 (by signal 0)
2024-06-08 15:38:35.140277738 [INFO] Preparing new go2rtc config...
2024-06-08 15:38:35.188258534 [INFO] Got IP address from supervisor: 192.168.50.202
2024-06-08 15:38:35.237656926 [INFO] Got WebRTC port from supervisor: 8555
Traceback (most recent call last):
File "/usr/local/go2rtc/create_config.py", line 147, in <module>
go2rtc_config["streams"][name][i] = stream.format(**FRIGATE_ENV_VARS)
AttributeError: 'dict' object has no attribute 'format'
2024-06-08 15:38:35.681132289 /usr/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 12 leaked shared_memory objects to clean up at shutdown
2024-06-08 15:38:35.681139586 warnings.warn('resource_tracker: There appear to be %d '
2024-06-08 15:38:35.684839787 [INFO] Service Frigate exited with code 0 (by signal 0)
s6-rc: info: service frigate successfully stopped
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
s6-rc: info: service frigate-log successfully stopped
2024-06-08 15:38:35.696177669 [INFO] The go2rtc service exited with code 256 (by signal 15)
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 cameraWen trying to retrieve it already crashes. Frigate statsNo response Operating systemHassOS Install methodHassOS Addon Coral versionUSB Network connectionWired Camera make and modelFoscam C2 (x2), Reolink RLC-822A Any other information that may be helpfulThank you for reading this and helping me find a solution to my problem. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Are you using the go2rtc addon or Frigate's internal go2rtc? You redacted the lines from your config, so I can't tell. |
Beta Was this translation helpful? Give feedback.
-
Could anyone kindly assist me in getting it up and running again? |
Beta Was this translation helpful? Give feedback.
Thank you for your reply
changed this in the config:
This stopped frigate from crashing on startup and solved my problem by accident.
I was able to look in the logs and it said no TPU connected. i checked the connection
and that resolved the issue.