neolink
neolink copied to clipboard
Reolink Argus PT does not reconnect.
Describe the bug Reolink Argus PT connection does not always recover without manually restart of Neolink.
To Reproduce
- 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
- 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
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.
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
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.
I changed the proxmox(8.2.8) to only use one core and then the 100% cpu was not present anymore. Is it possible that some code are not reentrant or can it be a compiler directive missing? I also tested the releases backwards and when I reached 0.5.18 the reconnect of PT is working and it is working ok with Frigate 14. I have been using 0.5.18 for a month now and sometimes the battery cameras disconnect but now neolink reconnects and Frigate also recovers. Also the lag in the streams of several minutes has gone and now it is only a few seconds.