Now that I see this thread alive again I have been having a problem running this for a while now but never got around to trying to fix it. I’ve actually had it disabled for a loing time now so I can’t remember the original issue.
So I updated the image for wud today and when it restarted I keep getting these errors in the containers logs:
{"name":"whats-up-docker","hostname":"NUC","pid":1,"level":30,"msg":"What's up, docker? is starting","time":"2021-04-27T21:35:13.815Z","v":0}
{"name":"whats-up-docker","hostname":"NUC","pid":1,"level":30,"msg":"Init DB (/store/wud.json)","time":"2021-04-27T21:35:13.817Z","v":0}
{"name":"whats-up-docker","hostname":"NUC","pid":1,"level":30,"msg":"Init Prometheus module","time":"2021-04-27T21:35:13.824Z","v":0}
{"name":"whats-up-docker","hostname":"NUC","pid":1,"level":20,"msg":"Start image metrics interval","time":"2021-04-27T21:35:13.832Z","v":0}
(node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'localeCompare' of undefined
at /home/node/app/node_modules/sort-es/lib/index.cjs.js:120:46
at /home/node/app/node_modules/sort-es/lib/index.cjs.js:76:36
at Array.sort (<anonymous>)
at Object.getImages (/home/node/app/store/index.js:150:22)
at populateGauge (/home/node/app/prometheus/image.js:12:11)
at Object.init (/home/node/app/prometheus/image.js:61:5)
at Object.init (/home/node/app/prometheus/index.js:15:11)
at main (/home/node/app/index.js:14:16)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
/home/node/app/node_modules/sort-es/lib/index.cjs.js:120
return sort(fixString(first, options).localeCompare(fixString(second, options)), options);
^
TypeError: Cannot read property 'localeCompare' of undefined
at /home/node/app/node_modules/sort-es/lib/index.cjs.js:120:46
at /home/node/app/node_modules/sort-es/lib/index.cjs.js:76:36
at Array.sort (<anonymous>)
at Object.getImages (/home/node/app/store/index.js:150:22)
at Timeout.populateGauge [as _onTimeout] (/home/node/app/prometheus/image.js:12:11)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
Here is my docker run command:
docker run -d --name wud --network=host --restart unless-stopped -e WUD_LOG_LEVEL="DEBUG" -v "/var/run/docker.sock:/var/run/docker.sock" -v /home/finity/docker/wud/store:/store -e WUD_WATCHER_DOCKER_LOCAL_CRON="1 * * * *" -e WUD_TRIGGER_MQTT_MOSQUITTO_URL="mqtt://192.168.1.11:1883" -e WUD_TRIGGER_MQTT_MOSQUITTO_USER="my_user" -e WUD_TRIGGER_MQTT_MOSQUITTO_PASSWORD="my_password" -e WUD_TRIGGER_MQTT_MOSQUITTO_TOPIC="wud/image" fmartinou/whats-up-docker
any idea what I need to do to fix it?
I’d like to start using it again and the new binary sensor looks really useful.