guild icon
Toit
#"DEBUG: Attempting to (re)connect"
Thread channel in help
Koirin
Koirin 02/07/2023 02:06 PM
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?
Koirin
Koirin 02/07/2023 02:07 PM
The device is pending "reboot", but nothing is happening
floitsch
floitsch 02/07/2023 03:02 PM
Hmm.
This looks like the MQTT client is too aggressive in reconnecting.
floitsch
floitsch 02/07/2023 03:02 PM
The latest version won't give up.
floitsch
floitsch 02/07/2023 03:03 PM
It's interesting that the logs still make it to the server.
floitsch
floitsch 02/07/2023 03:03 PM
So the client and server seem to be able to communicate just fine.
floitsch
floitsch 02/07/2023 03:04 PM
Not sure why the reboot isn't happening, though.
floitsch
floitsch 02/07/2023 03:05 PM
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.
Koirin
Koirin 02/07/2023 03:09 PM
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
Koirin
Koirin 02/07/2023 03:10 PM
All while the reboot was pending of course
floitsch
floitsch 02/07/2023 03:17 PM
I guess that's good.
floitsch
floitsch 02/07/2023 03:17 PM
This means that some watchdog finally triggered
floitsch
floitsch 02/07/2023 03:19 PM
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...
13 messages in total