MQTT Connection Issues: Seeking Advice on Troubleshooting

Hello everyone, I’ve been experiencing some puzzling MQTT connection issues with my setup. Every day at around 6:25 AM, the connection to my Mosquitto broker gets lost. I’ve checked the logs, but since I only keep the last four days, I can’t pinpoint when this started. I’m using OwnTracks and ot-recorder on the same Raspberry Pi, but I’m not sure if that’s related. Here’s the error message I’m seeing:

2017-02-20 06:25:28.468 [ERROR] [o.i.t.m.i.MqttBrokerConnection] - MQTT connection to broker was lost
org.eclipse.paho.client.mqttv3.MqttException: Connection lost

The connection seems to recover quickly, taking only about 12 milliseconds, but I’m still concerned about potential message loss during this brief downtime. I rely heavily on MQTT for various automations, so ensuring a stable connection is crucial.

I’ve tried increasing the logging verbosity to get more insights, but I’m not sure where else to look. Has anyone encountered similar issues or have suggestions on how to diagnose this further? I’d appreciate any tips or experiences you’ve had with MQTT connection stability. Thanks in advance for your help!