fbacker / broadlink-mqtt-bridge

Bridge Broadlink RM Devices with MQTT and API for e.g. OpenHAB
41 stars 14 forks source link

Docker setup not working :cbrosius/broadlink-mqtt-bridge-Raspbian Buster #41

Closed sujitrp closed 4 years ago

sujitrp commented 4 years ago

Hi I am using RPI3B+ with Latest raspbian Buster . Using cbrosius/broadlink-mqtt-bridge docker from docker Hub I added Port and Volume directory pat in Docker compose file. Port Modified as 3000 is in used by Garafana so trying to chnage in 3002. Modified Docker compose :

broadlink-mqtt-bridge:

    container_name: broadlink-mqtt-bridge
    image: cbrosius/broadlink-mqtt-bridge

    restart: always
    network_mode: host
    ports:
      - 3002:3000
      - 3003:3001
    volumes:
      - ./volumes/broadlink-mqtt-bridge/config:/config
      - ./volumes/broadlink-mqtt-bridge/commands:/commands

Log :

./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file,
,
> broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge,
> node -r esm index.js,
,
WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config,
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.,
/broadlink-mqtt-bridge/src/config.js:1,
TypeError: Cannot read property 'path' of undefined,
    at new Config (/broadlink-mqtt-bridge/src/config.js:8:44),
    at Object.<anonymous> (/broadlink-mqtt-bridge/src/config.js:48:9),
    at Generator.next (<anonymous>),
    at Object.<anonymous> (/broadlink-mqtt-bridge/src/logger.js:1),
    at Generator.next (<anonymous>),
    at Object.<anonymous> (/broadlink-mqtt-bridge/index.js:1),
npm ERR! code ELIFECYCLE,
npm ERR! errno 1,
npm ERR! broadlink-mqtt-bridge@1.0.0 start: `node -r esm index.js`,
npm ERR! Exit status 1,,
 ,
npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script.,
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.,
,
npm ERR! A complete log of this run can be found in:,
npm ERR!     /root/.npm/_logs/2020-04-07T19_11_46_958Z-debug.log,
./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file,
,
> broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge,
> node -r esm index.js,
,
WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config,
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.,
/broadlink-mqtt-bridge/src/config.js:1,
TypeError: Cannot read property 'path' of undefined,
    at new Config (/broadlink-mqtt-bridge/src/config.js:8:44),
    at Object.<anonymous> (/broadlink-mqtt-bridge/src/config.js:48:9),
    at Generator.next (<anonymous>),
    at Object.<anonymous> (/broadlink-mqtt-bridge/src/logger.js:1),
    at Generator.next (<anonymous>),
    at Object.<anonymous> (/broadlink-mqtt-bridge/index.js:1),
npm ERR! code ELIFECYCLE,
npm ERR! errno 1,
npm ERR! broadlink-mqtt-bridge@1.0.0 start: `node -r esm index.js`,
npm ERR! Exit status 1,,
 ,
npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script.,
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.,
,
npm ERR! A complete log of this run can be found in:,
npm ERR!     /root/.npm/_logs/2020-04-07T19_11_55_520Z-debug.log,
./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file,
,
> broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge,
> node -r esm index.js,
,
WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config,
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.,
/broadlink-mqtt-bridge/src/config.js:1,
TypeError: Cannot read property 'path' of undefined,
    at new Config (/broadlink-mqtt-bridge/src/config.js:8:44),
    at Object.<anonymous> (/broadlink-mqtt-bridge/src/config.js:48:9),
    at Generator.next (<anonymous>),
    at Object.<anonymous> (/broadlink-mqtt-bridge/src/logger.js:1),
    at Generator.next (<anonymous>),
    at Object.<anonymous> (/broadlink-mqtt-bridge/index.js:1),
npm ERR! code ELIFECYCLE,
npm ERR! errno 1,
npm ERR! broadlink-mqtt-bridge@1.0.0 start: `node -r esm index.js`,
npm ERR! Exit status 1,,
 ,
npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script.,
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.,
,
npm ERR! A complete log of this run can be found in:,
npm ERR!     /root/.npm/_logs/2020-04-07T19_12_02_909Z-debug.log,
daFritz84 commented 4 years ago

Hi,

I think you are missing the config file:

WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config,

see https://github.com/fbacker/broadlink-mqtt-bridge/blob/master/config/docker.json

Try to place this file in your config folder, and see if it is picked up by your docker instance.

sujitrp commented 4 years ago

as per wiki config I added local.json & docker.json & default.json in ./volumes/broadlink-mqtt-bridge/config folder .This folder is defined as volume in Docker compose file `volumes:

local.json `{

// Log output. "logging": { // Log level: get more info with: "debug" "level": "info", // Set to disable to not send crash logs to remote service "remote": true },

// MQTT Connection settings. // Possible to use MQTT client properties // https://www.npmjs.com/package/mqtt#client

"mqtt": { "host": "192.168.1.100", "port": 1883, "protocol": "mqtt", // start string for all pub/sub. "subscribeBasePath": "broadlink/" },

"queue": { // Delay between commands sent to broadlink "delay": 500 },

"webhooks": { // GET url request to an url when finding devices are done. // e.g. Call node-red api to trigger action when broadlink bridge is ready for commands "scanCompleted": null },

// Recording settings "recording": { "timeout": { "ir": 15, "rf": 15 }, // Custom path for saved commands. If not specified the ${dir}/commands will be used. "path": null },

// port numbers for gui and logs "gui": { "port": 3000, "logs": 3001 // NOTE: This is not dynamic yet } } Log : 2020-04-08T17:42:12.361148275Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:42:12.361209212Z at Generator.next (), 2020-04-08T17:42:12.361270409Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:42:12.413599602Z npm ERR! code ELIFECYCLE, 2020-04-08T17:42:12.416928012Z npm ERR! errno 1, 2020-04-08T17:42:12.427150061Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:42:12.429176502Z npm ERR! Exit status 1, 2020-04-08T17:42:12.431176225Z npm ERR! , 2020-04-08T17:42:12.433105063Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:42:12.434818538Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:42:12.471481874Z , 2020-04-08T17:42:12.473387379Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:42:12.474898876Z npm ERR! /root/.npm/_logs/2020-04-08T17_42_12_439Z-debug.log, 2020-04-08T17:42:17.468436841Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:42:21.060494042Z , 2020-04-08T17:42:21.060687061Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:42:21.060755342Z > node -r esm index.js, 2020-04-08T17:42:21.060822165Z , 2020-04-08T17:42:24.558047147Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:42:24.563917514Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:42:24.602252502Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:42:24.602598177Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:42:24.602675936Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:42:24.602739582Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:42:24.602809216Z at Generator.next (), 2020-04-08T17:42:24.602871195Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:42:24.603105412Z at Generator.next (), 2020-04-08T17:42:24.603171817Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:42:24.664014845Z npm ERR! code ELIFECYCLE, 2020-04-08T17:42:24.665831236Z npm ERR! errno 1, 2020-04-08T17:42:24.675239646Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:42:24.676363647Z npm ERR! Exit status 1, 2020-04-08T17:42:24.677473742Z npm ERR! , 2020-04-08T17:42:24.678413005Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:42:24.680310957Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:42:24.716102738Z , 2020-04-08T17:42:24.716609453Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:42:24.717112834Z npm ERR! /root/.npm/_logs/2020-04-08T17_42_24_685Z-debug.log, 2020-04-08T17:42:28.633948802Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:42:31.378711600Z , 2020-04-08T17:42:31.378922901Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:42:31.378988004Z > node -r esm index.js, 2020-04-08T17:42:31.379047847Z , 2020-04-08T17:42:35.139531022Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:42:35.163095510Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:42:35.271722249Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:42:35.271890476Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:42:35.272040631Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:42:35.272099537Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:42:35.272157662Z at Generator.next (), 2020-04-08T17:42:35.272213703Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:42:35.272270109Z at Generator.next (), 2020-04-08T17:42:35.272325629Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:42:35.805121856Z npm ERR! code ELIFECYCLE, 2020-04-08T17:42:35.807073715Z npm ERR! errno 1, 2020-04-08T17:42:35.816296606Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:42:35.817281285Z npm ERR! Exit status 1, 2020-04-08T17:42:35.818408723Z npm ERR! , 2020-04-08T17:42:35.819338143Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:42:35.820165948Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:42:35.953864402Z , 2020-04-08T17:42:35.954693197Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:42:35.955470274Z npm ERR! /root/.npm/_logs/2020-04-08T17_42_35_825Z-debug.log, 2020-04-08T17:42:40.307359337Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:42:46.783240349Z , 2020-04-08T17:42:46.784770597Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:42:46.784884294Z > node -r esm index.js, 2020-04-08T17:42:46.784944033Z , 2020-04-08T17:42:50.709017492Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:42:50.715059159Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:42:50.754392837Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:42:50.754656221Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:42:50.754758876Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:42:50.754860021Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:42:50.754979239Z at Generator.next (), 2020-04-08T17:42:50.755080436Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:42:50.755181737Z at Generator.next (), 2020-04-08T17:42:50.755282049Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:42:50.808508266Z npm ERR! code ELIFECYCLE, 2020-04-08T17:42:50.810366167Z npm ERR! errno 1, 2020-04-08T17:42:50.820613997Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:42:50.821950704Z npm ERR! Exit status 1, 2020-04-08T17:42:50.823389598Z npm ERR! , 2020-04-08T17:42:50.824421881Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:42:50.825315832Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:42:50.867929326Z , 2020-04-08T17:42:50.868628799Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:42:50.869237752Z npm ERR! /root/.npm/_logs/2020-04-08T17_42_50_831Z-debug.log, 2020-04-08T17:42:55.267972513Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:42:58.336704658Z , 2020-04-08T17:42:58.336824605Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:42:58.336852677Z > node -r esm index.js, 2020-04-08T17:42:58.336879344Z , 2020-04-08T17:43:02.302840417Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:43:02.311887789Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:43:02.355673148Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:43:02.355863147Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:43:02.355929292Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:43:02.355993458Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:43:02.356056114Z at Generator.next (), 2020-04-08T17:43:02.356118509Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:43:02.356178769Z at Generator.next (), 2020-04-08T17:43:02.356240852Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:43:02.413158600Z npm ERR! code ELIFECYCLE, 2020-04-08T17:43:02.416357948Z npm ERR! errno 1, 2020-04-08T17:43:02.427668529Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:43:02.429286901Z npm ERR! Exit status 1, 2020-04-08T17:43:02.431443237Z npm ERR! , 2020-04-08T17:43:02.433183900Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:43:02.434428108Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:43:02.474975109Z , 2020-04-08T17:43:02.476283744Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:43:02.477305766Z npm ERR! /root/.npm/_logs/2020-04-08T17_43_02_440Z-debug.log, 2020-04-08T17:43:06.410883885Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:43:11.465497218Z , 2020-04-08T17:43:11.478937469Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:43:11.479087624Z > node -r esm index.js, 2020-04-08T17:43:11.479145020Z , 2020-04-08T17:43:19.368058520Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:43:19.539838892Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:43:20.028140599Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:43:20.028333410Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:43:20.028396587Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:43:20.028459555Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:43:20.028540908Z at Generator.next (), 2020-04-08T17:43:20.028603147Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:43:20.028663251Z at Generator.next (), 2020-04-08T17:43:20.028724292Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:43:20.530797238Z npm ERR! code ELIFECYCLE, 2020-04-08T17:43:20.533214769Z npm ERR! errno 1, 2020-04-08T17:43:20.553701575Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:43:20.553896157Z npm ERR! Exit status 1, 2020-04-08T17:43:20.553982458Z npm ERR! , 2020-04-08T17:43:20.554041781Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:43:20.554101311Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:43:20.659924897Z , 2020-04-08T17:43:20.661362072Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:43:20.662463313Z npm ERR! /root/.npm/_logs/2020-04-08T17_43_20_560Z-debug.log, 2020-04-08T17:43:25.706037260Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:43:30.233361352Z , 2020-04-08T17:43:30.233542340Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:43:30.233609579Z > node -r esm index.js, 2020-04-08T17:43:30.233668120Z , 2020-04-08T17:43:33.750989182Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:43:33.758427921Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:43:33.796105572Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:43:33.796286195Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:43:33.796353226Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:43:33.796414528Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:43:33.796589005Z at Generator.next (), 2020-04-08T17:43:33.796651609Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:43:33.796709629Z at Generator.next (), 2020-04-08T17:43:33.796769837Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:43:33.843152778Z npm ERR! code ELIFECYCLE, 2020-04-08T17:43:33.845896609Z npm ERR! errno 1, 2020-04-08T17:43:33.855658610Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:43:33.857381825Z npm ERR! Exit status 1, 2020-04-08T17:43:33.859076498Z npm ERR! , 2020-04-08T17:43:33.860561433Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:43:33.861899599Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:43:33.896342954Z , 2020-04-08T17:43:33.899446938Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:43:33.899629280Z npm ERR! /root/.npm/_logs/2020-04-08T17_43_33_867Z-debug.log, 2020-04-08T17:43:37.923033306Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:43:41.322843695Z , 2020-04-08T17:43:41.323317858Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:43:41.323395149Z > node -r esm index.js, 2020-04-08T17:43:41.323455461Z , 2020-04-08T17:43:45.785402188Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:43:45.792453534Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:43:45.838333615Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:43:45.838514812Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:43:45.838581113Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:43:45.838644758Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:43:45.838706633Z at Generator.next (), 2020-04-08T17:43:45.838991110Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:43:45.839066005Z at Generator.next (), 2020-04-08T17:43:45.839128765Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:43:45.930482941Z npm ERR! code ELIFECYCLE, 2020-04-08T17:43:45.933484322Z npm ERR! errno 1, 2020-04-08T17:43:45.944814695Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:43:45.946657544Z npm ERR! Exit status 1, 2020-04-08T17:43:45.948374352Z npm ERR! , 2020-04-08T17:43:45.950396991Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:43:45.951810313Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:43:46.005844075Z , 2020-04-08T17:43:46.007070783Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:43:46.008001140Z npm ERR! /root/.npm/_logs/2020-04-08T17_43_45_958Z-debug.log, 2020-04-08T17:43:49.473937897Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:43:53.999156016Z , 2020-04-08T17:43:53.999348306Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:43:53.999416691Z > node -r esm index.js, 2020-04-08T17:43:53.999476847Z , 2020-04-08T17:44:01.536780454Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:44:01.613147204Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:44:01.897825268Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:44:01.897932350Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:44:01.897960735Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:44:01.897986985Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:44:01.898013860Z at Generator.next (), 2020-04-08T17:44:01.898039329Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:44:01.898065005Z at Generator.next (), 2020-04-08T17:44:01.898216671Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:44:02.217055071Z npm ERR! code ELIFECYCLE, 2020-04-08T17:44:02.218899742Z npm ERR! errno 1, 2020-04-08T17:44:02.228943303Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:44:02.233514098Z npm ERR! Exit status 1, 2020-04-08T17:44:02.234597058Z npm ERR! , 2020-04-08T17:44:02.235485800Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:44:02.236262512Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:44:02.335979378Z , 2020-04-08T17:44:02.336622914Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:44:02.337257961Z npm ERR! /root/.npm/_logs/2020-04-08T17_44_02_241Z-debug.log, 2020-04-08T17:44:06.113812458Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:44:10.181214550Z , 2020-04-08T17:44:10.181709650Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:44:10.181826472Z > node -r esm index.js, 2020-04-08T17:44:10.186101540Z , 2020-04-08T17:44:14.566305312Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:44:14.594796217Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:44:14.703035927Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:44:14.703284831Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:44:14.703351862Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:44:14.703413476Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:44:14.703486288Z at Generator.next (), 2020-04-08T17:44:14.703546756Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:44:14.704100710Z at Generator.next (), 2020-04-08T17:44:14.704175032Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:44:15.038819757Z npm ERR! code ELIFECYCLE, 2020-04-08T17:44:15.043925599Z npm ERR! errno 1, 2020-04-08T17:44:15.066584001Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:44:15.066748219Z npm ERR! Exit status 1, 2020-04-08T17:44:15.066945509Z npm ERR! , 2020-04-08T17:44:15.068597578Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:44:15.070053034Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:44:15.159404155Z , 2020-04-08T17:44:15.160852788Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:44:15.161538095Z npm ERR! /root/.npm/_logs/2020-04-08T17_44_15_076Z-debug.log, 2020-04-08T17:44:21.678514021Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:44:25.804564315Z , 2020-04-08T17:44:25.804777750Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:44:25.804844417Z > node -r esm index.js, 2020-04-08T17:44:25.804905926Z , 2020-04-08T17:44:29.443291591Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:44:29.449445029Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:44:29.486978357Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:44:29.487134241Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:44:29.487196168Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:44:29.487257417Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:44:29.487318615Z at Generator.next (), 2020-04-08T17:44:29.487378979Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:44:29.487526946Z at Generator.next (), 2020-04-08T17:44:29.487585435Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:44:29.538847242Z npm ERR! code ELIFECYCLE, 2020-04-08T17:44:29.542038309Z npm ERR! errno 1, 2020-04-08T17:44:29.551960569Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:44:29.554389194Z npm ERR! Exit status 1, 2020-04-08T17:44:29.556417354Z npm ERR! , 2020-04-08T17:44:29.558299734Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:44:29.559937949Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:44:29.594710259Z , 2020-04-08T17:44:29.596702951Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:44:29.598564081Z npm ERR! /root/.npm/_logs/2020-04-08T17_44_29_565Z-debug.log, 2020-04-08T17:44:35.193905554Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:44:40.902758360Z , 2020-04-08T17:44:40.904087880Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:44:40.904221421Z > node -r esm index.js, 2020-04-08T17:44:40.904289077Z , 2020-04-08T17:44:44.736438625Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:44:44.742373158Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:44:44.780698980Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:44:44.780866374Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:44:44.780929291Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:44:44.780991842Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:44:44.781053977Z at Generator.next (), 2020-04-08T17:44:44.781115747Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:44:44.781176945Z at Generator.next (), 2020-04-08T17:44:44.781554910Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:44:44.833894937Z npm ERR! code ELIFECYCLE, 2020-04-08T17:44:44.837176107Z npm ERR! errno 1, 2020-04-08T17:44:44.847516020Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:44:44.849234026Z npm ERR! Exit status 1, 2020-04-08T17:44:44.851014323Z npm ERR! , 2020-04-08T17:44:44.852528321Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:44:44.854081850Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:44:44.890376126Z , 2020-04-08T17:44:44.891878093Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:44:44.893285581Z npm ERR! /root/.npm/_logs/2020-04-08T17_44_44_859Z-debug.log, 2020-04-08T17:44:49.458111595Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:44:54.669520010Z , 2020-04-08T17:44:54.669708446Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:44:54.669776154Z > node -r esm index.js, 2020-04-08T17:44:54.669835580Z , 2020-04-08T17:44:58.466450845Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:44:58.472228921Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:44:58.510008498Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:44:58.510174434Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:44:58.510238913Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:44:58.510303079Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:44:58.510365683Z at Generator.next (), 2020-04-08T17:44:58.510426307Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:44:58.510486567Z at Generator.next (), 2020-04-08T17:44:58.510546514Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:44:58.559707818Z npm ERR! code ELIFECYCLE, 2020-04-08T17:44:58.561592333Z npm ERR! errno 1, 2020-04-08T17:44:58.570749808Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:44:58.571938131Z npm ERR! Exit status 1, 2020-04-08T17:44:58.573116663Z npm ERR! , 2020-04-08T17:44:58.573974520Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:44:58.574741701Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:44:58.611544046Z , 2020-04-08T17:44:58.615088496Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:44:58.615295890Z npm ERR! /root/.npm/_logs/2020-04-08T17_44_58_580Z-debug.log, 2020-04-08T17:45:03.668826941Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:45:08.728356900Z , 2020-04-08T17:45:08.736882349Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:45:08.737076045Z > node -r esm index.js, 2020-04-08T17:45:08.737138388Z , 2020-04-08T17:45:18.190992260Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:48:17.533291792Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:48:22.364974405Z , 2020-04-08T17:48:22.365156904Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:48:22.365222164Z > node -r esm index.js, 2020-04-08T17:48:22.365283621Z , 2020-04-08T17:48:26.084039909Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:48:26.089903193Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:48:26.126553248Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:48:26.126713767Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:48:26.126776215Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:48:26.126836839Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:48:26.126898609Z at Generator.next (), 2020-04-08T17:48:26.126958453Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:48:26.127035171Z at Generator.next (), 2020-04-08T17:48:26.127095691Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:48:26.177375475Z npm ERR! code ELIFECYCLE, 2020-04-08T17:48:26.180488573Z npm ERR! errno 1, 2020-04-08T17:48:26.190853069Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:48:26.192549253Z npm ERR! Exit status 1, 2020-04-08T17:48:26.194374498Z npm ERR! , 2020-04-08T17:48:26.195808183Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:48:26.197190411Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:48:26.231087469Z , 2020-04-08T17:48:26.232438863Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:48:26.233590416Z npm ERR! /root/.npm/_logs/2020-04-08T17_48_26_202Z-debug.log, 2020-04-08T17:48:30.814414732Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:48:34.018252871Z , 2020-04-08T17:48:34.018545889Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:48:34.018620993Z > node -r esm index.js, 2020-04-08T17:48:34.018681982Z , 2020-04-08T17:48:37.323339424Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:48:37.329623642Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:48:37.368679458Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:48:37.368908050Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:48:37.379932852Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:48:37.380151028Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:48:37.380235714Z at Generator.next (), 2020-04-08T17:48:37.380292953Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:48:37.380350453Z at Generator.next (), 2020-04-08T17:48:37.380407119Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:48:37.415989996Z npm ERR! code ELIFECYCLE, 2020-04-08T17:48:37.419262885Z npm ERR! errno 1, 2020-04-08T17:48:37.430504196Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:48:37.432235535Z npm ERR! Exit status 1, 2020-04-08T17:48:37.434204946Z npm ERR! , 2020-04-08T17:48:37.435641600Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:48:37.436903256Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:48:37.473537739Z , 2020-04-08T17:48:37.474569657Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:48:37.475616158Z npm ERR! /root/.npm/_logs/2020-04-08T17_48_37_442Z-debug.log, 2020-04-08T17:48:44.051538878Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:48:52.339090677Z , 2020-04-08T17:48:52.339314842Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:48:52.339381769Z > node -r esm index.js, 2020-04-08T17:48:52.339469112Z , 2020-04-08T17:48:56.386095493Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:48:56.393078143Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:48:56.440620762Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:48:56.440795135Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:48:56.440861645Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:48:56.440922374Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:48:56.441007582Z at Generator.next (), 2020-04-08T17:48:56.441068258Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:48:56.441131591Z at Generator.next (), 2020-04-08T17:48:56.441197372Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:48:56.504185902Z npm ERR! code ELIFECYCLE, 2020-04-08T17:48:56.506459529Z npm ERR! errno 1, 2020-04-08T17:48:56.515396380Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:48:56.516521891Z npm ERR! Exit status 1, 2020-04-08T17:48:56.517632195Z npm ERR! , 2020-04-08T17:48:56.518440886Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:48:56.519223587Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:48:56.675085500Z , 2020-04-08T17:48:56.675497059Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:48:56.676166688Z npm ERR! /root/.npm/_logs/2020-04-08T17_48_56_524Z-debug.log, 2020-04-08T17:49:02.352853204Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:49:06.145298869Z , 2020-04-08T17:49:06.145556887Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:49:06.145639595Z > node -r esm index.js, 2020-04-08T17:49:06.145699751Z , 2020-04-08T17:53:07.363570544Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:53:12.417567321Z , 2020-04-08T17:53:12.417770965Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:53:12.417841121Z > node -r esm index.js, 2020-04-08T17:53:12.417901537Z , 2020-04-08T17:53:18.618248836Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:53:18.667320349Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:53:18.984941519Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:53:18.985090528Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:53:18.985117872Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:53:18.985143705Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:53:18.985177246Z at Generator.next (), 2020-04-08T17:53:18.985202975Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:53:18.985228860Z at Generator.next (), 2020-04-08T17:53:18.985254173Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:53:19.953586512Z npm ERR! code ELIFECYCLE, 2020-04-08T17:53:19.955689463Z npm ERR! errno 1, 2020-04-08T17:53:19.977433706Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:53:20.030096126Z npm ERR! Exit status 1, 2020-04-08T17:53:20.030292999Z npm ERR! , 2020-04-08T17:53:20.030361540Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:53:20.030427113Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:53:20.542297579Z , 2020-04-08T17:53:20.566135242Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:53:20.566269512Z npm ERR! /root/.npm/_logs/2020-04-08T17_53_20_031Z-debug.log, 2020-04-08T17:53:25.591044609Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:53:29.684916477Z , 2020-04-08T17:53:29.685090382Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:53:29.685165902Z > node -r esm index.js, 2020-04-08T17:53:29.685225380Z , 2020-04-08T17:53:34.003854256Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:53:34.009526708Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:53:34.055748296Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:53:34.055920847Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:53:34.055989857Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:53:34.056049752Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:53:34.056128033Z at Generator.next (), 2020-04-08T17:53:34.056188657Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:53:34.056249959Z at Generator.next (), 2020-04-08T17:53:34.056309438Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:53:34.151809412Z npm ERR! code ELIFECYCLE, 2020-04-08T17:53:34.154432046Z npm ERR! errno 1, 2020-04-08T17:53:34.164235713Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:53:34.165339766Z npm ERR! Exit status 1, 2020-04-08T17:53:34.166432674Z npm ERR! , 2020-04-08T17:53:34.167312250Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:53:34.168142868Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:53:34.208288831Z , 2020-04-08T17:53:34.208875805Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:53:34.209428613Z npm ERR! /root/.npm/_logs/2020-04-08T17_53_34_173Z-debug.log, 2020-04-08T17:53:38.736684006Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:53:44.406077406Z , 2020-04-08T17:53:44.406216364Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:53:44.406249436Z > node -r esm index.js, 2020-04-08T17:53:44.406275426Z , 2020-04-08T17:53:48.292255769Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:53:48.298918525Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:53:48.349766846Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:53:48.349946948Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:53:48.350010385Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:53:48.350068249Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:53:48.350152259Z at Generator.next (), 2020-04-08T17:53:48.350214186Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:53:48.350272362Z at Generator.next (), 2020-04-08T17:53:48.350343195Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:53:48.421651655Z npm ERR! code ELIFECYCLE, 2020-04-08T17:53:48.425715266Z npm ERR! errno 1, 2020-04-08T17:53:48.436457624Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:53:48.438412607Z npm ERR! Exit status 1, 2020-04-08T17:53:48.440564099Z npm ERR! , 2020-04-08T17:53:48.442306376Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:53:48.444280578Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:53:48.503824502Z , 2020-04-08T17:53:48.504984440Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:53:48.506079639Z npm ERR! /root/.npm/_logs/2020-04-08T17_53_48_449Z-debug.log, 2020-04-08T17:53:53.228626456Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file, 2020-04-08T17:54:00.200335467Z , 2020-04-08T17:54:00.337867326Z > broadlink-mqtt-bridge@1.0.0 start /broadlink-mqtt-bridge, 2020-04-08T17:54:00.338039408Z > node -r esm index.js, 2020-04-08T17:54:00.338101126Z , 2020-04-08T17:54:06.254943633Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config, 2020-04-08T17:54:06.260874729Z WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment., 2020-04-08T17:54:06.298708940Z /broadlink-mqtt-bridge/src/config.js:1, 2020-04-08T17:54:06.298877272Z TypeError: Cannot read property 'path' of undefined, 2020-04-08T17:54:06.298944407Z at new Config (/broadlink-mqtt-bridge/src/config.js:8:44), 2020-04-08T17:54:06.299007480Z at Object. (/broadlink-mqtt-bridge/src/config.js:48:9), 2020-04-08T17:54:06.299083625Z at Generator.next (), 2020-04-08T17:54:06.299149770Z at Object. (/broadlink-mqtt-bridge/src/logger.js:1), 2020-04-08T17:54:06.299212009Z at Generator.next (), 2020-04-08T17:54:06.299271852Z at Object. (/broadlink-mqtt-bridge/index.js:1), 2020-04-08T17:54:06.358284166Z npm ERR! code ELIFECYCLE, 2020-04-08T17:54:06.362092103Z npm ERR! errno 1, 2020-04-08T17:54:06.373727369Z npm ERR! broadlink-mqtt-bridge@1.0.0 start: node -r esm index.js, 2020-04-08T17:54:06.376226983Z npm ERR! Exit status 1, 2020-04-08T17:54:06.378741806Z npm ERR! , 2020-04-08T17:54:06.380999235Z npm ERR! Failed at the broadlink-mqtt-bridge@1.0.0 start script., 2020-04-08T17:54:06.383547703Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above., 2020-04-08T17:54:06.436522099Z , 2020-04-08T17:54:06.440053007Z npm ERR! A complete log of this run can be found in:, 2020-04-08T17:54:06.443345895Z npm ERR! /root/.npm/_logs/2020-04-08T17_54_06_388Z-debug.log, 2020-04-08T17:54:11.296545254Z ./docker-entrypoint.sh: line 3: can't open /broadlink-mqtt-bridge/conf.template: no such file,`

daFritz84 commented 4 years ago

Hi,

can I politely ask to attach logs in the future? My scrolling finger hurts :). Anyways, it still seems that the config file is not visible to the broadlink-mqtt-bridge.

2020-04-08T17:54:06.254943633Z WARNING: No configurations found in configuration directory:/broadlink-mqtt-bridge/config,

Have you tried to open a shell to the docker instance and verified that local.json is accessible?

Also, the official image is here. The image from cbrosius is actually out-of-date, but I don't know if this has something to do with the issue at hand.

sujitrp commented 4 years ago

I am really sorry on scrolling part sure I shall attach the log hereafter, actually attaching is easy :) Now I tried the official container on Raspbin Pi3b+with the same set up of config file in volume I am getting different error in Log standard_init_linux.go:211: exec user process caused "exec format error", looks error due to arm is not yet supported. I am not able to connect with console . to get log and to connect console I am using Portainer

daFritz84 commented 4 years ago

Oh, my bad. The official image is x86 only, but no worries you can build the image yourself on the raspberry pi.

(1) clone the source code git clone --depth 1 https://github.com/fbacker/broadlink-mqtt-bridge.git

(2) cd into the cloned directory cd broadlink-mqtt-bridge

(3) build the image locally docker build --no-cache=true -t broadlink-mqtt-bridge:latest .

(4) Use the locally built image in your compose file. (btw, the code below is from my personal docker installation, so you probably don't need depends_on: mosquitto)

   broadlink2mqtt:
    container_name: broadlink2mqtt
    image: broadlink-mqtt-bridge:latest
    depends_on:
      - mosquitto
    restart: unless-stopped
    volumes:
      - /opt/broadlink2mqtt/config:/broadlink-mqtt-bridge/config
      - /opt/broadlink2mqtt/commands:/broadlink-mqtt-bridge/commands
    network_mode: "host"
    ports:
      - 3000:3000
      - 3001:3001
sujitrp commented 4 years ago

With this build, it started working. Port setting I modified to
` ports:

daFritz84 commented 4 years ago

Glad you got it somewhat working.

  1. Regarding the interactive shell, try adding the following options to your compose file. (haven't tried this myself).

    stdin_open: true
    tty: true
  2. Regarding the ports: if you run in network_mode: "host", the port setting has no effect in your compose file. See also https://docs.docker.com/network/host/

  3. However, modifying the local.json should work. I have a tingling sense, that you copied docker.json to your config folder, but did not rename it to local.json? If I modify my local.json it works as expected. Here is the content of my config directory:

    [frigg@frigg config]$ ls -sla
    total 16
    4 drwxr-xr-x 2 root root 4096 Apr 10 10:14 .
    4 drwxr-xr-x 4 root root 4096 Dec 25 19:27 ..
    4 -rw-r--r-- 1 root root  391 Apr 10 10:14 local.bak
    4 -rw-r--r-- 1 root root  391 Apr 10 10:14 local.json
    [frigg@frigg config]$ cat local.json 
    {
    "logging":{
    "level": null
    },
    "mqtt": {
    "host": "frigg.local",
    "port": 1883,
    "protocol": "mqtt",
    "subscribeBasePath": "broadlink/"
    },
    "queue": {
    "delay": 500
    },
    "webhooks": {
    "scanCompleted": null
    },
    "recording": {
    "timeout": {
      "ir": 15,
      "rf": 15
    },
    "path": null
    },
    "gui": {
    "port": 3002,
    "logs": 3003
    }
    }
sujitrp commented 4 years ago

Thanks, Stafan

daFritz84 commented 4 years ago

You're welcome. Have fun!

sujitrp commented 4 years ago

Hi Stefan Back with one more issue. Now application is working fine except Broadlink device discovery. I am getting local.json.txt log.txt

error. The device is on and working great with ihc android app. 2020-04-11 19:49:42 [info]: Broadlink Discovery completed. Found 0 devices. 2020-04-11 19:49:42 [error]: Broadlink device is missing, try to restart the device!

daFritz84 commented 4 years ago

Device discovery uses the local IP settings to determine the scan range (It actually does a broadcast on *.255 IP address).

So the only suggestion I can think of is to ensure that the broadlink device and the broadlink-mqtt-bridge are in the same IP subnet (that's why the network_mode: "host" is so important in the docker-compose file.)