-
|
Today, we proceeded to configure the camera system. When we tried to add a stream, even though it looked like everything went right, we got a new error with go2rtc. When adding a new camera (via auto-detect or simply motion mode), the stream doesn't start properly or immediately. It just gets “added” to the streams, but we can't see the live stream, and it gives us HLS 404 errors and RTSP failures with 404 NOT FOUND. Only when we restart Docker does it work. To avoid exposing the URL or the camera name, I changed them to and , respectively. Below are the logs and our suppositions.
lightnvr | [2026-02-12 15:13:09] [INFO] Added stream configuration: name=<my-cam-name>, enabled=true, detection=true, model=motion
lightnvr | [2026-02-12 15:13:09] [INFO] Created stream state for '<my-cam-name>' in slot 8 with initial reference count 1
lightnvr | [2026-02-12 15:13:09] [INFO] Created stream state for '<my-cam-name>'
lightnvr | [2026-02-12 15:13:09] [INFO] go2rtc_stream_is_ready: API is responsive (HTTP 200)
lightnvr | [2026-02-12 15:13:09] [INFO] Stream <my-cam-name> is registered with go2rtc, WebRTC URL: http://localhost:1984/webrtc/
<my-cam-name>
lightnvr | [2026-02-12 15:13:09] [INFO] Preloading stream with URL: http://localhost:1984/api/preload?src=
<my-cam-name>&video&audio
lightnvr | [2026-02-12 15:13:09] [ERROR] Failed to preload stream in go2rtc (status 500): streams: stream not found: <my-cam-name>
lightnvr |
lightnvr | [2026-02-12 15:13:09] [WARN] Failed to preload stream <my-cam-name> in go2rtc - detection snapshots may be intermittentNow go2rtc responds with 500, saying it can't find the camera stream. The API responds, but the stream isn't ready in go2rtc.
lightnvr | [2026-02-12 15:13:09] [INFO] Using go2rtc native HLS for stream <my-cam-name> (no ffmpeg HLS thread needed)
lightnvr | [2026-02-12 15:13:09] [INFO] go2rtc native HLS ready for stream <my-cam-name>
lightnvr | [2026-02-12 15:13:09] [INFO] Started HLS streaming for '<my-cam-name>'
lightnvr | [2026-02-12 15:13:09] [INFO] Stream '<my-cam-name>' is now runningThe preload fails, but the workflow continues and the stream is labeled as “running”.
lightnvr | [2026-02-12 15:13:09] [INFO] [<my-cam-name>] State: CONNECTING (attempt 1)
lightnvr | [2026-02-12 15:13:09] [INFO] [<my-cam-name>] Connecting to stream: <my-cam-rstp>
lightnvr | [rtsp @ 0x7fdbf8000b80] method DESCRIBE failed: 404 Not Found
lightnvr | [2026-02-12 15:13:09] [ERROR] [<my-cam-name>] Failed to open input: Server returned 404 Not FoundAnd in the console, when we open it with element inspection, we see this: [HLS <my-cam-name>] go2rtc base URL: http://10.7.8.216:1984
Using HLS.js for stream <my-cam-name> (mode: go2rtc)
:1984/api/stream.m3u8?src=<my-cam-name>&mp4=flac:1 Failed to load resource: the server responded with a status of 404 (Not Found)
[HLS <my-cam-name>] Fatal error: networkError, details: manifestLoadError
[HLS <my-cam-name>] Network error recovery attempt 1/3The endpoint "/api/stream.m3u8?src=" returns 404 Not Found. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
I believe these type of issues are resolved in 0.21.13 -- could you verify? |
Beta Was this translation helpful? Give feedback.
I believe 0.21.14 fixes this and that 0.21.13 it works possibly if demo mode is enabled....