-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT integration randomly disconnects #1244
Comments
Same here, i am using flespi.io mqtt broker. Everything worked fine until i missed some events from last night. In the helium console i saw that lora uplinks were received, but they had "integration errors". In the logs of flespi.io i can see every few seconds this pattern: In the DEBUG of console.helium.com i see Addendum: i just deleted the integration from the flow and the sessions disappeared from the console at flespi.io. After adding it again, the same happened as before, disconnect/connect/disconnect/connect/.... but...before it happened every ~5 seconds, now only every ~30 seconds. |
I installed my own Mosquitto server. From the debug log i can see that Helium creates a client for every device (and subscribes to the tx topic) linked to this integration. So far so good.
You see that "client ... already connected, closing old connection". Why? I see no reason why a once established connection should be periodically re-established. The only scenario which comes to my mind is: lorawan signal received -> function executed -> integration called -> mqtt established -> payload published -> mqtt disconnected. I guess i found it: |
Hosted console on console.helium.com with Org PetrkrNET, deviceID is not relevant as it is integration issue
Please describe your issue:
Connection to MQTT server randomly drops. On server side I can see only "client disconnected". Only way how to fix this is change connection URL and change it back, it forces reconnect.
I would suggest some auto-reconnect mechanism in console
In integration DEBUG in console is only "failed to publish"
"category": "uplink", "data": { "integration": { "id": "8d02629a-e814-4c87-9af9-360860e95f48", "name": "name mqtt", "status": "error" },
on server logs is
"Sep 14 18:40:04 server mosquitto[1272]: 1663173604: Client 7d1b46d3-f5fc-4c89-88fd-2f1b56f21c1b disconnected.
The text was updated successfully, but these errors were encountered: