[Bug]: MQTT topic frigate/<camera_name>/status/record does not become offline when connection to the camera is lost #22374
-
Checklist
Describe the problem you are havingWhen Frigate loses connection to a camera, the camera's 'record' status on MQTT (topic: This behaviour is consistent across all cameras in my setup. Expected behaviour:
Observed behaviour:
Steps to reproduce
Version0.17.0-f0d69f7 In which browser(s) are you experiencing the issue with?No response Frigate config file# Something similar to this should be enough to reproduce, I prefer not to share my real config:
mqtt:
enabled: true
host: (redacted)
user: (redacted)
password: (redacted)
client_id: (redacted)
go2rtc:
rtsp:
username: (redacted)
password: (redacted)
streams:
cam1:
- rtsp://(redacted):(redacted)@(redacted)/(redacted)
cam1-sub:
- rtsp://(redacted):(redacted)@(redacted)/(redacted)
ffmpeg:
input_args: preset-rtsp-restream
hwaccel_args: preset-nvidia
cameras:
cam1:
ffmpeg:
inputs:
- path: rtsp://localhost:8554/cam1-sub
roles:
- detect
- path: rtsp://localhost:8554/cam1
roles:
- record
record:
enabled: truedocker-compose file or Docker CLI commanddocker run -d \
--name frigate \
--restart=unless-stopped \
--log-opt max-size=(redacted) \
--mount type=tmpfs,target=/tmp/cache,tmpfs-size=(redacted) \
--shm-size=(redacted) \
-v (redacted):/media/frigate \
-v (redacted):/db \
-v (redacted):/models:ro \
-v (redacted):/config/config.yml \
-v (redacted):/config/.jwt_secret:ro \
-v (redacted):/etc/localtime:ro \
-p (redacted):5000 \
-p (redacted):8971 \
-p (redacted):8554 \
--gpus=all \
ghcr.io/blakeblackshear/frigate:0.17.0-tensorrtRelevant Frigate log output-Relevant go2rtc log output-Operating systemProxmox Install methodDocker CLI Network connectionWired Camera make and modelirrelevant Screenshots of the Frigate UI's System metrics pagesirrelevant Any other information that may be helpfulI think the problem might be incorrect substitution of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Based on the available documentation, I can confirm that Frigate version 0.17 introduced dedicated MQTT topics for camera health status.(1) The expected behavior is that when a camera connection is lost, the status topic The issue you're describing—where Your analysis pointing to the code locations in For monitoring camera uptime in the meantime, you could:
This appears to be a legitimate bug that should be reported to the Frigate development team if it hasn't been already, as the MQTT status topics are intended to provide reliable camera health monitoring.(1) 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, fixed in #22376 |
Beta Was this translation helpful? Give feedback.
Thanks, fixed in #22376