I'll try again. ANYONE have any ideas for this? Gateway seems to work but get "Hmmmm the camera isn't responding"



  • Security spy supplying the RTSP feed that works on VLC.
    https://www.bensoftware.com/securityspy/
    I believe I have the gateway configured properly.
    Please review and advise-much appreciated.

    Last login: Thu Dec 5 23:10:01 on ttys000
    /Users/googlepicsserver/Downloads/monocle-gateway-osx-x64-v0.0.4/monocle-gateway ; exit;
    Kitchen-counter:~ googlepicsserver$ /Users/googlepicsserver/Downloads/monocle-gateway-osx-x64-v0.0.4/monocle-gateway ; exit;
    
            __  __  ___  _  _  ___   ___ _    ___              *
           |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
           | |\/| | (_) | .` | (_) | (__| |__| _|              *
           |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
                                                               *
    MONOCLE RUNTIME ENVIRONMENT
    
    VERSION = 0.0.4
    OS/ARCH = darwin/x64
    PROCESS = monocle-gateway (PID=8751)
    TIMESTAMP = 2019-12-06T04:13:09.815Z
    
    MONOCLE GATEWAY SERVICE (Version: 0.0.4)
    
    [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=undefined)
    [RTSP Server Listening] 0.0.0.0:8554 (PROXY)
    [RTSP Server Started]
    2019-12-06T04:13:09.847Z [ERROR] Uncaught Exception spawn build/osx/x64/monocle-proxy ENOENT
    [ ‘Uncaught Exception’,
    ‘spawn build/osx/x64/monocle-proxy ENOENT’ ]
    2019-12-06T04:13:09.849Z [ERROR] Error: spawn build/osx/x64/monocle-proxy ENOENT
    [ { Error: spawn build/osx/x64/monocle-proxy ENOENT
    at _errnoException (util.js:1031:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
    at onErrorNT (internal/child_process.js:389:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (pkg/prelude/bootstrap.js:1299:13)
    at startup (bootstrap_node.js:227:16)
    at bootstrap_node.js:649:3
    errno: ‘ENOENT’,
    code: ‘ENOENT’,
    syscall: ‘spawn build/osx/x64/monocle-proxy’,
    path: ‘build/osx/x64/monocle-proxy’,
    spawnargs: [ ‘-p’, 8554, ‘’ ] } ]
    2019-12-06T04:13:09.853Z [ERROR] [PROXY SERVER ERROR] Error: listen EACCES 0.0.0.0:443
    [ ‘[PROXY SERVER ERROR]’,
    { Error: listen EACCES 0.0.0.0:443
    at Object._errnoException (util.js:1031:13)
    at _exceptionWithHostPort (util.js:1052:20)
    at Server.setupListenHandle [as _listen2] (net.js:1350:19)
    at listenInCluster (net.js:1408:12)
    at doListen (net.js:1523:7)
    at _combinedTickCallback (internal/process/next_tick.js:141:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (pkg/prelude/bootstrap.js:1299:13)
    at startup (bootstrap_node.js:227:16)
    at bootstrap_node.js:649:3
    errno: ‘EACCES’,
    code: ‘EACCES’,
    syscall: ‘listen’,
    address: ‘0.0.0.0’,
    port: 443 } ]
    2019-12-06T04:13:09.854Z [ERROR] [RTSP Server Error] listen EACCES 0.0.0.0:443
    [ ‘[RTSP Server Error]’, ‘listen EACCES 0.0.0.0:443’ ]
    [Monocle Connected]
    [RTSP Server Registered]
    
    MONOCLE RTSP SERVICE - INITIALIZED
    
    FQDN = a7459d72-e2df-49c5-ac8b-eb99f99dc98d.mproxy.io
    HOST = 10.0.1.105
    PORT = 443
    
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : 94f04018-adb8-45d5-a049-27f424bf4897
    MODIF : Thu Dec 05 2019 23:12:37 GMT-0500 (EST)
    TAGS : @proxy
    2019-12-06T04:13:16.828Z [INFO] [RTSP PROXY] REGISTERING STREAM [security spy/PRIMARY]; (STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2)
    2019-12-06T04:13:16.830Z [ERROR] Uncaught Exception connect ECONNREFUSED 127.0.0.1:8554
    [ ‘Uncaught Exception’, ‘connect ECONNREFUSED 127.0.0.1:8554’ ]
    2019-12-06T04:13:16.830Z [ERROR] Error: connect ECONNREFUSED 127.0.0.1:8554
    [ { Error: connect ECONNREFUSED 127.0.0.1:8554
    at Object._errnoException (util.js:1031:13)
    at _exceptionWithHostPort (util.js:1052:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14)
    errno: ‘ECONNREFUSED’,
    code: ‘ECONNREFUSED’,
    syscall: ‘connect’,
    address: ‘127.0.0.1’,
    port: 8554 } ]
    
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : 8fcff269-14f5-4af5-b244-3b4b2f66fbb4
    MODIF : Thu Dec 05 2019 23:12:37 GMT-0500 (EST)
    TAGS : @proxy
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : d32334e0-467b-4e9a-a15e-0d7d452722fe
    MODIF : Thu Dec 05 2019 23:12:37 GMT-0500 (EST)
    TAGS : @proxy
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : 88c0ef0f-21ec-46e4-b6a3-8b7b6d306e32
    MODIF : Thu Dec 05 2019 23:13:53 GMT-0500 (EST)
    TAGS : @tunnel
    RTSP STREAM MODIFIED: security spy
    Any existing RTSP steams will be shut down
    and a new stream instance will be registered.
    
    2019-12-06T04:14:02.249Z [ERROR] Uncaught Exception connect ECONNREFUSED 127.0.0.1:8554
    [ ‘Uncaught Exception’, ‘connect ECONNREFUSED 127.0.0.1:8554’ ]
    2019-12-06T04:14:02.249Z [ERROR] Error: connect ECONNREFUSED 127.0.0.1:8554
    [ { Error: connect ECONNREFUSED 127.0.0.1:8554
    at Object._errnoException (util.js:1031:13)
    at _exceptionWithHostPort (util.js:1052:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14)
    errno: ‘ECONNREFUSED’,
    code: ‘ECONNREFUSED’,
    syscall: ‘connect’,
    address: ‘127.0.0.1’,
    port: 8554 } ]
    
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : bdbc347e-60a8-4026-8193-766d24df1119
    MODIF : Thu Dec 05 2019 23:13:53 GMT-0500 (EST)
    TAGS : @tunnel
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : 1d150427-e37d-4829-a097-03da90dcc8d4
    MODIF : Thu Dec 05 2019 23:13:53 GMT-0500 (EST)
    TAGS : @tunnel
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : 6978d215-2da9-4f99-b833-0f2622fcbe3b
    MODIF : Thu Dec 05 2019 23:13:53 GMT-0500 (EST)
    TAGS : @tunnel
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : 13014367-db33-45d9-86c7-6d7b11d1ca86
    MODIF : Thu Dec 05 2019 23:15:27 GMT-0500 (EST)
    TAGS : @noaudio,@tunnel
    RTSP STREAM MODIFIED: security spy
    Any existing RTSP steams will be shut down
    and a new stream instance will be registered.
    
    2019-12-06T04:15:36.044Z [ERROR] Uncaught Exception connect ECONNREFUSED 127.0.0.1:8554
    [ ‘Uncaught Exception’, ‘connect ECONNREFUSED 127.0.0.1:8554’ ]
    2019-12-06T04:15:36.044Z [ERROR] Error: connect ECONNREFUSED 127.0.0.1:8554
    [ { Error: connect ECONNREFUSED 127.0.0.1:8554
    at Object._errnoException (util.js:1031:13)
    at _exceptionWithHostPort (util.js:1052:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1195:14)
    errno: ‘ECONNREFUSED’,
    code: ‘ECONNREFUSED’,
    syscall: ‘connect’,
    address: ‘127.0.0.1’,
    port: 8554 } ]
    
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : 5b60c43c-3a6c-4347-8eba-cc0d98f5f68a
    MODIF : Thu Dec 05 2019 23:15:27 GMT-0500 (EST)
    TAGS : @noaudio,@tunnel
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : af59d6c7-1640-478b-808a-6e917fa6c208
    MODIF : Thu Dec 05 2019 23:15:27 GMT-0500 (EST)
    TAGS : @noaudio,@tunnel
    INITIALIZE RTSP STREAM: security spy
    
    NAME : security spy
    LABEL : PRIMARY
    URL : rtsp://10.0.1.105:8000/++stream?cameraNum=0&codec=h264
    UUID : STREAM:15477826-3170-4d4c-ad7f-ecf3be337fd2
    SESS : 6dd44723-bf07-4ef9-8e30-6f7da7a3461b
    MODIF : Thu Dec 05 2019 23:15:27 GMT-0500 (EST)
    TAGS : @noaudio,@tunnel
    


  • No-one? Developer?
    Well at least all new cameras (even the cheapest ones) have this functionality built in.



  • I think this error is problem:

    [ ‘Uncaught Exception’,
    ‘spawn build/osx/x64/monocle-proxy ENOENT’ ]
    2019-12-06T04:13:09.849Z [ERROR] Error: spawn build/osx/x64/monocle-proxy ENOENT
    [ { Error: spawn build/osx/x64/monocle-proxy ENOENT
    at _errnoException (util.js:1031:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
    at onErrorNT (internal/child_process.js:389:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (pkg/prelude/bootstrap.js:1299:13)
    at startup (bootstrap_node.js:227:16)
    at bootstrap_node.js:649:3
    

    I suspect that this is failing because the Monocle proxy executable is failing to start due to a missing dependency. Try installing this and restarting the monocle gateway:

    This will definitely cause any stream using @proxy to fail.

    Thanks, Robert



  • @Monocle said in I'll try again. ANYONE have any ideas for this? Gateway seems to work but get "Hmmmm the camera isn't responding":

    Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)

    I’m on mac osx High Sierra.



  • @fredfontaine

    You are right – I totally overlooked that. I have not seen a user with a monocle-proxy related error on MacOS before. Let me post some additional debug instructions for testing the monocle-proxy executable on a Mac. Thanks, Robert



  • Thanks a lot!
    Source is http://www.bensoftware.com/securityspy/



  • Any action on this?
    Should I try streaming directly from the camera rather than going through security spy?



  • Did you get this to work eventually? I have the same setup - Security spy RTSP streams - but it doesn’t seem to work. I’ve tried with various tags in monocle (@tunnel, @proxy etc.)



  • @alexandershaw The developer said he would look at it but apparently never did as that was 3 weeks ago.

    "Monocle 21 days ago @fredfontaine

    You are right – I totally overlooked that. I have not seen a user with a monocle-proxy related error on MacOS before. Let me post some additional debug instructions for testing the monocle-proxy executable on a Mac. Thanks, Robert"

    Never received any “debug instructions”.



  • @fredfontaine Oh no, that sucks! But thanks for letting me know. Fingers crossed they come up with something… ☹

    Are you using an Echo Show 5 too, by any chance?



  • @fredfontaine

    Apologies for the radio silence. I got pulled away from this project for a few weeks and totally forgot about this issue. If you are still having trouble, I’d be happy to try and help if you are still interested.

    Thanks, Robert



  • Hi,

    I’m getting the error below when using the @tunnel tag. @proxy gives no ‘Uncaught Exception’ error but never works.

    I can give you access to the camera stream if that helps? Appreciate any help. Would love to get this working.

    [ ‘Uncaught Exception’,
    ‘Cannot read property ‘match’ of null’ ]
    2020-08-23T03:28:19.072Z [ERROR] TypeError: Cannot read property ‘match’ of null
    [ TypeError: Cannot read property ‘match’ of null
    at Object.exports.parse (/snapshot/monocle-gateway/node_modules/rtsp-stream/lib/request-line.js:12:20)
    at new module.exports (/snapshot/monocle-gateway/node_modules/rtsp-stream/lib/incoming-message.js:26:24)
    at module.exports.Decoder._writeHead (/snapshot/monocle-gateway/node_modules/rtsp-stream/decoder.js:83:15)
    at module.exports.Decoder._writeOffset (/snapshot/monocle-gateway/node_modules/rtsp-stream/decoder.js:37:21)
    at module.exports.Decoder._write (/snapshot/monocle-gateway/node_modules/rtsp-stream/decoder.js:27:8)
    at doWrite (/snapshot/monocle-gateway/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    at writeOrBuffer (/snapshot/monocle-gateway/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    at module.exports.Writable.write (/snapshot/monocle-gateway/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at Socket.ondata (_stream_readable.js:642:20)
    at Socket.emit (events.js:159:13) ]

    Pete



  • Just one thought, could the issue have anything to do with the Monocle Gateway being on the same system as the camera device? In this case Security Spy on MacOS 10.15.4?



  • @kwijibo00

    Nope, same issue running on a different system, (Windows 10). Same error

    Cannot read property ‘match’ of null’


Log in to reply