Hi
I've been using Node-red and Flespi MQTT for a few weeks now and I'm facing a recurrent issue when the Internet connection breaks up.
After recovery, while other IoT devices reconnects seamlessly to Flespi, Node-red fails to reconnect and Flepsi reports unexpected disconnections:
26/12/2021 19:25:04 | mqtt session connection was closed (unexpected disconnect) | node-red_sonnaz | clean: true; expiry_interval: 0; origin_id: 0; origin_type: 14; rejected: 0; session_present: false; token_id: 32288721; version: 4;
26/12/2021 19:25:05 | mqtt session connection was acceptednode-red_sonnaz | clean: true; expiry_interval: 0; origin_id: 0; origin_type: 14; peer: "2.7.144.209"; rejected: 0; session_present: false; token_id: 32288721; version: 4;
26/12/2021 19:25:05 | mqtt session connection was closed (unexpected disconnect)node-red_sonnaz | clean: true; expiry_interval: 0; origin_id: 0; origin_type: 14; rejected: 0; session_present: false; token_id: 32288721; version: 4;
...
Which is not very explicit
On the node-red side, no really usefull logs neither:
26 Dec 19:24:09 - [info] [mqtt-broker:Flespi] Disconnected from broker: node-red_sonnaz@mqtts://mqtt.flespi.io:8883
26 Dec 19:25:05 - [info] [mqtt-broker:Flespi] Connected to broker: node-red_sonnaz@mqtts://mqtt.flespi.io:8883
26 Dec 19:25:05 - [info] [mqtt-broker:Flespi] Disconnected from broker: node-red_sonnaz@mqtts://mqtt.flespi.io:8883
...
Has anyone faced such kind of problem ?
Any suggestion on how I could investigate further ?
I also created a post on node-red's forum (https://discourse.nodered.org/t/mqtt-reconnection-failure-to-flespi-io/55768)
Thanks
Node-RED version: v2.1.4
Node.js version: v14.18.2
Linux 5.4.0-91-generic ia32 LE
Running as docker (alpine based)