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

    Failed with result 'exit-code'.

    Monocle Gateway
    2
    7
    371
    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.
    • C
      clgillespie last edited by

      Intalled monocle gateway on raspberry pi 4. Ran tail, said TypeError: Cannot read property ‘jti’ of null Failed with result ‘exit-code’. What now.

      C 1 Reply Last reply Reply Quote 0
      • C
        clgillespie @clgillespie last edited by Monocle

        @clgillespie I tried reinstalling again, it installed but when ran tail to see if I was ok it said:
        Monocle Gateway Installed

        -----------------------------------
        pi@raspberrypi:~ $ monocle-gateway --tail
        
         ******************************************************************
         *             __  __  ___  _  _  ___   ___ _    ___              *
         *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
         *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
         *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
         *                                                                *
         ******************************************************************
        
        <<TAIL>> LOG FOR THE [MONOCLE-GATEWAY] SERVICE
        -- Logs begin at Fri 2020-05-29 20:07:42 EDT. --
        May 29 20:21:10 raspberrypi systemd[1]: Condition check resulted in Monocle Gateway Service being skipped.
        

        Any ideas.

        1 Reply Last reply Reply Quote 0
        • Monocle
          Monocle last edited by

          Not sure why its failing … I’ll have to install the latest Raspbian on a RPi4B and try it out myself.
          In the meantime, you can simply download the archive file (https://files.monoclecam.com/monocle-gateway/raspberrypi/monocle-gateway-linux-raspi-v0.0.4.tar.gz) and uncompress the contents into a directory on your system. From here you should be able to just run the monocle-gateway executable to start testing. The .deb installer automates the process of installing monocle-gateway as a service, but you can at least start testing monocle-gateway by just running the executable manually.

          Thanks, Robert

          Monocle: https://monoclecam.com
          Getting Started | Troubleshooting Guide | FAQ | Contact Support

          C 1 Reply Last reply Reply Quote 0
          • C
            clgillespie @Monocle last edited by

            @Monocle Finally got it to load. Had to use sudo chmod -R 777 /etc/monocle to get the monocle token to copy to etc/monocle correctly. Now I have to figure out why it does not work on my firestick 4k. My rtsp works fine on VLC, even with the tag @tunnel.
            Thank you.

            C 2 Replies Last reply Reply Quote 0
            • C
              clgillespie @clgillespie last edited by

              @clgillespie

              1 Reply Last reply Reply Quote 0
              • C
                clgillespie @clgillespie last edited by Monocle

                @clgillespie
                Still not working with Alexa on my firestick 4k, here is what my log says:

                pi@raspberrypi:~ $ sudo  monocle-gateway  --status 
                
                 ******************************************************************
                 *             __  __  ___  _  _  ___   ___ _    ___              *
                 *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
                 *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
                 *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                 *                                                                *
                 ******************************************************************
                
                GETTING <<STATUS>> FOR THE [MONOCLE-GATEWAY] SERVICE
                ● monocle-gateway.service - Monocle Gateway Service
                   Loaded: loaded (/etc/systemd/system/monocle-gateway.service; enabled; vendor preset: enabled)
                   Active: active (running) since Thu 2020-06-04 20:28:17 EDT; 5min ago
                 Main PID: 444 (monocle-gateway)
                    Tasks: 10 (limit: 4915)
                   Memory: 50.0M
                   CGroup: /system.slice/monocle-gateway.service
                           ├─444 /usr/local/bin/monocle-gateway
                           └─546 /usr/local/bin/monocle-proxy -p 8554
                
                Jun 04 20:28:36 raspberrypi monocle-gateway[444]: [Monocle Connecting]
                Jun 04 20:28:37 raspberrypi monocle-gateway[444]: [Monocle Connected]
                Jun 04 20:28:37 raspberrypi monocle-gateway[444]: [RTSP Server Registered]
                Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                Jun 04 20:28:37 raspberrypi monocle-gateway[444]: MONOCLE RTSP SERVICE - INITIALIZED
                Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                Jun 04 20:28:37 raspberrypi monocle-gateway[444]: FQDN = d3060404-c9cf-4890-84ac-3cbb65168330.mproxy.io
                Jun 04 20:28:37 raspberrypi monocle-gateway[444]: HOST = 192.168.1.107
                Jun 04 20:28:37 raspberrypi monocle-gateway[444]: PORT = 443
                Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                
                C 1 Reply Last reply Reply Quote 0
                • C
                  clgillespie @clgillespie last edited by Monocle

                  @clgillespie

                  pi@raspberrypi:~ $ sudo  monocle-gateway  --tail 
                  
                   ******************************************************************
                   *             __  __  ___  _  _  ___   ___ _    ___              *
                   *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
                   *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
                   *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                   *                                                                *
                   ******************************************************************
                  
                  <<TAIL>> LOG FOR THE [MONOCLE-GATEWAY] SERVICE
                  -- Logs begin at Thu 2020-06-04 20:28:13 EDT. --
                  Jun 04 20:28:18 raspberrypi monocle-gateway[444]:  ******************************************************************
                  Jun 04 20:28:18 raspberrypi monocle-gateway[444]:  *             __  __  ___  _  _  ___   ___ _    ___              *
                  Jun 04 20:28:18 raspberrypi monocle-gateway[444]:  *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
                  Jun 04 20:28:18 raspberrypi monocle-gateway[444]:  *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
                  Jun 04 20:28:18 raspberrypi monocle-gateway[444]:  *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                  Jun 04 20:28:18 raspberrypi monocle-gateway[444]:  *                                                                *
                  Jun 04 20:28:18 raspberrypi monocle-gateway[444]:  ******************************************************************
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: MONOCLE RUNTIME ENVIRONMENT
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: VERSION   = 0.0.4
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: OS/ARCH   = linux/arm
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: PROCESS   = monocle-gateway (PID=444)
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: TIMESTAMP = 2020-06-05T00:28:19.677Z
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: MONOCLE GATEWAY SERVICE         (Version: 0.0.4)
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [Monocle Starting]
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [Monocle Connecting]
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [Monocle Started]
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [RTSP Server Starting]
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [RTSP Server Listening] 0.0.0.0:8555 (RTSP)
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [RTSP Server Listening] 0.0.0.0:443 (RTSP-TLS)
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [RTSP Proxy Started] (PID=546)
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [RTSP Server Listening] 0.0.0.0:8554 (PROXY)
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [RTSP Server Started]
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: 2020-06-05T00:28:19.793Z [ERROR] [Monocle Error] getaddrinfo EAI_AGAIN api.monoclecam.com:443
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [ '[Monocle Error]',
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]:   'getaddrinfo EAI_AGAIN api.monoclecam.com:443' ]
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [Monocle Disconnected]
                  Jun 04 20:28:19 raspberrypi monocle-gateway[444]: [Monocle Reconnecting] ... in 7 seconds (attempt #1)
                  Jun 04 20:28:26 raspberrypi monocle-gateway[444]: [Monocle Connecting]
                  Jun 04 20:28:26 raspberrypi monocle-gateway[444]: 2020-06-05T00:28:26.811Z [ERROR] [Monocle Error] getaddrinfo EAI_AGAIN api.monoclecam.com:443
                  Jun 04 20:28:26 raspberrypi monocle-gateway[444]: [ '[Monocle Error]',
                  Jun 04 20:28:26 raspberrypi monocle-gateway[444]:   'getaddrinfo EAI_AGAIN api.monoclecam.com:443' ]
                  Jun 04 20:28:26 raspberrypi monocle-gateway[444]: [Monocle Disconnected]
                  Jun 04 20:28:26 raspberrypi monocle-gateway[444]: [Monocle Reconnecting] ... in 10 seconds (attempt #2)
                  Jun 04 20:28:36 raspberrypi monocle-gateway[444]: [Monocle Connecting]
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: [Monocle Connected]
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: [RTSP Server Registered]
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: MONOCLE RTSP SERVICE - INITIALIZED
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: FQ
                  DN = d3060404-c9cf-4890-84ac-3cbb65168330.mproxy.io
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: HOST = 192.168.1.107
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: PORT = 443
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]: INITIALIZE RTSP STREAM:  Front Yard
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]:  - NAME  : Front Yard
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]:  - LABEL : PRIMARY
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]:  - URL   : rtsp://192.168.1.108:544/cam/realmonitor?channel=1&subtype=1
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]:  - UUID  : STREAM:96fe6e79-e8dc-48da-9002-7f650bc32ad2
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]:  - SESS  : 5d70c14e-8c3f-4423-9e30-442ac6e40a2b
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]:  - MODIF : Mon Jun 01 2020 11:08:08 GMT-0400 (EDT)
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]:  - TAGS  : @tunnel
                  Jun 04 20:39:21 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]: 2020-06-05T00:39:23.284Z [INFO]  [192.168.1.135:48170 <B1mrEGvhI>] RTSP CLIENT SOCKET CONNECTED
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]: 2020-06-05T00:39:23.406Z [INFO]  [192.168.1.135:48170 <B1mrEGvhI>] RTSP CLIENT ATTACHED TO STREAM: Front Yard (STREAM:96fe6e79-e8dc-48da-9002-7f650bc32ad2)
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]: 2020-06-05T00:39:23.425Z [ERROR] [192.168.1.135:48170 <B1mrEGvhI>] [RTSP ENDPOINT SOCKET ERROR] [192.168.1.135:48170 <B1mrEGvhI>] Error: connect ECONNREFUSED 192.168.1.108:544
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]: [ '[192.168.1.135:48170 <B1mrEGvhI>]',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:   '[RTSP ENDPOINT SOCKET ERROR]',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:   '[192.168.1.135:48170 <B1mrEGvhI>]',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:   { Error: connect ECONNREFUSED 192.168.1.108:544
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     at Object._errnoException (util.js:1031:13)
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     at _exceptionWithHostPort (util.js:1052:20)
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14)
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     errno: 'ECONNREFUSED',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     code: 'ECONNREFUSED',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     syscall: 'connect',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     address: '192.168.1.108',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     port: 544 } ]
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]: 2020-06-05T00:39:23.432Z [ERROR] PROXY ENDPOINT ERROR; Error: connect ECONNREFUSED 192.168.1.108:544
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]: [ 'PROXY ENDPOINT ERROR;',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:   { Error: connect ECONNREFUSED 192.168.1.108:544
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     at Object._errnoException (util.js:1031:13)
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     at _exceptionWithHostPort (util.js:1052:20)
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14)
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     errno: 'ECONNREFUSED',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     code: 'ECONNREFUSED',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     syscall: 'connect',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     address: '192.168.1.108',
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]:     port: 544 } ]
                  Jun 04 20:39:23 raspberrypi monocle-gateway[444]: 2020-06-05T00:39:23.434Z [INFO]  [192.168.1.135:48170 <B1mrEGvhI>] RTSP ENDPOINT SOCKET CLOSED [192.168.1.135:48170 <B1mrEGvhI>]
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]: 2020-06-05T00:39:45.379Z [DEBUG] [192.168.1.135:48170 <B1mrEGvhI>] [CLIENT REQUEST]  --> [TEARDOWN] rtsp://d3060404-c9cf-4890-84ac-3cbb65168330.mproxy.io:443/STREAM:96fe6e79-e8dc-48da-9002-7f650bc32ad2?session=5d70c14e-8c3f-4423-9e30-442ac6e40a2b
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]: 2020-06-05T00:39:45.379Z [TRACE] [192.168.1.135:48170 <B1mrEGvhI>] [CLIENT REQUEST]  --> [HEADERS] {
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]:   "session": "",
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]:   "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]:   "cseq": "2"
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]: }
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]: 2020-06-05T00:39:45.385Z [DEBUG] [192.168.1.135:48170 <B1mrEGvhI>] [ENDPOINT REQUEST]  --> [TEARDOWN] rtsp://d3060404-c9cf-4890-84ac-3cbb65168330.mproxy.io:443/STREAM:96fe6e79-e8dc-48da-9002-7f650bc32ad2?session=5d70c14e-8c3f-4423-9e30-442ac6e40a2b
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]: 2020-06-05T00:39:45.386Z [TRACE] [192.168.1.135:48170 <B1mrEGvhI>] [ENDPOINT REQUEST]  --> [HEADERS] {
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]:   "session": "",
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]:   "user-agent": "Fire OS/6.0 stagefright/1.2 (Linux;Android 7.1.2)",
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]:   "cseq": "2"
                  Jun 04 20:39:45 raspberrypi monocle-gateway[444]: }
                  Jun 04 20:40:15 raspberrypi monocle-gateway[444]: 2020-06-05T00:40:15.378Z [WARN]  [192.168.1.135:48170 <B1mrEGvhI>] RTSP CLIENT SOCKET TIMEOUT
                  Jun 04 20:40:15 raspberrypi monocle-gateway[444]: 2020-06-05T00:40:15.394Z [INFO]  [192.168.1.135:48170 <B1mrEGvhI>] RTSP CLIENT SOCKET CLOSED
                  Jun 04 20:40:15 raspberrypi monocle-gateway[444]: 2020-06-05T00:40:15.394Z [INFO]  [192.168.1.135:48170 <B1mrEGvhI>] RTSP CLIENT DETACHED FROM STREAM: Front Yard (STREAM:96fe6e79-e8dc-48da-9002-7f650bc32ad2)
                  
                  pi@raspberrypi:~ $ sudo  monocle-gateway  --status 
                  
                   ******************************************************************
                   *             __  __  ___  _  _  ___   ___ _    ___              *
                   *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
                   *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
                   *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                   *                                                                *
                   ******************************************************************
                  
                  GETTING <<STATUS>> FOR THE [MONOCLE-GATEWAY] SERVICE
                  ● monocle-gateway.service - Monocle Gateway Service
                     Loaded: loaded (/etc/systemd/system/monocle-gateway.service; enabled; vendor preset: enabled)
                     Active: active (running) since Thu 2020-06-04 20:28:17 EDT; 5min ago
                   Main PID: 444 (monocle-gateway)
                      Tasks: 10 (limit: 4915)
                     Memory: 50.0M
                     CGroup: /system.slice/monocle-gateway.service
                             ├─444 /usr/local/bin/monocle-gateway
                             └─546 /usr/local/bin/monocle-proxy -p 8554
                  
                  Jun 04 20:28:36 raspberrypi monocle-gateway[444]: [Monocle Connecting]
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: [Monocle Connected]
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: [RTSP Server Registered]
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: MONOCLE RTSP SERVICE - INITIALIZED
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: FQDN = d3060404-c9cf-4890-84ac-3cbb65168330.mproxy.io
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: HOST = 192.168.1.107
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: PORT = 443
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  pi@raspberrypi:~ $ sudo  monocle-gateway  --status 
                  
                   ******************************************************************
                   *             __  __  ___  _  _  ___   ___ _    ___              *
                   *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
                   *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
                   *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                   *                                                                *
                   ******************************************************************
                  GETTING <<STATUS>> FOR THE [MONOCLE-GATEWAY] SERVICE
                  ● monocle-gateway.service - Monocle Gateway Service
                     Loaded: loaded (/etc/systemd/system/monocle-gateway.service; enabled; vendor preset: enabled)
                     Active: active (running) since Thu 2020-06-04 20:28:17 EDT; 5min ago
                   Main PID: 444 (monocle-gateway)
                      Tasks: 10 (limit: 4915)
                     Memory: 50.0M
                     CGroup: /system.slice/monocle-gateway.service
                             ├─444 /usr/local/bin/monocle-gateway
                             └─546 /usr/local/bin/monocle-proxy -p 8554
                  
                  Jun 04 20:28:36 raspberrypi monocle-gateway[444]: [Monocle Connecting]
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: [Monocle Connected]
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: [RTSP Server Registered]
                  Jun 04 20:28:37 raspberrypi monocle-gateway[444]: -------------------------------------------------
                  
                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Privacy Policy  |  Terms & Conditions

                  © 2018 shadeBlue, LLC.