"DEBUG: Attempting to (re)connect"
# help
k
After my device receives a "DEADLINE_EXCEEDED" error, the device gets stuck in this "DEBUG: Attempting to (re)connect" loop. It won't even reboot. It is set up with an MQTT-connection, and I think this somehow is the cause. How can I fix this?
The device is pending "reboot", but nothing is happening
f
Hmm. This looks like the MQTT client is too aggressive in reconnecting.
The latest version won't give up.
It's interesting that the logs still make it to the server.
So the client and server seem to be able to communicate just fine.
Not sure why the reboot isn't happening, though.
Could be that there are safe-guards to force the device to recover eventually, but I'm not sure if that will trigger, or at which time that would happen.
k
The max-offline parameter is set to 30 seconds, but I noticed this loop kept going for 15-20 minutes, dumping data live in the logs, instead of every 30 seconds. Then it just suddenly stopped, logs were frozen for a while, then it shutdown and restarted
All while the reboot was pending of course
f
I guess that's good.
This means that some watchdog finally triggered
I have it on my TODO list to improve the MQTT package to make it less aggressive. At the moment I'm busy with other things, but eventually...
7 Views