Troubleshooting¶
Recorder is inactive or repeatedly restarting¶
Check the unit log and its dependency:
Typical causes are a missing camera URL, an unavailable go2rtc stream, or a recording mount that is not writable.
No files are being created¶
Confirm the configured root and stream directly:
grep -E 'CAMERA_|RECORDING_ROOT' /etc/camera-recorder.conf
ffprobe -rtsp_transport tcp rtsp://127.0.0.1:8554/living
df -h /media/recordings
Use a real configured stream name in place of living. If ffprobe fails,
debug go2rtc and the upstream camera before debugging ffmpeg.
Watchdog reports a stale recording¶
The watchdog considers a camera unhealthy when no .mkv or .mp4 file has been
updated within MAX_RECORDING_AGE_SECONDS (default 120 seconds). Inspect the
directory timestamps and recorder log, then check the upstream stream.
Cleanup deleted more than expected¶
Review RETENTION_DAYS and remember that cleanup uses file modification time.
It only targets .mkv and .mp4 files below RECORDING_ROOT; verify the mount
path before running the cleanup service manually.