QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
247 stars 39 forks source link

Unable to stay connected in HA/Frigate #212

Open nalkinburgh opened 4 months ago

nalkinburgh commented 4 months ago

Camera connection is made but fails after only a short time. Error is the same every time in the log. When I first start neolink I can see the camera. Then is fails and exits

Here is the log file

[2024-02-13T18:36:21Z INFO  neolink::common::neocam] back_yard: Firmware Version v2.0.0.705_21052800
[2024-02-13T18:36:23Z INFO  neolink::rtsp] back_yard: Avaliable at /back_yard/sub, /back_yard/Sub, /back_yard/subStream, /back_yard/SubStream, /b>
[2024-02-13T18:36:24Z INFO  neolink::rtsp] back_yard: Stream Configuration Changed. Reloading Streams
[2024-02-13T18:36:24Z INFO  neolink::rtsp] back_yard: Avaliable at /back_yard/sub, /back_yard/Sub, /back_yard/subStream, /back_yard/SubStream, /b>
[2024-02-13T18:36:44Z INFO  neolink::rtsp] back_yard: Avaliable at /back_yard/main, /back_yard/Main, /back_yard/mainStream, /back_yard/MainStream>
[2024-02-13T19:21:16Z WARN  neolink::common::camthread] Connection Lost: IO Error: Os { code: 104, kind: ConnectionReset, message: "Connection re>

    Caused by:
        Connection reset by peer (os error 104)
[2024-02-13T19:21:16Z INFO  neolink::common::camthread] Attempt reconnect in 50ms
[2024-02-13T19:21:16Z INFO  neolink::utils] back_yard: Connecting to camera at Address: 10.0.0.101:9000
[2024-02-13T19:21:16Z INFO  neolink_core::bc_protocol] back_yard: Trying TCP discovery
[2024-02-13T19:21:17Z INFO  neolink_core::bc_protocol] back_yard: TCP Discovery success at 10.0.0.101:9000
[2024-02-13T19:21:17Z INFO  neolink::utils] back_yard: Logging in
[2024-02-13T19:21:17Z INFO  neolink::utils] back_yard: Connected and logged in
[2024-02-13T19:21:17Z INFO  neolink::common::camthread] back_yard: Camera time is already set: 2024-02-13 14:21:16.0 +05:00:00
thread '<unnamed>' panicked at 'Could not build pipeline: channel closed', src/rtsp/gst/factory.rs:132:56
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5

Versions NVR software: Frigate inside HomeAssistant Neolink software: 0.6.2 (unable to get 0.6.3 to work) Reolink camera model and firmware: Lumus Firmware Version v2.0.0.705_21052800

melvinredondotanis commented 2 months ago

same problem for me