[Bug]: frigate:0.16.0-beta3-standard-arm64 occasionally hanging #18779
-
Checklist
Describe the problem you are havingAfter some period of time Frigate hangs and the web UI no longer loads. In web inspector it appears that profile, config, stats xhr are stuck pending. This occurs when accessing local or remote, authenticated or on :5000 (unauthenticated). In the container logs I do see auth requst unexpected status: 504 on /api/version. If I restart the container everything starts working again. Steps to reproduce
Versionfrigate:0.16.0-beta3-standard-arm64 In which browser(s) are you experiencing the issue with?No response Frigate config filemqtt:
enabled: true
host: 192.168.0.27
port: 1883
user: xxxxxxxx
password: xxxxxxx
topic_prefix: frigate
client_id: frigate
tls:
enabled: false
logger:
default: info
logs:
frigate.record.maintainer: debug
frigate.ffmpeg: info
ffmpeg:
global_args: -hide_banner -loglevel verbose
hwaccel_args: auto
input_args: preset-rtsp-restream -rtsp_transport tcp
#myinput: "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -reorder_queue_size 10 -rw_timeout 5000000 -i {input}"
retry_interval: 5
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime
1 -c:v libx264 -tune zerolatency -preset ultrafast -an
birdseye:
enabled: false
restream: true
width: 1280
height: 720
quality: 8
inactivity_threshold: 30
mode: objects
semantic_search:
enabled: true
reindex: false
model_size: small
genai:
enabled: false
provider: gemini
model: gemini-2.5-flash-preview-05-20
api_key: xxxxxxxx
prompt: xxxxxx
object_prompts:
person: xxxxx
car: xxxx
objects:
track:
- person
- car
- motorcycle
- cat
- dog
filters:
person:
min_score: 0.7
threshold: 0.8
car:
min_score: 0.7
threshold: 0.8
cat:
min_score: 0.7
threshold: 0.8
dog:
min_score: 0.7
threshold: 0.8
review:
alerts:
labels:
- person
detections:
labels:
- car
- motorcycle
- cat
- dog
detect:
enabled: true
detectors:
cpu1:
type: cpu
num_threads: 5
record:
sync_recordings: false
enabled: true
retain:
days: 5
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 10
snapshots:
enabled: true
clean_copy: true
bounding_box: true
timestamp: false
crop: false
retain:
default: 25
objects:
person: 15
car: 20
quality: 90
model:
path: plus://xxxxxxxxxxx
go2rtc:
streams:
street_round_room:
- rtsp://x:y@192.168.0.128:554/cam/realmonitor?channel=1&subtype=0
street_round_room_sub1:
- rtsp://x:y@192.168.0.128:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
street_round_room_sub2:
- rtsp://x:y@192.168.0.128:554/cam/realmonitor?channel=1&subtype=2&unicast=true&proto=Onvif
side_round_room:
- rtsp://x:y@192.168.0.135:554/cam/realmonitor?channel=1&subtype=0
side_round_room_sub1:
- rtsp://x:y@192.168.0.135:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
side_round_room_sub2:
- rtsp://x:y@192.168.0.135:554/cam/realmonitor?channel=1&subtype=2&unicast=true&proto=Onvif
garage_side:
- rtsp://192.168.0.23:18554/garage_side
garage_side_sub:
- rtsp://192.168.0.23:18554/garage_side_sub
- rtsp://192.168.0.23:18554/alley
alley_sub:
- rtsp://192.168.0.23:18554/alley_sub
backyard:
- rtsp://192.168.0.23:18554/backyard
backyard_sub:
- rtsp://192.168.0.23:18554/backyard_sub
driveway:
- rtsp://192.168.0.23:18554/driveway
driveway_sub:
- rtsp://192.168.0.23:18554/driveway_sub
front_door_doorbell:
- rtsp://192.168.0.23:18554/front_door_doorbell
front_door_doorbell_sub:
- rtsp://192.168.0.23:18554/front_door_doorbell_sub
indoor_garage:
- rtsp://192.168.0.23:18554/indoor_garage
indoor_garage_sub:
- rtsp://192.168.0.23:18554/indoor_garage_sub
front_side_yard:
- rtsp://192.168.0.23:18554/front_side_yard
front_side_yard_sub:
- rtsp://192.168.0.23:18554/front_side_yard_sub
log:
exec: trace
webrtc:
candidates:
- 192.168.0.108:8555
- stun:8555
cameras:
doorbell:
ffmpeg:
inputs:
- path: rtsp://192.168.0.23:18554/front_door_doorbell
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://192.168.0.23:18554/front_door_doorbell_sub
input_args: preset-rtsp-restream
roles:
- detect
output_args:
record: preset-record-generic-audio-copy
live:
streams:
doorbell: doorbell
record:
enabled: true
retain:
mode: all
audio:
enabled: false
listen:
- honk
- yell
- scream
- speech
- police_car
- emergency_vehicle
motion:
threshold: 55
contour_area: 40
improve_contrast: true
detect:
fps: 10
height: 640
width: 480
zones:
Front_Yard:
coordinates:
0.99,0.477,0.68,0.444,0.564,0.444,0.479,0.453,0.351,0.47,0.163,0.507,0,0.536,0.003,0.999,0.996,0.999
objects:
- person
- cat
- dog
review:
alerts:
required_zones: Front_Yard
labels:
- person
detections:
labels:
- cat
- dog
garage_side:
ffmpeg:
inputs:
- path: rtsp://192.168.0.23:18554/garage_side
input_args: preset-rtsp-restream
roles:
- record
# - detect
- path: rtsp://192.168.0.23:18554/garage_side_sub
input_args: preset-rtsp-restream
roles:
- detect
output_args:
record: preset-record-generic-audio-copy
record:
enabled: true
retain:
mode: all
live:
streams:
garage_side: garage_side
zones:
Side_Yard:
coordinates:
0.001,0.72,0.079,0.531,0.144,0.43,0.207,0.405,0.286,0.403,0.39,0.41,0.778,0.439,0.894,0.474,0.997,0.494,0.998,0.998,0.003,0.993
loitering_time: 0
inertia: 3
objects:
- person
- car
- dog
review:
alerts:
required_zones: Side_Yard
labels:
- person
detections:
labels:
- cat
- dog
- car
motion:
threshold: 57
contour_area: 44
improve_contrast: true
detect:
fps: 5
width: 640
height: 320
alley:
ffmpeg:
inputs:
- path: rtsp://192.168.0.23:18554/alley
input_args: preset-rtsp-restream
roles:
- record
# - detect
- path: rtsp://192.168.0.23:18554/alley_sub
input_args: preset-rtsp-restream
roles:
- detect
output_args:
record: preset-record-generic-audio-copy
live:
streams:
alley: alley
motion:
threshold: 55
contour_area: 25
improve_contrast: true
genai:
enabled: false
detect:
fps: 5
width: 640
height: 320
record:
enabled: true
retain:
days: 10
mode: active_objects
zones:
Back_yard:
coordinates:
0.797,1,0.812,0.705,0.807,0.522,0.821,0.424,0.859,0.198,0.793,0.186,0.738,0.191,0.64,0.409,0.521,0.652,0.371,0.924,0.295,1,0.294,0.995,0.818,1
loitering_time: 0
inertia: 3
objects:
- person
- dog
- cat
review:
alerts:
required_zones: Back_yard
labels:
- person
detections:
labels:
- dog
- cat
Backyard:
enabled: false
ffmpeg:
inputs:
- path: rtsp://192.168.0.23:18554/backyard
input_args: preset-rtsp-restream
roles:
- record
# - detect
- path: rtsp://192.168.0.23:18554/backyard_sub
input_args: preset-rtsp-restream
roles:
- detect
output_args:
record: preset-record-generic-audio-copy
live:
streams:
Backyard: Backyard
motion:
threshold: 45
contour_area: 40
improve_contrast: true
mask:
0.218,0.967,0.384,0.458,0.359,0.329,0.569,0.23,0.577,0.396,0.64,0.496,0.603,0.568,0.783,1,1,1,0.984,0,-0.004,0.018,0,1
detect:
fps: 5
width: 640
height: 320
objects:
track:
- person
- cat
- dog
zones:
Back_Yard:
coordinates:
0.22,0.995,0.389,0.437,0.376,0.326,0.567,0.258,0.585,0.39,0.638,0.499,0.619,0.544,0.767,0.995
loitering_time: 2
inertia: 1
objects:
- person
- dog
- cat
review:
alerts:
required_zones: Back_Yard
labels:
- person
detections:
required_zones: Back_Yard
labels:
- dog
- cat
Front_Side_Yard:
ffmpeg:
inputs:
- path: rtsp://192.168.0.23:18554/front_side_yard
input_args: preset-rtsp-restream
roles:
- record
# - detect
- path: rtsp://192.168.0.23:18554/front_side_yard_sub
input_args: preset-rtsp-restream
roles:
- detect
output_args:
record: preset-record-generic-audio-copy
live:
streams:
Front_Side_Yard: Front_Side_Yard
genai:
enabled: false
motion:
threshold: 40
contour_area: 25
improve_contrast: true
detect:
fps: 5
width: 960
height: 540
zones:
Side_Yard:
coordinates: 0.003,0.412,0.999,0.619,0.995,0.99,0.001,0.991
objects:
- person
- cat
- dog
22nd_Street:
coordinates: 0.002,0.406,0.078,0.273,0.505,0.261,0.838,0.298,1,0.326,0.997,0.607
objects: car
inertia: 3
loitering_time: 0
record:
enabled: true
retain:
mode: all
review:
alerts:
required_zones: Side_Yard
detections:
required_zones:
- 22nd_Street
Driveway:
enabled: false
ffmpeg:
inputs:
- path: rtsp://192.168.0.23:18554/driveway
input_args: preset-rtsp-restream
roles:
- record
# - detect
- path: rtsp://192.168.0.23:18554/driveway_sub
input_args: preset-rtsp-restream
roles:
- detect
output_args:
record: preset-record-generic-audio-copy
live:
streams:
Driveway: Driveway
motion:
threshold: 55
contour_area: 25
improve_contrast: 'true'
detect:
fps: 5
width: 640
height: 320
zones:
Driveway_Parking:
coordinates: 0.958,0.991,0.804,0.419,0.761,0.23,0.247,0.273,0.096,0.996
objects:
- person
- car
review:
alerts:
required_zones: Driveway_Parking
detections:
required_zones: Driveway_Parking
labels:
- car
indoor_garage:
enabled: true
ffmpeg:
inputs:
- path: rtsp://192.168.0.23:18554/indoor_garage
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://192.168.0.23:18554/indoor_garage_sub
input_args: preset-rtsp-restream
roles:
- detect
output_args:
record: preset-record-generic-audio-copy
motion:
threshold: 50
contour_area: 31
improve_contrast: true
objects:
track:
- person
filters:
person:
threshold: 0.80
detect:
fps: 5
width: 640
height: 320
street_round_room:
ffmpeg:
inputs:
- path: rtsp://x:y@192.168.0.128:554/cam/realmonitor?channel=1&subtype=0
input_args: preset-rtsp-restream
roles:
- record
- audio
- path:
rtsp://x:y@192.168.0.128:554/cam/realmonitor?channel=1&subtype=2&unicast=true&proto=Onvif
input_args: preset-rtsp-restream
roles:
- detect
output_args:
record: preset-record-generic-audio-copy
mqtt:
timestamp: false
bounding_box: false
crop: true
quality: 50
height: 320
genai:
enabled: true
audio:
enabled: true
listen:
- honk
- speech
- police_car
- emergency_vehicle
- yell
- scream
onvif:
host: 192.168.0.128
port: 80
user: xxxxxxx
password: xxxxxxx
autotracking:
enabled: true
calibrate_on_startup: false
zooming: relative
zoom_factor: 0.5
required_zones:
- yard
track:
- person
return_preset: intersection
timeout: 1
movement_weights: 0.25, 1.0, 1.3988714218139648, 4.946893668943835, 0.5225872747359741,
-0.17208480834960938
objects:
track:
- person
- car
- motorcycle
record:
enabled: true
retain:
days: 10
mode: all
zones:
tracking_zone:
coordinates: 0.23,1,0.525,0.731,0.609,0.654,0.785,0.597,0.921,0.611,0.996,0.644,0.998,0.99
loitering_time: 0
objects: person
inertia: 3
street:
coordinates:
0.003,0.602,0.255,0.952,0.676,0.582,0.99,0.608,0.99,0.323,0.826,0.311,0.999,0.08,0.77,0.003,0.516,0.314,0.008,0.201,0.008,0.362,0.171,0.462
loitering_time: 0
objects:
- car
- motorcycle
inertia: 3
yard:
coordinates:
0.796,0.036,0.749,0.44,0.491,0.997,0.002,0.997,0.001,0.553,0.211,0.102,0.446,0.027
inertia: 3
loitering_time: 0
objects: person
detect:
fps: 10
height: 360
width: 640
snapshots:
enabled: true
required_zones:
- tracking_zone
- street
- yard
live:
streams:
street_round_room: street_round_room
review:
alerts:
labels:
- person
required_zones:
- tracking_zone
- yard
detections:
required_zones:
- street
- yard
motion:
threshold: 76
contour_area: 58
improve_contrast: true
mask: 0.064,0.179,0.213,0.166,0.217,0.23,0.068,0.242
side_round_room:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/side_round_room_sub2
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/side_round_room?video&audio
input_args: preset-rtsp-restream
roles:
- record
output_args:
record: preset-record-generic-audio-aac
live:
streams:
side_round_room: side_round_room
mqtt:
timestamp: false
bounding_box: false
crop: true
quality: 100
height: 500
onvif:
host: 192.168.0.135
port: 80
user: xxxxxxxxx
password: xxxxxxx
autotracking:
enabled: false
motion:
threshold: 62
contour_area: 61
improve_contrast: true
zones:
tracking_zone_for_yard:
coordinates: 0.552,1,0.371,0.526,0.227,0.259,0.109,0.19,0.072,-0.011,1,0,1,1
loitering_time: 2
inertia: 1
objects: person
record:
enabled: true
retain:
days: 5
mode: all
detect:
fps: 5
height: 540
width: 960
review:
alerts:
required_zones: tracking_zone_for_yard
detections:
labels: []
version: 0.16-0
camera_groups:
Birdseye:
order: 1
icon: LuBird
cameras: birdseye
environment_vars:
PLUS_API_KEY: xxxxxxxxxxxxx
face_recognition:
enabled: true
model_size: small
lpr:
enabled: false
classification:
bird:
enabled: truedocker-compose file or Docker CLI commandservices:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:0.16.0-beta3-standard-arm64
shm_size: "256mb" # update for your cameras based on calculation above
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- type: bind
source: /Volumes/SSD/frigate/storage
target: /media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "1984:1984" # go2rtc Web UI
- "8971:8971"
- "5001:5000" # Internal unauthenticated access. Expose carefully.
- "1935:1935" # RTMP feeds
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
PLUS_API_KEY: "XXXXX"Relevant Frigate log outputNoneRelevant go2rtc log outputNoneOperating systemOther Install methodDocker Compose Network connectionWired Camera make and modelDahua PTZ, other local streams Screenshots of the Frigate UI's System metrics pagesTBD Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 34 replies
-
|
We have not had any other reports of this. We can't help without logs or other system information that may indicate the reason for your hang. |
Beta Was this translation helpful? Give feedback.
-
|
I think what's happening is an infinite loop of failed movement transform from ptz auto track during which frigate stops responding until I restart the container. I have a dahua ptz that is known to be supported but I am trying the troubleshooting guide steps to reduce the zoom level and recalibrate the camera. |
Beta Was this translation helpful? Give feedback.
-
|
Hi — I have the same issue after upgrading to Frigate 0.16.0. My observations: Problem appears only with PTZ cameras Dahua when autotracking is enabled. Non-PTZ cameras or PTZ cameras with autotracking disabled do not show this behaviour in my setup. On the affected PTZ camera CPU becomes overloaded (I observed >100% load — about 117%) and temperature Coral rises to >80 °C. In debug mode I also noticed that the motion detection area (motion box) for that camera covers almost the entire frame, even when there is no real motion. This causes continuous inference traffic to Coral. After some time the web UI becomes unresponsive; nginx logs show repeated upstream timed out / 504 errors for http://127.0.0.1:5001/auth. During the UI freeze the backend appears to continue recording and detecting, but the UI/API does not respond until I stop and restart the container. This problem did not occur on Frigate 0.15.0 with the same cameras/config. |
Beta Was this translation helpful? Give feedback.
-
|
frigate_debug.log |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I have the same issue and we debugged it a bit in the beta 3 thread (I can't find that anymore, but it linked back to this discussion). I did not have the issue on 0.15, and have had it on all 0.16 release candidates, and I tested it again on 0.16 and it still occurs. So for the last few months I have had autotracking disabled. Using a Dahua DH-SD22404DB-GNY. |
Beta Was this translation helpful? Give feedback.
-
|
I've added some more debug logs to Frigate's ONVIF code to see if I can better pinpoint where this can be improved. The code changes (based on the current master...hawkeye217:frigate:master The additional debug logs are contained to one file so if you'd like, you could grab it and drop it into your Frigate container. Or, you can use this custom build, which is based on Frigate 0.16: If you pull the image and it fails, give it some time to finish building. You can find the build status here: https://github.com/hawkeye217/frigate/actions/runs/17363591469 Ensure you have PTZ debug logs enabled, and then post your log here when you encounter the issue again so I can take a look. |
Beta Was this translation helpful? Give feedback.
The changes to autotracking to improve the issues seen in this thread have been committed to the main repo in #19873 and #19879
These changes will be widely available in Frigate 0.16.1.
I'll close this issue now, but feel free to reopen if something else comes up. Thanks again for your help in testing @therokh @TreKot