Monocle-Gateway Installation



  • Hi,

    I’m trying to install M-G on a Mac Mini server running High Sierra but am falling down on step 6. I’ve place the correct files and API token into the system configuration directory but when I try to run sudo ./monocle-gateway I get a “command not found” error.

    I can run the executable directly from the config dir (in /etc) but then I get the following listening errors (see below), perhaps because of a lack of administrative access?


    •         __  __  ___  _  _  ___   ___ _    ___              *
      
    •        |  \/  |/ _ \| \| |/ _ \ / __| |  | __|             *
      
    •        | |\/| | (_) | .` | (_) | (__| |__| _|              *
      
    •        |_|  |_|\___/|_|\_|\___/ \___|____|___|             *
      
    •                                                            *
      


    MONOCLE RUNTIME ENVIRONMENT

    VERSION = 0.0.4
    OS/ARCH = darwin/x64
    PROCESS = monocle-gateway (PID=54699)
    TIMESTAMP = 2019-12-08T11:19:21.281Z


    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-08T11:19:21.323Z [ERROR] Uncaught Exception spawn build/osx/x64/monocle-proxy ENOENT
    [ ‘Uncaught Exception’,
    ‘spawn build/osx/x64/monocle-proxy ENOENT’ ]
    2019-12-08T11:19:21.326Z [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-08T11:19:21.329Z [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-08T11:19:21.329Z [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

    Any idea how to fix this?

    Thanks & regards,

    Paul


Log in to reply