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

    Unknowed brand IPcam

    Other Manufacturers
    5
    97
    7708
    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.
    • Monocle
      Monocle @Tueftler last edited by

      @Tueftler

      Yes definitely looks better. At least we are getting past the DNS issue and the Alexa devices are now able to connect to the gateway and start a RTSP stream.

      So what the log is now showing is that the gateway is attempting to communicate with the IP camera at address: rtsp://192.168.2.102:554/user=admin&password=xxxccccc&channel=1&stream=1.sdp ; however, it’s not able to for some reason.

      If this the same result on all your cameras? You can also try @proxy-tcp instead of @tunnel, but if this is a networking issue, that won’t help. You mentioned that the IP cameras are on a separate router — can other devices/computers on the gateway/Alexa network talk to the IP cameras?

      Thanks, Robert

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

      1 Reply Last reply Reply Quote 0
      • T
        Tueftler last edited by

        I can connect the camera with all other device in my network from all Acesspoints, with the Smartphone with the Laptop and with Kodi on the Raspberry Pi.

        Only Alexa will not show the Stream.
        I have only one more iP cams but they don’t have a h264 stream

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

          @Tueftler

          OK, then try using @proxy or @proxy-tcp instead of @tunnel. In some rare cases, some camera’s don’t like our default RTSP client and these alternate tags will attempt to use another RTSP client implementation.

          Thanks, Robert

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

          1 Reply Last reply Reply Quote 0
          • T
            Tueftler last edited by Tueftler

            So some old news, I have seen my Cam on Alexa, but,

            I must start the Gateway with this command
            monocle-gateway

            If I start it like
            monocle-gateway --start

            Alexa can not connect

            Also if monocle-gateway --enable after reboot the Raspberry, Alexa can not connect.

            Also if I have startet the gateway with
            monocle-gateway
            Alexa can connect one time and show the live stream for CA 30 second then comes buffering and the connection close after this I must stop the gateway and start again with monocle-gateway.

            I must use the tag @proxy-tcp

            I hope this informations helps

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

              @Tueftler

              We can probably sort of the daemon issue and get it running as a background server. However, I think the more pressing issue is to get it running stable first while just running the executable directly from the shell/command line.

              Since you are using one of the @proxy* tags, you can also add @hangup in conjunction with @proxy-tcp. This has helped a few users with similar symptoms – cameras that would not reconnect after the first stream. The @hangup tag will make sure to fully shutdown the stream each time the network connection is closed. The default behavior for the proxy implementation is to try and hang on to the stream for a few minutes just in case of a subsequent request is made.

              Some cameras, like Reolink, don’t like it when you request the stream again immediately after the previous stream is terminated. These cameras will stream again if you wait about 5 minutes before requesting it again. I’m sure its some Alexa incompatibility issue, but it does come up with the Reolink cameras.

              As far as the initial stream timing out after 30 seconds, well – solving that may be more difficult. First, make sure to include the @noaudio tag just in case there is an audio channel in the stream. Some audio channels really cause issues with Alexa’s player. Next, you may have to play with your camera’s streaming video codec settings to see if you can find a combination that Alexa likes better. For example, try changing H.264 profiles (High, Standard, Baseline), try enabling/disabling H.264+ (if you camera support that), try lowering the resolution, bitrate, etc.

              Thanks, Robert

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

              1 Reply Last reply Reply Quote 0
              • D
                dieghito72 last edited by

                @Tueftler and @Monocle

                Thank you, I have a Setik NVR with a similar URL to access RTSP stream and I solved using Monocle gateway using @proxy-tcp.

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

                  So the problem with buffering after 30 seconds is away also that I can not reconnect without restart the gateway. So the tag @hangup is okay.

                  Yet I have only the problem that I must start the server with monocle-gateway

                  But if I close the Console the gateway stopps

                  The Autostart or with monocle-gateway --start
                  Alexa can not connect the camera

                  So I thing we have 80% for my happyness

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

                    @Tueftler

                    OK, lets try these command to try to UNINSTALL then REINSTALL the daemon config with systemd on Raspbian:

                    sudo monocle-gateway --uninstall
                    sudo monocle-gateway --install
                    sudo monocle-gateway --restart
                    

                    Are you using the latest Raspbian Buster distribution?

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

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tueftler last edited by

                      No on this server is not running buster on this one is running the last Jessy version

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

                        @Tueftler

                        Well, Jesse should have systemd, so it “should” work. Wheezy however, may not.
                        Try the commands posted to reinstall the service/daemon and see what we get.

                        Thanks, Robert

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

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tueftler last edited by

                          Okay I have done but I can test it in nearly one hour. I am just not at home.

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tueftler last edited by

                            okay i am at home,

                            after a reebot from the Raspberry a monocle-gateway --status shows this…

                            
                            Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                            permitted by applicable law.
                            Last login: Fri Aug  2 18:18:35 2019 from 192.168.2.87
                            root@FhemServer:~# 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 Fri 2019-08-02 18:26:46 CEST; 2min 35s ago
                             Main PID: 412 (monocle-gateway)
                               CGroup: /system.slice/monocle-gateway.service
                                       ├─412 /usr/local/bin/monocle-gateway
                                       └─660 /usr/local/bin/monocle-proxy -p 8554
                            
                            Aug 02 18:27:03 FhemServer monocle-gateway[412]: [Monocle Connecting]
                            
                            Aug 02 18:27:04 FhemServer monocle-gateway[412]: [Monocle Connected]
                            Aug 02 18:27:04 FhemServer monocle-gateway[412]: [RTSP Server Registered]
                            Aug 02 18:27:04 FhemServer monocle-gateway[412]: -------------------------------------------------
                            Aug 02 18:27:04 FhemServer monocle-gateway[412]: MONOCLE RTSP SERVICE - INITIALIZED
                            Aug 02 18:27:04 FhemServer monocle-gateway[412]: -------------------------------------------------
                            Aug 02 18:27:04 FhemServer monocle-gateway[412]: FQDN = 9dd28fe1-40f2-4459-805d-daa62fdc6ff5.mproxy.io
                            Aug 02 18:27:04 FhemServer monocle-gateway[412]: HOST = 192.168.2.172
                            Aug 02 18:27:04 FhemServer monocle-gateway[412]: PORT = 443
                            Aug 02 18:27:04 FhemServer monocle-gateway[412]: -------------------------------------------------
                            
                            root@FhemServer:~#
                            
                            

                            bus if i say to Alexa show me Garden, she talk to me the Camera is not respons.

                            then i start gateway like monocle-gateway and Alexa can connect and show me the livestream

                            root@FhemServer:~# monocle-gateway
                            
                             ******************************************************************
                             *             __  __  ___  _  _  ___   ___ _    ___              *
                             *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
                             *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
                             *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                             *                                                                *
                             ******************************************************************
                            
                            
                            -------------------------------------------------
                            MONOCLE RUNTIME ENVIRONMENT
                            -------------------------------------------------
                            VERSION   = 0.0.4-1
                            OS/ARCH   = linux/arm
                            PROCESS   = monocle-gateway (PID=1473)
                            TIMESTAMP = 2019-08-02T16:33:08.865Z
                            
                            -------------------------------------------------
                            MONOCLE GATEWAY SERVICE         (Version: 0.0.4-1)
                            -------------------------------------------------
                            [Monocle Starting]
                            [Monocle Connecting]
                            [Monocle Started]
                            [RTSP Server Starting]
                            [RTSP Server Listening] 0.0.0.0:8555 (RTSP)
                            [RTSP Server Listening] 0.0.0.0:443 (RTSP-TLS)
                            [RTSP Proxy Started] (PID=1482)
                            [RTSP Server Listening] 0.0.0.0:8554 (PROXY)
                            [RTSP Server Started]
                            [Monocle Connected]
                            [RTSP Server Registered]
                            
                            -------------------------------------------------
                            MONOCLE RTSP SERVICE - INITIALIZED
                            -------------------------------------------------
                            FQDN = 9dd28fe1-40f2-4459-805d-daa62fdc6ff5.mproxy.io
                            HOST = 192.168.2.172
                            PORT = 443
                            -------------------------------------------------
                            
                            -------------------------------------------------
                            INITIALIZE RTSP STREAM:  Garten
                            -------------------------------------------------
                             - NAME  : Garten
                             - LABEL : PRIMARY
                             - URL   : rtsp://192.168.2.102:554/user=admin&password=xxxxxxxx&channel=1&stream=1.sdp
                             - UUID  : STREAM:df443cff-97a9-45ac-a21d-9768d4674f63
                             - SESS  : fccfd68e-4f40-491d-9a1f-562fe6e01043
                             - MODIF : Fri Aug 02 2019 15:46:47 GMT+0200 (GMT+02:00)
                             - TAGS  : @hangup,@proxy-tcp
                            -------------------------------------------------
                            
                            2019-08-02T16:33:18.238Z [INFO]  [RTSP PROXY] REGISTERING STREAM [Garten/PRIMARY]; (STREAM:df443cff-97a9-45ac-a21d-9768d4674f63)
                            2019-08-02T16:33:18.281Z [DEBUG] <RTSP-PROXY> [REQUEST]  --> [REGISTER] rtsp://192.168.2.102:554/user=admin&password=xxxxxxxx&channel=1&stream=1.sdp
                            2019-08-02T16:33:18.282Z [TRACE] <RTSP-PROXY> [REQUEST]  --> [HEADERS] {
                              "cseq": "1",
                              "transport": "reuse_connection=0;preferred_delivery_protocol=interleaved;proxy_url_suffix=STREAM:df443cff-97a9-45ac-a21d-9768d4674f63"
                            }
                            2019-08-02T16:33:18.289Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
                            2019-08-02T16:33:18.291Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] {
                              "cseq": "1",
                              "date": "Fri, Aug 02 2019 16:33:18 GMT"
                            }
                            2019-08-02T16:33:19.711Z [INFO]  [192.168.2.50:36324 <B1OArkzXB>] RTSP CLIENT SOCKET CONNECTED
                            2019-08-02T16:33:19.833Z [INFO]  [192.168.2.50:36324 <B1OArkzXB>] RTSP CLIENT ATTACHED TO STREAM: Garten (STREAM:df443cff-97a9-45ac-a21d-9768d4674f63)
                            2019-08-02T16:33:19.844Z [INFO]  [192.168.2.50:36324 <B1OArkzXB>] RTSP ENDPOINT SOCKET CONNECTED {127.0.0.1:8554}
                            2019-08-02T16:33:19.848Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT REQUEST]  --> [DESCRIBE] rtsp://9dd28fe1-40f2-4459-805d-daa62fdc6ff5.mproxy.io:443/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63?session=fccfd68e-4f40-491d-9a1f-562fe6e01043
                            2019-08-02T16:33:19.848Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT REQUEST]  --> [HEADERS] {
                              "accept": "application/sdp",
                              "user-agent": "stagefright/1.2 (Linux;Android 5.1.1)",
                              "cseq": "1"
                            }
                            2019-08-02T16:33:19.856Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT REQUEST]  --> [DESCRIBE] rtsp://9dd28fe1-40f2-4459-805d-daa62fdc6ff5.mproxy.io:443/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63
                            2019-08-02T16:33:19.856Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT REQUEST]  --> [HEADERS] {
                              "accept": "application/sdp",
                              "user-agent": "stagefright/1.2 (Linux;Android 5.1.1)",
                              "cseq": "1"
                            }
                            2019-08-02T16:33:19.866Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
                            2019-08-02T16:33:19.867Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT RESPONSE] <-- [HEADERS] {
                              "cseq": "1",
                              "date": "Fri, Aug 02 2019 16:33:19 GMT",
                              "content-base": "rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/",
                              "content-type": "application/sdp",
                              "content-length": "632"
                            }
                            2019-08-02T16:33:19.869Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT RESPONSE] <-- [BODY]
                             v=0
                            o=- 1564763598275594 1 IN IP4 192.168.2.172
                            s=LIVE555 Streaming Media v2018.04.25
                            i=LIVE555 Streaming Media v2018.04.25
                            t=0 0
                            a=tool:LIVE555 Streaming Media v2018.04.25
                            a=type:broadcast
                            a=control:*
                            a=range:npt=0-
                            a=x-qt-text-nam:LIVE555 Streaming Media v2018.04.25
                            a=x-qt-text-inf:LIVE555 Streaming Media v2018.04.25
                            m=video 0 RTP/AVP 96
                            c=IN IP4 0.0.0.0
                            b=AS:50
                            a=rtpmap:96 H264/90000
                            a=fmtp:96 packetization-mode=1;profile-level-id=4D001F;sprop-parameter-sets=J00AH41qCgL/lhAAAAMAEAAAAwHoQA==,KO4JyA==
                            a=control:track1
                            m=audio 0 RTP/AVP 97
                            c=IN IP4 0.0.0.0
                            b=AS:50
                            a=rtpmap:97 PCMA/8000
                            a=control:track2
                            
                            2019-08-02T16:33:19.870Z [INFO]  [192.168.2.50:36324 <B1OArkzXB>] RTSP ENDPOINT AUTHENTICATION SUCCESSFUL: NONE
                            2019-08-02T16:33:19.899Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
                            2019-08-02T16:33:19.900Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT RESPONSE] <-- [HEADERS] {
                              "cseq": "1",
                              "date": "Fri, Aug 02 2019 16:33:19 GMT",
                              "content-base": "rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/",
                              "content-type": "application/sdp",
                              "content-length": "632"
                            }
                            2019-08-02T16:33:19.904Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT RESPONSE] <-- [BODY]
                             v=0
                            o=- 1564763598275594 1 IN IP4 192.168.2.172
                            s=LIVE555 Streaming Media v2018.04.25
                            i=LIVE555 Streaming Media v2018.04.25
                            t=0 0
                            a=control:*
                            a=tool:LIVE555 Streaming Media v2018.04.25
                            a=type:broadcast
                            a=range:npt=0-
                            a=x-qt-text-nam:LIVE555 Streaming Media v2018.04.25
                            a=x-qt-text-inf:LIVE555 Streaming Media v2018.04.25
                            m=video 0 RTP/AVP 96
                            c=IN IP4 0.0.0.0
                            b=AS:50
                            a=rtpmap:96 H264/90000
                            a=fmtp:96 packetization-mode=1;profile-level-id=4D001F;sprop-parameter-sets=J00AH41qCgL/lhAAAAMAEAAAAwHoQA==,KO4JyA==
                            a=control:track1
                            m=audio 0 RTP/AVP 97
                            c=IN IP4 0.0.0.0
                            b=AS:50
                            a=rtpmap:97 PCMA/8000
                            a=control:track2
                            
                            2019-08-02T16:33:19.951Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT REQUEST]  --> [SETUP] rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/track1
                            2019-08-02T16:33:19.952Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT REQUEST]  --> [HEADERS] {
                              "transport": "RTP/AVP/TCP;interleaved=0-1",
                              "user-agent": "stagefright/1.2 (Linux;Android 5.1.1)",
                              "cseq": "2"
                            }
                            2019-08-02T16:33:19.955Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT REQUEST]  --> [SETUP] rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/track1
                            2019-08-02T16:33:19.956Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT REQUEST]  --> [HEADERS] {
                              "transport": "RTP/AVP/TCP;interleaved=0-1",
                              "user-agent": "stagefright/1.2 (Linux;Android 5.1.1)",
                              "cseq": "2"
                            }
                            2019-08-02T16:33:19.999Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=2> (session=50BDBEEF;timeout=65)
                            2019-08-02T16:33:19.999Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT RESPONSE] <-- [HEADERS] {
                              "cseq": "2",
                              "date": "Fri, Aug 02 2019 16:33:19 GMT",
                              "transport": "RTP/AVP/TCP;unicast;destination=127.0.0.1;source=127.0.0.1;interleaved=0-1",
                              "session": "50BDBEEF;timeout=65"
                            }
                            2019-08-02T16:33:20.003Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=2> (session=50BDBEEF;timeout=65)
                            2019-08-02T16:33:20.004Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT RESPONSE] <-- [HEADERS] {
                              "cseq": "2",
                              "date": "Fri, Aug 02 2019 16:33:19 GMT",
                              "transport": "RTP/AVP/TCP;unicast;destination=127.0.0.1;source=127.0.0.1;interleaved=0-1",
                              "session": "50BDBEEF;timeout=65"
                            }
                            2019-08-02T16:33:20.016Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT REQUEST]  --> [SETUP] rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/track2
                            2019-08-02T16:33:20.017Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT REQUEST]  --> [HEADERS] {
                              "transport": "RTP/AVP/TCP;interleaved=2-3",
                              "session": "50BDBEEF",
                              "user-agent": "stagefright/1.2 (Linux;Android 5.1.1)",
                              "cseq": "3"
                            }
                            2019-08-02T16:33:20.021Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT REQUEST]  --> [SETUP] rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/track2
                            2019-08-02T16:33:20.022Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT REQUEST]  --> [HEADERS] {
                              "transport": "RTP/AVP/TCP;interleaved=2-3",
                              "session": "50BDBEEF",
                              "user-agent": "stagefright/1.2 (Linux;Android 5.1.1)",
                              "cseq": "3"
                            }
                            2019-08-02T16:33:20.069Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=3> (session=50BDBEEF;timeout=65)
                            2019-08-02T16:33:20.069Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT RESPONSE] <-- [HEADERS] {
                              "cseq": "3",
                              "date": "Fri, Aug 02 2019 16:33:20 GMT",
                              "transport": "RTP/AVP/TCP;unicast;destination=127.0.0.1;source=127.0.0.1;interleaved=2-3",
                              "session": "50BDBEEF;timeout=65"
                            }
                            2019-08-02T16:33:20.072Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=3> (session=50BDBEEF;timeout=65)
                            2019-08-02T16:33:20.073Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT RESPONSE] <-- [HEADERS] {
                              "cseq": "3",
                              "date": "Fri, Aug 02 2019 16:33:20 GMT",
                              "transport": "RTP/AVP/TCP;unicast;destination=127.0.0.1;source=127.0.0.1;interleaved=2-3",
                              "session": "50BDBEEF;timeout=65"
                            }
                            2019-08-02T16:33:20.119Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT REQUEST]  --> [PLAY] rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/
                            2019-08-02T16:33:20.119Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT REQUEST]  --> [HEADERS] {
                              "session": "50BDBEEF",
                              "user-agent": "stagefright/1.2 (Linux;Android 5.1.1)",
                              "cseq": "4"
                            }
                            2019-08-02T16:33:20.122Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT REQUEST]  --> [PLAY] rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/
                            2019-08-02T16:33:20.123Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT REQUEST]  --> [HEADERS] {
                              "session": "50BDBEEF",
                              "user-agent": "stagefright/1.2 (Linux;Android 5.1.1)",
                              "cseq": "4"
                            }
                            2019-08-02T16:33:20.169Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT RESPONSE] <-- [200 (OK)] <cseq=4> (session=50BDBEEF)
                            2019-08-02T16:33:20.169Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [ENDPOINT RESPONSE] <-- [HEADERS] {
                              "cseq": "4",
                              "date": "Fri, Aug 02 2019 16:33:20 GMT",
                              "range": "npt=0.000-",
                              "session": "50BDBEEF",
                              "rtp-info": "url=rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/track1;seq=44074;rtptime=2658973960,url=rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/track2;seq=60311;rtptime=3256570573"
                            }
                            2019-08-02T16:33:20.173Z [DEBUG] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT RESPONSE] <-- [200 (OK)] <cseq=4> (session=50BDBEEF)
                            2019-08-02T16:33:20.173Z [TRACE] [192.168.2.50:36324 <B1OArkzXB>] [CLIENT RESPONSE] <-- [HEADERS] {
                              "cseq": "4",
                              "date": "Fri, Aug 02 2019 16:33:20 GMT",
                              "range": "npt=0.000-",
                              "session": "50BDBEEF",
                              "rtp-info": "url=rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/track1;seq=44074;rtptime=2658973960,url=rtsp://127.0.0.1:8554/STREAM:df443cff-97a9-45ac-a21d-9768d4674f63/track2;seq=60311;rtptime=3256570573"
                            }
                            2019-08-02T16:33:20.175Z [INFO]  [192.168.2.50:36324 <B1OArkzXB>] RTSP ENDPOINT PLAYING MEDIA STREAM: Garten (STREAM:df443cff-97a9-45ac-a21d-9768d4674f63)
                            2019-08-02T16:33:20.176Z [INFO]  [192.168.2.50:36324 <B1OArkzXB>] RTSP CLIENT PLAYING MEDIA STREAM: Garten (STREAM:df443cff-97a9-45ac-a21d-9768d4674f63)
                            ^C2019-08-02T16:34:16.450Z [INFO]  [192.168.2.50:36324 <B1OArkzXB>] RTSP ENDPOINT SOCKET CLOSED [192.168.2.50:36324 <B1OArkzXB>]
                            [RTSP Server Stopping]
                            [RTSP Server Stopped]
                            [Monocle Stopping]
                            [Monocle Stopped]
                            [RTSP Proxy Stopped] CODE=0; SIGNAL=SIGINT
                            2019-08-02T16:34:16.472Z [INFO]  [192.168.2.50:36324 <B1OArkzXB>] RTSP CLIENT SOCKET CLOSED
                            2019-08-02T16:34:16.473Z [INFO]  [192.168.2.50:36324 <B1OArkzXB>] RTSP CLIENT DETACHED FROM STREAM: Garten (STREAM:df443cff-97a9-45ac-a21d-9768d4674f63)
                            2019-08-02T16:34:16.474Z [INFO]  [RTSP PROXY] DE-REGISTERING STREAM [Garten/PRIMARY]; NO LONGER IN USE
                            2019-08-02T16:34:16.481Z [ERROR] Uncaught Exception connect ECONNREFUSED 127.0.0.1:8554
                            [ 'Uncaught Exception', 'connect ECONNREFUSED 127.0.0.1:8554' ]
                            2019-08-02T16:34:16.489Z [ERROR] Error: connect ECONNREFUSED 127.0.0.1:8554
                            [ { Error: connect ECONNREFUSED 127.0.0.1:8554
                                  at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1158:14)
                                errno: 'ECONNREFUSED',
                                code: 'ECONNREFUSED',
                                syscall: 'connect',
                                address: '127.0.0.1',
                                port: 8554 } ]
                            
                            
                            Monocle 1 Reply Last reply Reply Quote 0
                            • Monocle
                              Monocle @Tueftler last edited by

                              @Tueftler said in Unknowed brand IPcam:

                              monocle-gateway --status

                              OK, we are no seeing enough data in the “–status” example. Lets do this:

                              stop your independent instance of “monocle-gateway”.

                              Lets restart the service/daemon:

                              monocle-gateway --restart
                              

                              Now start tailing the log file so you can watch all new log records that come in:

                              monocle-gateway --tail
                              

                              Now, ask Alexa to show you the camera stream.

                              Finally, post the output from the log file from the point where the service was restarted to the end of the camera streaming request/failure.
                              I want to see the startup part for the daemon/service just in case something is failing immediately on startup.

                              Thanks, Robert

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

                              1 Reply Last reply Reply Quote 0
                              • T
                                Tueftler last edited by Tueftler

                                okay i have done here the result

                                root@FhemServer:~# monocle-gateway --restart
                                
                                 ******************************************************************
                                 *             __  __  ___  _  _  ___   ___ _    ___              *
                                 *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
                                 *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
                                 *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                                 *                                                                *
                                 ******************************************************************
                                
                                <<RESTARTING>> 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 Sat 2019-08-03 13:51:05 CEST; 53ms ago
                                 Main PID: 7948 (monocle-gateway)
                                   CGroup: /system.slice/monocle-gateway.service
                                           └─7948 /usr/local/bin/monocle-gateway
                                
                                Aug 03 13:51:05 FhemServer systemd[1]: Started Monocle Gateway Service.
                                
                                root@FhemServer:~# monocle-gateway --tail
                                
                                 ******************************************************************
                                 *             __  __  ___  _  _  ___   ___ _    ___              *
                                 *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
                                 *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
                                 *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                                 *                                                                *
                                 ******************************************************************
                                
                                <<TAIL>> LOG FOR THE [MONOCLE-GATEWAY] SERVICE
                                -- Logs begin at Thu 2016-11-03 18:16:43 CET. --
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]:  - MODIF : Fri Aug 02 2019 15:46:47 GMT+0200 (GMT+02:00)
                                
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]:  - TAGS  : @hangup,@proxy-tcp
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]: -------------------------------------------------
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]: 2019-08-03T11:46:42.943Z [INFO]  [RTSP PROXY] REGISTERING STREAM [Garten/PRIMARY]; (STREAM:df443cff-97a9-45ac-a21d-9768d4674f63)
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]: 2019-08-03T11:46:42.961Z [DEBUG] <RTSP-PROXY> [REQUEST]  --> [REGISTER] rtsp://192.168.2.102:554/user=admin&password=xxxxxxxx&channel=1&stream=1.sdp
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]: 2019-08-03T11:46:42.961Z [TRACE] <RTSP-PROXY> [REQUEST]  --> [HEADERS] {
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]:   "cseq": "1",
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]:   "transport": "reuse_connection=0;preferred_delivery_protocol=interleaved;proxy_url_suffix=STREAM:df443cff-97a9-45ac-a21d-9768d4674f63"
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]: }
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]: 2019-08-03T11:46:42.965Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]: 2019-08-03T11:46:42.966Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] {
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]:   "cseq": "1",
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]:   "date": "Sat, Aug 03 2019 11:46:42 GMT"
                                Aug 03 13:46:42 FhemServer monocle-gateway[7849]: }
                                Aug 03 13:46:44 FhemServer monocle-gateway[7849]: -------------------------------------------------
                                Aug 03 13:46:44 FhemServer monocle-gateway[7849]: INITIALIZE RTSP STREAM:  Garten
                                Aug 03 13:46:44 FhemServer monocle-gateway[7849]: -------------------------------------------------
                                Aug 03 13:46:44 FhemServer monocle-gateway[7849]:  - NAME  : Garten
                                Aug 03 13:46:44 FhemServer monocle-gateway[7849]:  - LABEL : PRIMARY
                                Aug 03 13:46:44 FhemServer monocle-gateway[7849]:  - URL   : rtsp://192.168.2.102:554/user=admin&password=xxxxxxxx&channel=1&stream=1.sdp
                                Aug 03 13:46:44 FhemServer monocle-gateway[7849]:  - UUID  : STREAM:df443cff-97a9-45ac-a21d-9768d4674f63
                                Aug 03 13:46:44 FhemServer monocle-gateway[7849]:  - SESS  : 1b855079-672f-4e8b-9bf0-4cbe62ca6538
                                Aug 03 13:46:44 FhemServer monocle-gateway[7849]:  - MODIF : Fri Aug 02 2019 15:46:47 GMT+0200 (GMT+02:00)
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]:  - TAGS  : @hangup,@proxy-tcp
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]: -------------------------------------------------
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]: -------------------------------------------------
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]: INITIALIZE RTSP STREAM:  Garten
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]: -------------------------------------------------
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]:  - NAME  : Garten
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]:  - LABEL : PRIMARY
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]:  - URL   : rtsp://192.168.2.102:554/user=admin&password=xxxxxxxx&channel=1&stream=1.sdp
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]:  - UUID  : STREAM:df443cff-97a9-45ac-a21d-9768d4674f63
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]:  - SESS  : cd171ddb-2a0c-44f7-931e-c1b45c341f4e
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]:  - MODIF : Fri Aug 02 2019 15:46:47 GMT+0200 (GMT+02:00)
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]:  - TAGS  : @hangup,@proxy-tcp
                                Aug 03 13:46:45 FhemServer monocle-gateway[7849]: -------------------------------------------------
                                Aug 03 13:47:13 FhemServer monocle-gateway[7849]: 2019-08-03T11:47:13.744Z [INFO]  [RTSP PROXY] STREAM [Garten/PRIMARY] WILL BE DE-REGISTERED IN 4 MINUTES
                                Aug 03 13:48:13 FhemServer monocle-gateway[7849]: 2019-08-03T11:48:13.802Z [INFO]  [RTSP PROXY] STREAM [Garten/PRIMARY] WILL BE DE-REGISTERED IN 3 MINUTES
                                Aug 03 13:49:13 FhemServer monocle-gateway[7849]: 2019-08-03T11:49:13.861Z [INFO]  [RTSP PROXY] STREAM [Garten/PRIMARY] WILL BE DE-REGISTERED IN 2 MINUTES
                                Aug 03 13:50:13 FhemServer monocle-gateway[7849]: 2019-08-03T11:50:13.921Z [INFO]  [RTSP PROXY] STREAM [Garten/PRIMARY] WILL BE DE-REGISTERED IN 1 MINUTES
                                Aug 03 13:51:05 FhemServer monocle-gateway[7849]: [RTSP Server Stopping]
                                Aug 03 13:51:05 FhemServer systemd[1]: Stopping Monocle Gateway Service...
                                Aug 03 13:51:05 FhemServer monocle-gateway[7849]: [RTSP Server Stopped]
                                Aug 03 13:51:05 FhemServer monocle-gateway[7849]: [Monocle Stopping]
                                Aug 03 13:51:05 FhemServer monocle-gateway[7849]: [Monocle Stopped]
                                Aug 03 13:51:05 FhemServer monocle-gateway[7849]: [RTSP Proxy Stopped] CODE=0; SIGNAL=SIGTERM
                                Aug 03 13:51:05 FhemServer systemd[1]: Stopped Monocle Gateway Service.
                                Aug 03 13:51:05 FhemServer systemd[1]: Started Monocle Gateway Service.
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]:  ******************************************************************
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]:  *             __  __  ___  _  _  ___   ___ _    ___              *
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]:  *            |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]:  *            | |\/| | (_) | .` | (_) | (__| |__| _|              *
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]:  *            |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]:  *                                                                *
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]:  ******************************************************************
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: MONOCLE RUNTIME ENVIRONMENT
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: VERSION   = 0.0.4-1
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: OS/ARCH   = linux/arm
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: PROCESS   = monocle-gateway (PID=7948)
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: TIMESTAMP = 2019-08-03T11:51:06.973Z
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: MONOCLE GATEWAY SERVICE         (Version: 0.0.4-1)
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: [Monocle Starting]
                                Aug 03 13:51:06 FhemServer monocle-gateway[7948]: [Monocle Connecting]
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [Monocle Started]
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [RTSP Server Starting]
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [RTSP Server Listening] 0.0.0.0:8555 (RTSP)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [RTSP Server Listening] 0.0.0.0:443 (RTSP-TLS)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [RTSP Proxy Started] (PID=7959)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [RTSP Server Listening] 0.0.0.0:8554 (PROXY)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [RTSP Server Started]
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: 2019-08-03T11:51:07.090Z [ERROR] [PROXY SERVER ERROR] Error: listen EACCES 0.0.0.0:443
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [ '[PROXY SERVER ERROR]',
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:   { Error: listen EACCES 0.0.0.0:443
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:       at Server.setupListenHandle [as _listen2] (net.js:1310:19)
                                
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:       at listenInCluster (net.js:1375:12)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:       at doListen (net.js:1501:7)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:       at process._tickCallback (internal/process/next_tick.js:63:19)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:       at Function.Module.runMain (pkg/prelude/bootstrap.js:1315:13)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:       at startup (internal/bootstrap/node.js:274:19)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:       at bootstrapNodeJSCore (internal/bootstrap/node.js:608:3)
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:     errno: 'EACCES',
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:     code: 'EACCES',
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:     syscall: 'listen',
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:     address: '0.0.0.0',
                                
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]:     port: 443 } ]
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: 2019-08-03T11:51:07.104Z [ERROR] [RTSP Server Error] listen EACCES 0.0.0.0:443
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [ '[RTSP Server Error]', 'listen EACCES 0.0.0.0:443' ]
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [Monocle Connected]
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [RTSP Server Registered]
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: MONOCLE RTSP SERVICE - INITIALIZED
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: FQDN = 9dd28fe1-40f2-4459-805d-daa62fdc6ff5.mproxy.io
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: HOST = 192.168.2.172
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: PORT = 443
                                Aug 03 13:51:07 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: INITIALIZE RTSP STREAM:  Garten
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:  - NAME  : Garten
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:  - LABEL : PRIMARY
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:  - URL   : rtsp://192.168.2.102:554/user=admin&password=xxxxxxxxxxx&channel=1&stream=1.sdp
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:  - UUID  : STREAM:df443cff-97a9-45ac-a21d-9768d4674f63
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:  - SESS  : 6d95feeb-81fc-45c6-8dfa-59a8e864bdc3
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:  - MODIF : Fri Aug 02 2019 15:46:47 GMT+0200 (GMT+02:00)
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:  - TAGS  : @hangup,@proxy-tcp
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: 2019-08-03T11:51:20.832Z [INFO]  [RTSP PROXY] REGISTERING STREAM [Garten/PRIMARY]; (STREAM:df443cff-97a9-45ac-a21d-9768d4674f63)
                                
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: 2019-08-03T11:51:20.849Z [DEBUG] <RTSP-PROXY> [REQUEST]  --> [REGISTER] rtsp://192.168.2.102:554/user=admin&password=xxxxxxxxx&channel=1&stream=1.sdp
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: 2019-08-03T11:51:20.849Z [TRACE] <RTSP-PROXY> [REQUEST]  --> [HEADERS] {
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:   "cseq": "1",
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:   "transport": "reuse_connection=0;preferred_delivery_protocol=interleaved;proxy_url_suffix=STREAM:df443cff-97a9-45ac-a21d-9768d4674f63"
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: }
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: 2019-08-03T11:51:20.853Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined)
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: 2019-08-03T11:51:20.854Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] {
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:   "cseq": "1",
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]:   "date": "Sat, Aug 03 2019 11:51:20 GMT"
                                Aug 03 13:51:20 FhemServer monocle-gateway[7948]: }
                                
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]: INITIALIZE RTSP STREAM:  Garten
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]:  - NAME  : Garten
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]:  - LABEL : PRIMARY
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]:  - URL   : rtsp://192.168.2.102:554/user=admin&password=xxxxxxxxxx&channel=1&stream=1.sdp
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]:  - UUID  : STREAM:df443cff-97a9-45ac-a21d-9768d4674f63
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]:  - SESS  : c0e72f49-5c9f-4577-9869-6532a3c07ba8
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]:  - MODIF : Fri Aug 02 2019 15:46:47 GMT+0200 (GMT+02:00)
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]:  - TAGS  : @hangup,@proxy-tcp
                                Aug 03 13:51:23 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]: INITIALIZE RTSP STREAM:  Garten
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]:  - NAME  : Garten
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]:  - LABEL : PRIMARY
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]:  - URL   : rtsp://192.168.2.102:554/user=admin&password=xxxxxxx&channel=1&stream=1.sdp
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]:  - UUID  : STREAM:df443cff-97a9-45ac-a21d-9768d4674f63
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]:  - SESS  : b1aa4b49-3d2d-498a-8ae9-0654a4281369
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]:  - MODIF : Fri Aug 02 2019 15:46:47 GMT+0200 (GMT+02:00)
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]:  - TAGS  : @hangup,@proxy-tcp
                                Aug 03 13:51:24 FhemServer monocle-gateway[7948]: -------------------------------------------------
                                
                                ^C
                                
                                
                                Monocle 1 Reply Last reply Reply Quote 0
                                • Monocle
                                  Monocle @Tueftler last edited by

                                  @Tueftler

                                  OK, if you start at the bottom of that log and scroll up until you find where the service is started, you will see this error:

                                  Aug 03 13:51:07 FhemServer monocle-gateway[7948]: 2019-08-03T11:51:07.090Z [ERROR] [PROXY SERVER ERROR] Error: listen EACCES 0.0.0.0:443
                                  Aug 03 13:51:07 FhemServer monocle-gateway[7948]: [ '[PROXY SERVER ERROR]',
                                  Aug 03 13:51:07 FhemServer monocle-gateway[7948]:   { Error: listen EACCES 0.0.0.0:443
                                  Aug 03 13:51:07 FhemServer monocle-gateway[7948]:       at Server.setupListenHandle [as _listen2] (net.js:1310:19)
                                  
                                  

                                  That is the primary issue. The Monocle Gateway is unable to listen on port 443. This could be a permissions issue or could be that something else is using port 443. Since the gateway seems to work fine running in stand-alone mode, its probably a permissions issue. However, lets rule out the port already in use first with a simple check.

                                  First make sure to stop the service using this command:

                                  monocle-gateway --stop
                                  

                                  Then check for anything else LISTENING on port 443.
                                  You can check to see what processes are already using port 443 using the following command:
                                  (ref: https://www.cyberciti.biz/faq/unix-linux-check-if-port-is-in-use-command/)

                                  $ sudo lsof -i -P -n | grep LISTEN
                                  
                                  uv4l       334    root    4u  IPv4  13349      0t0  TCP *:8080 (LISTEN)
                                  sshd       463    root    3u  IPv4  11156      0t0  TCP *:22 (LISTEN)
                                  sshd       463    root    4u  IPv6  11158      0t0  TCP *:22 (LISTEN)
                                  monocle-g  759 monocle   13u  IPv4 489943      0t0  TCP *:8555 (LISTEN)
                                  monocle-g  759 monocle   15u  IPv4 489944      0t0  TCP *:443 (LISTEN)
                                  monocle-p  774 monocle    3u  IPv4 495953      0t0  TCP *:8554 (LISTEN)
                                  

                                  I’m expecting that there will be no other processes listening on port 443. If that is the case, we can start looking into a permissions related issue.

                                  Thanks, Robert

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

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Tueftler last edited by

                                    So there is nothing listing on Port 443

                                    I thing it is a permission probleme because if I start it with monocle-gateway without any options it works.

                                    
                                    root@FhemServer:~# sudo lsof -i -P -n | grep LISTEN
                                    java       397  root   18u  IPv6  15321      0t0  TCP *:8080 (LISTEN)
                                    vncserver  440  root   11u  IPv6  13164      0t0  TCP *:5900 (LISTEN)
                                    vncserver  440  root   12u  IPv4  13165      0t0  TCP *:5900 (LISTEN)
                                    sshd       458  root    3u  IPv4  14437      0t0  TCP *:22 (LISTEN)sshd       458  root    4u  IPv6  12894      0t0  TCP *:22 (LISTEN)pilight-d  519  root   10u  IPv4  13152      0t0  TCP *:5000 (LISTEN)
                                    pilight-d  519  root   14u  IPv4  12091      0t0  TCP *:5002 (LISTEN)
                                    pilight-d  519  root   15u  IPv4  12092      0t0  TCP *:5001 (LISTEN)
                                    perl       544  fhem    5u  IPv4  12111      0t0  TCP *:7072 (LISTEN)
                                    perl       544  fhem    6u  IPv4  14749      0t0  TCP *:8083 (LISTEN)
                                    perl       544  fhem    7u  IPv4  13723      0t0  TCP *:8084 (LISTEN)
                                    perl       544  fhem    8u  IPv4  13724      0t0  TCP *:8085 (LISTEN)
                                    perl       544  fhem   10u  IPv4  14752      0t0  TCP *:8091 (LISTEN)
                                    perl       544  fhem   15u  IPv4  15213      0t0  TCP *:9999 (LISTEN)
                                    perl       544  fhem   16u  IPv4  14227      0t0  TCP *:8090 (LISTEN)
                                    perl       544  fhem   17u  IPv4  17086      0t0  TCP *:8081 (LISTEN)
                                    perl       544  fhem   18u  IPv4  14249      0t0  TCP *:1883 (LISTEN)
                                    perl       544  fhem   33u  IPv4  17363      0t0  TCP *:8383 (LISTEN)
                                    smbd       708  root   33u  IPv6  15565      0t0  TCP *:445 (LISTEN)
                                    smbd       708  root   34u  IPv6  15566      0t0  TCP *:139 (LISTEN)
                                    smbd       708  root   35u  IPv4  15567      0t0  TCP *:445 (LISTEN)
                                    smbd       708  root   36u  IPv4  15568      0t0  TCP *:139 (LISTEN)
                                    node       878  fhem   18u  IPv6  18698      0t0  TCP *:8086 (LISTEN)
                                    node\x20/ 1297  fhem   18u  IPv4  19473      0t0  TCP 127.0.0.1:34729 (LISTEN)
                                    cupsd     5343  root    9u  IPv6 443540      0t0  TCP [::1]:631 (LISTEN)
                                    cupsd     5343  root   10u  IPv4 443541      0t0  TCP 127.0.0.1:631 (LISTEN)
                                    
                                    Monocle 1 Reply Last reply Reply Quote 0
                                    • Monocle
                                      Monocle @Tueftler last edited by Monocle

                                      @Tueftler

                                      When the daemon/service is installed, this script is run to create a new “monocle” system user and grant them access to the monocle configuration directory:

                                      # Create Monocle service user account to run under
                                      echo "Creating 'monocle' system user account"
                                      useradd --system -m monocle
                                      
                                      # Create required config directory
                                      echo "Creating configuration directory at '/etc/monocle/'"
                                      mkdir -p /etc/monocle/
                                      
                                      # Set group ownership and permissions of config directory
                                      chgrp -f -R monocle /etc/monocle
                                      chmod -f -R g+rw /etc/monocle
                                      

                                      The following commands are also run after the executables are copied to the system:

                                              # Configure system to allow Monocle-Gateway access to port 443
                                              echo "Configuring bind access to system reserved port 443"
                                              setcap 'cap_net_bind_service=+ep' /usr/local/bin/monocle-gateway
                                      
                                              # Reload systemd services
                                              echo "Reloading systemd daemon"
                                              systemctl daemon-reload
                                      
                                              # Install Monocle Gateway as a system service
                                              echo "Starting Monocle Gateway service daemon"
                                              systemctl start monocle-gateway
                                              echo "Enabling Monocle Gateway service deamon to start automatically"
                                              systemctl enable monocle-gateway
                                      
                                              # Check the status of the Monocle service instance
                                              #sudo systemctl status monocle-gateway
                                      

                                      Take a look at this command:

                                      sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/monocle-gateway
                                      

                                      I wonder if that is the problem on your system. If that failed for any reason, that would explain why your daemon/service instance is not able to access port 443.
                                      Try running that single command (using sudo) and see what happens.

                                      Thanks, Robert

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

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        Tueftler last edited by

                                        Ther coms nothing see

                                        pi@FhemServer:~ $ sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/monocle-gateway
                                        pi@FhemServer:~ $
                                        
                                        Monocle 1 Reply Last reply Reply Quote 0
                                        • Monocle
                                          Monocle @Tueftler last edited by

                                          @Tueftler

                                          If you restart the monocle gateway, does it still have the port 443 error?

                                          I can also use this command to verify the attribute exits on the file:

                                          > sudo getcap /usr/local/bin/monocle-gateway
                                          
                                          /usr/local/bin/monocle-gateway = cap_net_bind_service+ep
                                          

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

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

                                            @Monocle

                                            Another thing you can try is editing this file:
                                            /etc/systemd/system/monocle-gateway.service

                                            Add the line AmbientCapabilities=CAP_NET_BIND_SERVICE under the [Service] section so that the file looks like this:

                                            # *********************************************************************
                                            #              __  __  ___  _  _  ___   ___ _    ___
                                            #             |  \/  |/ _ \| \| |/ _ \ / __| |  | __|
                                            #             | |\/| | (_) | .` | (_) | (__| |__| _|
                                            #             |_|  |_|\___/|_|\_|\___/ \___|____|___|
                                            #
                                            #  -------------------------------------------------------------------
                                            #               MONOCLE GATEWAY SYSTEMD INIT SCRIPT
                                            #       COPYRIGHT SHADEBLUE, LLC @ 2018, ALL RIGHTS RESERVED
                                            #  -------------------------------------------------------------------
                                            #
                                            # *********************************************************************
                                            
                                            [Unit]
                                            Description=Monocle Gateway Service
                                            After=network.target
                                            ConditionPathExists=/usr/local/bin/monocle-gateway
                                            ConditionPathExists=/usr/local/bin/monocle-proxy
                                            ConditionFileIsExecutable=/usr/local/bin/monocle-gateway
                                            ConditionFileIsExecutable=/usr/local/bin/monocle-proxy
                                            ConditionPathExists=/etc/monocle/monocle.token
                                            ConditionFileNotEmpty=/etc/monocle/monocle.token
                                            
                                            [Service]
                                            AmbientCapabilities=CAP_NET_BIND_SERVICE
                                            ExecStart=/usr/local/bin/monocle-gateway
                                            WorkingDirectory=/home/monocle/
                                            StandardOutput=inherit
                                            StandardError=inherit
                                            Restart=always
                                            RestartSec=120
                                            StartLimitInterval=5
                                            StartLimitBurst=10
                                            User=monocle
                                            
                                            [Install]
                                            WantedBy=multi-user.target
                                            

                                            Next, run this command to RELAOD the service config:

                                            sudo systemctl daemon-reload

                                            Now restart the monocle gateway and check to log to see if that helped.

                                            Thanks, Robert

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

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

                                            © 2018 shadeBlue, LLC.