andreypopov / node-red-contrib-miio-roborock

Xioami Roborock node-red nodes
Apache License 2.0
32 stars 12 forks source link

Node-Red crash when starting in Docker "HOST" mode #59

Open xX-Nexus-Xx opened 2 months ago

xX-Nexus-Xx commented 2 months ago

Hi,

I have used your node for a long time in a dedicated Docker Node-Red instance running in "BRIDGED" mode and everything works fine image

When changing the Docker from "BRIDGED" to "HOST" mode (no other changes to code), image

Node-Red is crashing at startup with your node image

The dedicated Docker-Node-red instance is only for your Vacuum node (v.2.5.0) and no other flows are running

I had this issue for a while ( I think the issue was reported in 2021/2022 the first time) but could never sort it out, and I had to run your node in a dedicated environment

Hardware / Software   - Linux with Docker

andreypopov commented 2 months ago

hi dear xX-Nexus-Xx,

This issue comes from https://www.npmjs.com/package/node-mihome which is the dependancy of my package. The package node-mihome has not received updates for 4 years but still works. Error message says that "EADDINUSE" what could indicate that the port is busy. Maybe you need to open port 4321 (I found it in source codes of node-mihome)

https://www.npmjs.com/package/node-mihome?activeTab=code

2024-08-29_07-15-59

xX-Nexus-Xx commented 2 months ago

thanks for the quick response

Unfortunately, opening port 4321 did not help .. Node-Red is still crashing on startup :(

image

andreypopov commented 2 months ago

port is already in use, try to find out what is it ?