Mosquitto connection lost every 24hrs

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Posts: 3
Joined: Mon Apr 12, 2021 10:01 pm

Mosquitto connection lost every 24hrs

Post by RobLeighton67 »

Problem: Mosquitto connection lost every 24hrs - using default cron jobs and settings ...
Running 7.6.2 but issue has happened with all previous builds I think.

My local application client is disconnected (for 5 mins or so) from the Dietpi Mosquitto broker every 24hrs of run time.
Could this be caused by a cron job (read that logrotate can restart mosquiito) ?
I'm using hourly RAM log at the moment though and the only cron.daily jobs are


Anyone got any ideas what might be causing the problem ? - I have ruled out DHCP lease renewal of my network affecting localhost resolution by setting a 7 day lease time and even going static IP.
User avatar
Posts: 6525
Joined: Sat Nov 16, 2019 12:49 am

Re: Mosquitto connection lost every 24hrs

Post by Joulinar »

if you know the timestamp this happen around, you could have a look to journalctl or dmesg to check what happen at that time.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply