-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Another thing I would try would be to actually use "Zones Detection", but I can't even visualize the space to be able to draw or choose the scan zones. |
Beta Was this translation helpful? Give feedback.
-
|
Docker Feedback: FFmpeg missing, Critical crash with stream names, and Motion model issues Hi! First of all, thanks for reply me. I've spent some time setting up LightNVR via Docker (Compose) and I've some kind of problems. However, I encountered three major issues that might affect other Docker users. Here is my report and the workarounds I used:
Error in logs: [ERROR] Failed to fetch snapshot from go2rtc (HTTP 500, size: 51) Cause: The default Docker image seems to lack ffmpeg. go2rtc requires it available in the CLI path to generate snapshots. Workaround: I had to manually install it inside the container (apt-get update && apt-get install -y ffmpeg).
Error in logs: sh: 1: Syntax error: "(" unexpected Observation: It seems the stream name is being passed directly to a shell command (likely the HLS or detection script) without sanitization/escaping. Fix: I had to wipe the lightnvr.db database to recover the system and rename streams using only alphanumeric characters.
Error in logs: [ERROR] MODEL FILE NOT FOUND: motion Context: The mapped /models directory was initially empty. My Setup: OS: AlmaLinux (Host) Deployment: Docker Compose Backend: TFLite (via light-object-detect API) Hope this helps improve the stability for the next release!
|
Beta Was this translation helpful? Give feedback.
-
|
[Bug/Migration] : "table detections has no column named recording_id" even after update Hi! I ran into an issue after updating my LightNVR Docker container. The Problem: My recordings were failing to link to detections, and playback in the web UI was broken. The logs showed repeated errors: [ERROR] Failed to prepare statement: table detections has no column named recording_id. However, the startup logs claimed the database was fine: [INFO] Database schema is up to date (version 16) The Fix: I had to manually access the database via sqlite3 and run: ALTER TABLE detections ADD COLUMN recording_id INTEGER; Note: I am using a persistent volume for /var/lib/lightnvr/data. It seems the migration logic didn't trigger for the existing database file, or the version check (v16) returned true even though the column was missing. Just letting you know in case others face this!
|
Beta Was this translation helpful? Give feedback.



[Bug/Migration] : "table detections has no column named recording_id" even after update
Hi! I ran into an issue after updating my LightNVR Docker container.
The Problem: My recordings were failing to link to detections, and playback in the web UI was broken. The logs showed repeated errors: [ERROR] Failed to prepare statement: table detections has no column named recording_id.
However, the startup logs claimed the database was fine: [INFO] Database schema is up to date (version 16)
The Fix: I had to manually access the database via sqlite3 and run: ALTER TABLE detections ADD COLUMN recording_id INTEGER;
Note: I am using a persistent volume for /var/lib/lightnvr/data. It seems the migratio…