• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    LOVE the skill, just need to figure out the Monocle Gateway problem I'm having.

    Monocle Gateway
    1
    3
    166
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aesdfbeg last edited by

      First, this skill is absolutely fantastic. Simple, yet it just works. Well, until the gateway starts to get involved, but I have no doubt the issue is within my network and I just need to figure out where the problem lies.

      I first set everything up and on an older FireTV stick, everything worked. However, on my newer devices, it didn’t so I had to install the gateway.

      Now I can’t get it to work on any device, and logging is telling it is due to RTSP CLIENT SOCKET TIMEOUT.

      I have installed the Gateway on Ubuntu 18.04 and it installed perfectly fine, far as I can see. Followed all of the clear instructions, no errors.

      The desktop it is installed on is 192.168.10.22
      The connection point for the cameras (DVR with multiple RTSP stream options) is 192.168.10.50
      The tested FireStick is 192.168.10.115

      I am able to ping based on the FQDN:

      C:\Users\shelz>ping 1aa64d33-cc36-4ec5-b273-7c66d5c824a2.mproxy.io
      
      Pinging 1aa64d33-cc36-4ec5-b273-7c66d5c824a2.mproxy.io [192.168.10.22] with 32 bytes of data:
      Reply from 192.168.10.22: bytes=32 time=2ms TTL=64
      Reply from 192.168.10.22: bytes=32 time=3ms TTL=64
      Reply from 192.168.10.22: bytes=32 time=5ms TTL=64
      Reply from 192.168.10.22: bytes=32 time=1ms TTL=64
      

      Here is the log from a connection attempt (this happens with all of the cameras)

      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]: -------------------------------------------------
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]: INITIALIZE RTSP STREAM:  Front Door
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]: -------------------------------------------------
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]:  - NAME  : Front Door
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]:  - LABEL : PRIMARY
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]:  - URL   : rtsp://192.168.10.50:554/ch01/0
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]:  - UUID  : STREAM:68c6a5e8-9efd-4653-b421-a179d7640704
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]:  - SESS  : 67e87f3a-9900-4723-bbcd-2def6edc7516
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]:  - MODIF : Tue Jul 14 2020 14:04:59 GMT-0400 (EDT)
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]:  - TAGS  : @tunnel
      Jul 14 14:32:27 ubuntu-gateway monocle-gateway[13893]: -------------------------------------------------
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.344Z [INFO]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP CLIENT SOCKET CONNECTED
      
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.475Z [INFO]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP CLIENT ATTACHED TO STREAM: Front Door (STREAM:68c6a5e8-9efd-4653-b421-a179d7640704)
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.478Z [INFO]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP ENDPOINT SOCKET CONNECTED {192.168.10.50:554}
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.479Z [DEBUG] [192.168.10.115:46980 <rJ4S5OikD>] [CLIENT REQUEST]  --> [DESCRIBE] rtsp://1aa64d33-cc36-4ec5-b273-7c66d5c824a2.mproxy.io:443/STREAM:68c6a5e8-9efd-4653-b421-a179d7640704?session=67e87f3a-9900-4723-bbcd-2def6edc7516
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.479Z [TRACE] [192.168.10.115:46980 <rJ4S5OikD>] [CLIENT REQUEST]  --> [HEADERS] {
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "accept": "application/sdp",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "user-agent": "Fire OS/5.2.7.3 stagefright/1.2 (Linux;Android 5.1.1)",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "cseq": "1"
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: }
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.479Z [INFO]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP ENDPOINT ATTEMPTING AUTHENTICATION: BASIC
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.480Z [DEBUG] [192.168.10.115:46980 <rJ4S5OikD>] [ENDPOINT REQUEST]  --> [DESCRIBE] rtsp://192.168.10.50:554/ch01/0
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.480Z [TRACE] [192.168.10.115:46980 <rJ4S5OikD>] [ENDPOINT REQUEST]  --> [HEADERS] {
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "accept": "application/sdp",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "user-agent": "Fire OS/5.2.7.3 stagefright/1.2 (Linux;Android 5.1.1)",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "cseq": "1",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "authorization": "Basic YWRtaW46bWlsbGVyMTIwMw=="
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: }
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.485Z [DEBUG] [192.168.10.115:46980 <rJ4S5OikD>] [ENDPOINT RESPONSE] <-- [401 (Unauthorized)] <cseq=0> (session=undefined)
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.485Z [TRACE] [192.168.10.115:46980 <rJ4S5OikD>] [ENDPOINT RESPONSE] <-- [HEADERS] {
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "cseq": "0",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "server": "Rtsp Server",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "www-authenticate": "Digest realm=\"Surveillance Server\", nonce=\"96064094\""
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: }
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.485Z [INFO]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP ENDPOINT REQUIRES AUTHENTICATION: Digest realm="Surveillance Server", nonce="96064094"
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.486Z [INFO]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP ENDPOINT ATTEMPTING AUTHENTICATION: DIGEST
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.487Z [DEBUG] [192.168.10.115:46980 <rJ4S5OikD>] [ENDPOINT REQUEST]  --> [DESCRIBE] rtsp://192.168.10.50:554/ch01/0
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.487Z [TRACE] [192.168.10.115:46980 <rJ4S5OikD>] [ENDPOINT REQUEST]  --> [HEADERS] {
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "accept": "application/sdp",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "user-agent": "Fire OS/5.2.7.3 stagefright/1.2 (Linux;Android 5.1.1)",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "cseq": "1",
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]:   "authorization": "Digest username=\"admin\", realm=\"Surveillance Server\", nonce=\"96064094\", uri=\"rtsp://192.168.10.50:554/ch01/0\", response=\"420fb8640510b6afa3
      f5229b74537885\""
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: }
      Jul 14 14:32:28 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:28.489Z [INFO]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP ENDPOINT SOCKET CLOSED [192.168.10.115:46980 <rJ4S5OikD>]
      
      Jul 14 14:32:58 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:58.476Z [WARN]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP CLIENT SOCKET TIMEOUT
      Jul 14 14:32:58 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:58.583Z [INFO]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP CLIENT SOCKET CLOSED
      Jul 14 14:32:58 ubuntu-gateway monocle-gateway[13893]: 2020-07-14T18:32:58.583Z [INFO]  [192.168.10.115:46980 <rJ4S5OikD>] RTSP CLIENT DETACHED FROM STREAM: Front Door (STREAM:68c6a5e8-9efd-4653-b421-a179d7640704)
      

      Now that I am looking closer, I do see the line that says

       2020-07-14T18:32:28.485Z [DEBUG] [192.168.10.115:46980 <rJ4S5OikD>] [ENDPOINT RESPONSE] <-- [401 (Unauthorized)] <cseq=0> (session=undefined)
      

      What is this referring to? The camera auth or the token? Not super clear on that. Thanks!

      A 1 Reply Last reply Reply Quote 0
      • A
        aesdfbeg @aesdfbeg last edited by

        OK. Couldn’t edit the original post, but I have figured out where the problem is, I think, but not sure how to fix it or why it is happening (bug, possibly?)

        The issue appears to be with the authentication. I am currently using Basic and the user name and password in MONOCLE is correct. Without the gateway, it worked fine on a few devices and I didn’t change the username and password between then and installing the gateway.

        The log shows the initial attempt at authentication, but if fails. I don’t see the username listed at all. I see

        "authorization": "Basic YWRtaW46bWlsbGVyMTIwMw=="
        

        Is the token what decrypts this? I then see it attempts to authenticate using Digest with credentials I don’t recognize.

        I went into each camera and removed and readded the authentication and I am still getting the same results.

        A 1 Reply Last reply Reply Quote 0
        • A
          aesdfbeg @aesdfbeg last edited by

          Ok, so I have removed the user for troubleshooting and that seemed to help it get further. Now I am having another problem where a connection seems to be made between the Fire Stick and RTSP stream, but then immediately disconnects.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Privacy Policy  |  Terms & Conditions

          © 2018 shadeBlue, LLC.