QuantumEntangledAndy / neolink

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

Reolink Argus PT does not reconnect. #290

Open HBK1 opened 2 months ago

HBK1 commented 2 months ago

Describe the bug Reolink Argus PT connection does not always recover without manually restart of Neolink.

To Reproduce

  1. Create this configuration file: [[cameras]] name = "Terass" username = "admin" password = "passw" uid = "9527000xxxxxxxxx" discovery = "remote" idle_disconnect = false push_notifications = false

bind = "0.0.0.0" bind_port = 8553

  1. Launch Neolink: and wait about 30 minutes

Expected behavior Automatic reconnect as 1:st example in attached debug log.

Versions NVR software: Frigate 0.14 Neolink software: neolink 0.6.3-rc.3 Reolink camera model and firmware: Model Reolink Argus PT Firmware Version v3.0.0.715_21112344

Debuglog-ArgusPT.txt

HBK1 commented 2 months ago

If you can give me some advice how to continue troubleshooting I would be greatful. If I can supply any more info or logs please let me know. I really like your work and all the effort you put in to make it possible to use Reolink cameras.

QuantumEntangledAndy commented 2 months ago

I'm currently making some changes in the part of the code your issue is occuring in. It seems from your log that the thread that controls the camear was dropped and not auto recovered. My new changes do away with the seperate thread entirly

HBK1 commented 2 months ago

I tested a little more and it seems the "kill" of the camera process is ok since when I moved neolink to a single Debian server (proxmox) it was consuming 100% cpu when this happened so it must be a loop inside the camera code. Unfortunately I do not have any logs but I will continue testing later on.