andreyoshev / node-red-contrib-miio-humidifier

3 stars 6 forks source link

This node crashes and bootloops NodeRed if Humidifier's IP becomes unreachable #12

Open lockheed opened 2 years ago

lockheed commented 2 years ago

As soon as the Humidifier is unplugged from power, entire NodeRed stack goes down into a bootloop.

Here's the log: https://pastebin.com/raw/KVANLJZn

Second after plugging humidifier back on, NodeRed start normally and works.

TheNON75 commented 1 year ago

Hi @andreyoshev ,

I am aware that you are not really maintaining this node any longer, but as owner and expert, may you have a look at this? Maybe it would resolve the crashing (I am about to install this node again in couple of days if testing is needed)

suggested change Thanks

andreyoshev commented 1 year ago

Hi @andreyoshev ,

I am aware that you are not really maintaining this node any longer, but as owner and expert, may you have a look at this? Maybe it would resolve the crashing (I am about to install this node again in couple of days if testing is needed)

suggested change Thanks

In the current situation it will be quite difficult to debug something because I have more NodeRED and I am away from the device.

But I think it's some kind of reconnect problem. I'll try to look in a couple of days.

Wilu88 commented 1 year ago

I have this same problem. If i power off humidifier my node-red freeze. In log i see: 24 Jan 22:09:00 - [red] Uncaught Exception: 24 Jan 22:09:00 - [error] Error: Could not connect to device, handshake timeout at Timeout._onTimeout (/config/node-red/node_modules/miio/lib/network.js:427:17) at listOnTimeout (node:internal/timers:564:17) at processTimers (node:internal/timers:507:7) [22:09:00] INFO: Service Node-RED exited with code 1 (by signal 0) s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service nginx: stopping [22:09:00] INFO: Service NGINX exited with code 0 (by signal 0) s6-rc: info: service nginx successfully stopped s6-rc: info: service init-nginx: stopping s6-rc: info: service nodered: stopping s6-rc: info: service init-nginx successfully stopped [22:09:00] INFO: Service Node-RED exited with code 256 (by signal 15)