Closed sujitrp closed 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.
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:
File detail in config folder:
pi@raspberrypi:~/IOTstack/volumes/broadlink-mqtt-bridge/config $ ls -latu
total 20
-rwxr-xr-x 1 root root 1094 Apr 8 23:16 docker.json
-rwxr-xr-x 1 root root 1094 Apr 8 23:06 default.json
-rwxr-xr-x 1 pi pi 1094 Apr 7 23:12 local.json
drwxr-xr-x 2 pi pi 4096 Apr 7 12:04 .
drwxr-xr-x 4 root root 4096 Apr 7 12:04 ..`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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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,`
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.
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
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
With this build, it started working. Port setting I modified to
` ports:
Glad you got it somewhat working.
Regarding the interactive shell, try adding the following options to your compose file. (haven't tried this myself).
stdin_open: true
tty: true
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/
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
}
}
Thanks, Stafan
You're welcome. Have fun!
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!
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.)
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 :
Log :