igdr / node-red-contrib-xiaomi-smart-devices

8 stars 4 forks source link

2.0.3 crashes node-red #18

Closed andreypopov closed 5 years ago

andreypopov commented 5 years ago

after installing 2.0.3 loop reboot

13 May 06:11:43 - [info] Started flows 13 May 06:11:43 - [red] Uncaught Exception: 13 May 06:11:43 - Error: bind EADDRINUSE 0.0.0.0:9898 at Object.exports._errnoException (util.js:1024:11) at exports._exceptionWithHostPort (util.js:1047:20) at _handle.lookup (dgram.js:242:18) at _combinedTickCallback (internal/process/next_tick.js:141:11) at process._tickCallback (internal/process/next_tick.js:180:9) nodered.service: main process exited, code=exited, status=1/FAILURE Unit nodered.service entered failed state. nodered.service holdoff time over, scheduling restart. Stopping Node-RED graphical event wiring tool.... Starting Node-RED graphical event wiring tool....

igdr commented 5 years ago

which IP address did you set to the gateway node?

andreypopov commented 5 years ago

which IP address did you set to the gateway node?

192.168.1.50 - and it was not saved, I had blank fields. Then I updated to 2.0.3

igdr commented 5 years ago

could you try restarting the server with Node-Red or kill the process which keeps 0.0.0.0:9898 and try again?

andreypopov commented 5 years ago

could you try restarting the server with Node-Red or kill the process which keeps 0.0.0.0:9898 and try again?

I tried to reboot, still infinity restart loop. When I uninstalled your package - node-red works.

igdr commented 5 years ago

could you export your flow, I will try with your configuration

andreypopov commented 5 years ago

hm, I cant, when I save gateway config node-red crashes.

13 May 09:43:25 - Error: bind EADDRINUSE 0.0.0.0:9898 possible that openhab listening this address too and it cause this error

igdr commented 5 years ago

Do you use Node-Red and OpenHab with Xiaomi bindings on the same host machine?

andreypopov commented 5 years ago

yeah..

igdr commented 5 years ago

I think that is a problem, cause they both try to establish a connection to the same address and port. I set up Node-Red and OpenHab to different raspberrypis.

igdr commented 5 years ago

No activity, so I close this issue