thirtythreeforty / neolink

An RTSP bridge to Reolink IP cameras
https://www.thirtythreeforty.net/posts/2020/05/hacking-reolink-cameras-for-fun-and-profit/
GNU Affero General Public License v3.0
897 stars 151 forks source link

Unable to auth to Argus Eco Ultra #381

Closed CodeFatherG closed 6 months ago

CodeFatherG commented 7 months ago

Describe the bug Attempting to use docker neolink to auth to a Argus Eco Ultra. docker logs indicate a failure to auth.

To Reproduce Steps to reproduce the behavior. Example:

  1. Create this configuration file:
    
    bind = "0.0.0.0"

[[users]] name = "admin" pass = "SECRET"

[[cameras]] name = "front" username = "admin" password = "SECRET" uid = "9527000799S5FFZ1"

2. Launch Neolink:
Docker Compose:

version: '2' services: neolink: image: thirtythreeforty/neolink container_name: neolink ports:

  1. docker logs neolink

    [2024-04-22T11:24:50Z ERROR neolink_core::bc_protocol::connection::udpconn] Udp write poll aborted
    root@debian:/docker/neolink# docker logs neolink
    [2024-04-22T11:24:42Z INFO  neolink] Neolink 0.4.0 (unknown commit) release
    [2024-04-22T11:24:42Z WARN  neolink::rtsp] Without a server certificate, usernames and passwords will be exchanged in plaintext!
    [2024-04-22T11:24:47Z INFO  neolink_core::bc_protocol::connection::udpconn::discover] Trying remote discovery against reolink servers
    [2024-04-22T11:24:47Z INFO  neolink_core::bc_protocol::connection::udpconn::discover] Trying remote discovery against reolink servers
    [2024-04-22T11:24:49Z INFO  neolink::rtsp] front: Connecting to camera at UID: 9527000799S5FFZ1
    [2024-04-22T11:24:49Z INFO  neolink::rtsp] front: Logging in
    [2024-04-22T11:24:49Z INFO  neolink::rtsp] front: Connecting to camera at UID: 9527000799S5FFZ1
    [2024-04-22T11:24:49Z INFO  neolink::rtsp] front: Logging in
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::udpconn] Camera requested disconnect
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::udpconn] Udp read poll aborted
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::bcconn] Deserialization error: Deserialization error
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::bcconn] caused by: I/O error
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::bcconn] caused by: Connection dropped when reading from udp channel
    [2024-04-22T11:24:49Z ERROR neolink::rtsp] Error streaming from camera front, will retry in 1s: Failed to login to front
    
    Caused by:
        Dropped connection
    [2024-04-22T11:24:50Z ERROR neolink_core::bc_protocol::connection::udpconn] Udp write poll aborted
    [2024-04-22T11:24:50Z ERROR neolink_core::bc_protocol::connection::udpconn] Camera requested disconnect
    [2024-04-22T11:24:50Z ERROR neolink_core::bc_protocol::connection::udpconn] Udp read poll aborted
    [2024-04-22T11:24:50Z ERROR neolink_core::bc_protocol::connection::bcconn] Deserialization error: Deserialization error
    [2024-04-22T11:24:50Z ERROR neolink_core::bc_protocol::connection::bcconn] caused by: I/O error
    [2024-04-22T11:24:50Z ERROR neolink_core::bc_protocol::connection::bcconn] caused by: Connection dropped when reading from udp channel
    [2024-04-22T11:24:50Z ERROR neolink::rtsp] Error streaming from camera front, will retry in 1s: Failed to login to front
    
    Caused by:
        Dropped connection
    [2024-04-22T11:24:50Z ERROR neolink_core::bc_protocol::connection::udpconn] Udp write poll aborted
    root@debian:/docker/neolink# docker logs neolink
    [2024-04-22T11:24:42Z INFO  neolink] Neolink 0.4.0 (unknown commit) release
    [2024-04-22T11:24:42Z WARN  neolink::rtsp] Without a server certificate, usernames and passwords will be exchanged in plaintext!
    [2024-04-22T11:24:47Z INFO  neolink_core::bc_protocol::connection::udpconn::discover] Trying remote discovery against reolink servers
    [2024-04-22T11:24:47Z INFO  neolink_core::bc_protocol::connection::udpconn::discover] Trying remote discovery against reolink servers
    [2024-04-22T11:24:49Z INFO  neolink::rtsp] front: Connecting to camera at UID: 9527000799S5FFZ1
    [2024-04-22T11:24:49Z INFO  neolink::rtsp] front: Logging in
    [2024-04-22T11:24:49Z INFO  neolink::rtsp] front: Connecting to camera at UID: 9527000799S5FFZ1
    [2024-04-22T11:24:49Z INFO  neolink::rtsp] front: Logging in
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::udpconn] Camera requested disconnect
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::udpconn] Udp read poll aborted
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::bcconn] Deserialization error: Deserialization error
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::bcconn] caused by: I/O error
    [2024-04-22T11:24:49Z ERROR neolink_core::bc_protocol::connection::bcconn] caused by: Connection dropped when reading from udp channel
    [2024-04-22T11:24:49Z ERROR neolink::rtsp] Error streaming from camera front, will retry in 1s: Failed to login to front
    
    Caused by:
        Dropped connection

Expected behavior No errors to be thrown and auth to be established

Versions Neolink software: 0.4.0 Reolink camera model and firmware: Argus Eco Ultra v3.0.0.0.2773_23100910

daed commented 6 months ago

I'm getting the same result on an Argus Eco. I'm using the ubuntu release.

CodeFatherG commented 6 months ago

Hi @daed, I should have closed this. #370 is about this repo being unmaintained. @QuantumEntangledAndy is doing a great job maintaining their own fork. I still haven't got their fork working perfect and have my own issues open there, but its maintained at least.