QuantumEntangledAndy / neolink

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

"WARN neolink::rtsp] camera_name: Retryable error: Motion detection unexpectedly stopped" #47

Closed anthonws closed 1 year ago

anthonws commented 1 year ago

Hello! I've been seeing the amazing work that you continue putting into neolink :) A big thank you!!

I wanted to test the latest version (0.5.5) to see if the CPU consumption issue was fixed or improved. But after a while of the stream pause there's a WARN message and the connection restarts.

Docker install using tag:latest and network mode Neolink 4fcaf4d538dc6e05434690bdf7f3a3bc22b077e3 release Camera Argus 2E

Thanks!

[2023-03-05T16:27:32Z INFO  neolink::rtsp::states] tapas_balcony: Successfully paused streaming
[2023-03-05T16:28:32Z WARN  neolink::rtsp] tapas_balcony: Retryable error: Motion detection unexpectedly stopped

    Caused by:
        0: Dropped connection
        1: receiving on a closed channel
[2023-03-05T16:28:32Z INFO  neolink::rtsp::states] tapas_balcony: Connecting to camera at UID: 1111111111111111111111
[2023-03-05T16:28:37Z INFO  neolink_core::bc_protocol] Local discovery success 1111111111111111111111 at 192.168.1.106:26774
[2023-03-05T16:28:37Z INFO  neolink::rtsp::states] tapas_balcony: Logging in
[2023-03-05T16:28:37Z INFO  neolink::rtsp::states] tapas_balcony: Successfully logged in
[2023-03-05T16:28:37Z INFO  neolink::rtsp::states] tapas_balcony: Camera time is already set: 2023-03-05 17:28:40 +1
[2023-03-05T16:28:38Z INFO  neolink::rtsp::states] tapas_balcony: Camera reports firmware version 0323_712_572_477
[2023-03-05T16:28:38Z INFO  neolink::rtsp::states] tapas_balcony: Starting stream
[2023-03-05T16:28:38Z INFO  neolink::rtsp::states::streaming] tapas_balcony: Starting video stream Sub Stream (Fluent)
[2023-03-05T16:28:38Z INFO  neolink::rtsp::states] tapas_balcony: Successfully started streaming
[2023-03-05T16:28:38Z WARN  neolink::rtsp] Not ready to pause
[2023-03-05T16:28:38Z INFO  neolink::rtsp] Pause on motion (start)
[2023-03-05T16:28:38Z INFO  neolink::rtsp::states] tapas_balcony: Pausing stream
[2023-03-05T16:28:38Z INFO  neolink::rtsp::states::streaming] Streaming take_outputs
[2023-03-05T16:28:38Z INFO  neolink::rtsp::states::paused] tapas_balcony: Starting paused stream Sub Stream (Fluent)
[2023-03-05T16:28:38Z INFO  neolink::rtsp::states] tapas_balcony: Successfully paused streaming
QuantumEntangledAndy commented 1 year ago

Unfortunately there's not enough info in that log for me to work out why it does that. Maybe you could replicate with trace logging? Set the env variable RUST_LOG to "trace"

anthonws commented 1 year ago

Will provide debug logs by the weekend. Thanks!

anthonws commented 1 year ago

Weirdly enough, I'm not able to repro the same error.... Tried restarting multiple times the container, but no such error message like the one that was reported :S

Apparently all is good and the stream is able to be paused!

[2023-03-13T11:36:16Z INFO neolink::rtsp] Starting RTSP Server at 0.0.0.0:8555 [2023-03-13T11:36:16Z INFO neolink::rtsp::states] tapas_balcony: Connecting to camera at UID: XXXXXXXXXXX [2023-03-13T11:36:28Z INFO neolink_core::bc_protocol] Local discovery success XXXXXXXXXXX at 192.168.1.106:52392 [2023-03-13T11:36:28Z INFO neolink::rtsp::states] tapas_balcony: Logging in [2023-03-13T11:36:28Z INFO neolink::rtsp::states] tapas_balcony: Successfully logged in [2023-03-13T11:36:28Z INFO neolink::rtsp::states] tapas_balcony: Camera time is already set: 2023-03-13 12:36:31 +1 [2023-03-13T11:36:28Z INFO neolink::rtsp::states] tapas_balcony: Camera reports firmware version 0323_712_572_477 [2023-03-13T11:36:28Z INFO neolink::rtsp::states] tapas_balcony: Starting stream [2023-03-13T11:36:28Z INFO neolink::rtsp::states::streaming] tapas_balcony: Starting video stream Sub Stream (Fluent) [2023-03-13T11:36:28Z INFO neolink::rtsp::states] tapas_balcony: Successfully started streaming [2023-03-13T11:36:29Z WARN neolink::rtsp] Not ready to pause [2023-03-13T11:36:29Z INFO neolink::rtsp] Pause on motion (start) [2023-03-13T11:36:29Z INFO neolink::rtsp::states] tapas_balcony: Pausing stream [2023-03-13T11:36:29Z INFO neolink::rtsp::states::streaming] Streaming take_outputs [2023-03-13T11:36:29Z INFO neolink::rtsp::states::paused] tapas_balcony: Starting paused stream Sub Stream (Fluent) [2023-03-13T11:36:29Z INFO neolink::rtsp::states] tapas_balcony: Successfully paused streaming

QuantumEntangledAndy commented 1 year ago

Alright. There's been a few changes of late so maybe one of those helped. I'll close this but feel free to reopen if you get it again.