Mosquitto broker disconnects all clients once per day

I am running home assistant supervised on a docker in dietpi. I installed the Mosquitto MQTT broker addon. Once per night, around 02:25:00, it disconnects with all the clients, as seen in this log:

2025-03-15 02:25:44: Client auto-401D9D04-AAA5-453E-938C-8A5873E95EB5 has exceeded timeout, disconnecting.
2025-03-15 02:25:44: Client auto-75877CB7-9E37-9D55-0E21-5135CDDA69B7 has exceeded timeout, disconnecting.
2025-03-15 02:25:44: Client auto-14E18699-9D6F-5571-492D-CA1B3E6596DD has exceeded timeout, disconnecting.
2025-03-15 02:25:45: New connection from 192.168.1.49:32833 on port 1883.
2025-03-15 02:25:45: New client connected from 192.168.1.49:32833 as auto-9D33D15F-DF92-C9C8-36D6-FEEC05F4289C (p2, c1, k60, u'username').
2025-03-15 02:25:45: New connection from 192.168.1.49:43469 on port 1883.
2025-03-15 02:25:45: New connection from 192.168.1.49:33457 on port 1883.
2025-03-15 02:25:45: New client connected from 192.168.1.49:43469 as auto-151B4254-09E6-DA81-1E91-FAA99B12F043 (p2, c1, k60, u'username').
2025-03-15 02:25:45: New client connected from 192.168.1.49:33457 as auto-47782434-609F-8870-26AD-053A8059D82A (p2, c1, k60, u'username').
2025-03-15 02:25:56: Client auto-D39FDD41-4E2B-CB07-C5A5-6BD303C46968 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-71B6FD23-1AF0-C17B-B10E-86CC3C2596E6 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-100F49CA-3E91-CD06-8193-78DE252E350D has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-C9F4464B-3005-922E-9537-971B65501093 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-0420EC6A-3B44-12A2-DED6-178F1A110884 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-E2BB1274-C24E-DB22-F93F-6F60AFACC909 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-E7F6B753-ACE7-7140-B4B7-43E3C8DF4FA2 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-934BB81E-2365-AFAE-1FEC-25EEEDA1DFD9 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-B7B7C7E4-0D2F-D414-C375-0C2B3C30A192 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-61ED20C9-CC0C-F047-B9AC-F169232C9E24 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-BDD60C4A-3CA7-1D68-A214-0E4B69D9DA11 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-2EC99F25-1A08-CB19-799F-0BAC3CA6751C has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-CF0A8459-ADA7-D7C9-82B8-95A5C883C819 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-6CA3237B-C72D-E908-2F4E-7B4D8936E73C has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-A4950279-1EFA-8749-3A4F-48558E4284D0 has exceeded timeout, disconnecting.
2025-03-15 02:25:56: Client auto-93B934B3-EFEB-0328-3BCC-B44AAD190AEE has exceeded timeout, disconnecting.
2025-03-15 02:25:57: New connection from 192.168.1.49:41365 on port 1883.
2025-03-15 02:25:57: New client connected from 192.168.1.49:41365 as auto-AECC10CC-104D-3FAB-2A44-EA7B0614905E (p2, c1, k60, u'username').
2025-03-15 02:25:57: New connection from 192.168.1.49:40625 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:59085 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:52043 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:36583 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:58771 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:38043 on port 1883.
2025-03-15 02:25:57: New client connected from 192.168.1.49:52043 as auto-D685D8CE-158E-9166-401F-F67EC642C87C (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:38043 as auto-F57069FE-F932-89BC-61E7-692BBA1F1B55 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New connection from 192.168.1.49:46333 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:60369 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:40549 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:43521 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:38343 on port 1883.
2025-03-15 02:25:57: New connection from 192.168.1.49:38195 on port 1883.
2025-03-15 02:25:57: New client connected from 192.168.1.49:59085 as auto-3D336168-9FD8-01C5-757D-CACFA1B40B70 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New connection from 192.168.1.49:50773 on port 1883.
2025-03-15 02:25:57: New client connected from 192.168.1.49:36583 as auto-CECBD7A9-A0C2-763B-1E6E-C4C389C66788 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:58771 as auto-1F06F875-4432-E6EF-1A1F-3CAD0B0FFAB1 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New connection from 192.168.1.49:41209 on port 1883.
2025-03-15 02:25:57: New client connected from 192.168.1.49:41209 as auto-AF5BBC74-E126-BC03-DA3A-75436E4A2B46 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New connection from 192.168.1.49:41231 on port 1883.
2025-03-15 02:25:57: New client connected from 192.168.1.49:60369 as auto-E68F55EF-4E5B-6214-1619-A81F8F395255 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:40549 as auto-6A77A0E5-1E5E-8427-5029-21438E58F73D (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:38343 as auto-8905700E-8C02-D792-A819-F0C8F713A271 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:50773 as auto-92D3AE41-A2C3-1329-2318-325A57DB7C4E (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:46333 as auto-70B275F6-67E1-7138-E023-B2C7A608D073 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:43521 as auto-80A7FCC1-BC5D-AE68-70CE-3F02918FC0E4 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:38195 as auto-97EEDBFC-2A25-EBA7-7738-A19AFA01C637 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:40625 as auto-10965F01-911C-816A-545D-82A65C8482F9 (p2, c1, k60, u'username').
2025-03-15 02:25:57: New client connected from 192.168.1.49:41231 as auto-CE3106B9-795C-367F-D0EE-6A9C7461F3FD (p2, c1, k60, u'username').
2025-03-15 02:26:26: Client auto-15B9ADC8-108C-0D49-D9B1-4BEDF39E5F9D has exceeded timeout, disconnecting.
2025-03-15 02:26:26: Client auto-87ED5630-7642-719A-14CC-603797021D56 has exceeded timeout, disconnecting.
2025-03-15 02:26:26: Client auto-11554F87-299E-EE96-9AC0-225F9B16558B has exceeded timeout, disconnecting.
2025-03-15 02:26:26: Client auto-8FAC7015-C081-C7FF-41A7-8F8AFF175184 has exceeded timeout, disconnecting.
2025-03-15 02:26:26: Client auto-B1A8B054-63EC-67A0-D00C-A8AC4004D93D has exceeded timeout, disconnecting.
2025-03-15 02:26:27: New connection from 192.168.1.49:51283 on port 1883.
2025-03-15 02:26:27: New connection from 192.168.1.49:36647 on port 1883.
2025-03-15 02:26:27: New connection from 192.168.1.49:43297 on port 1883.
2025-03-15 02:26:27: New client connected from 192.168.1.49:36647 as auto-55DA35FE-6F1F-619C-5947-A0A085C4CE35 (p2, c1, k60, u'username').
2025-03-15 02:26:27: New client connected from 192.168.1.49:51283 as auto-3E506452-642D-F437-B99A-DAC1EB42F84E (p2, c1, k60, u'username').
2025-03-15 02:26:27: New connection from 192.168.1.49:43985 on port 1883.
2025-03-15 02:26:27: New connection from 192.168.1.49:48989 on port 1883.
2025-03-15 02:26:27: New client connected from 192.168.1.49:43297 as auto-A3601BB5-990D-9F93-1E57-9FBEC16289AD (p2, c1, k60, u'username').
2025-03-15 02:26:27: New client connected from 192.168.1.49:43985 as auto-9C0E09F6-3B51-4D77-BBC1-084025A8E8F6 (p2, c1, k60, u'username').
2025-03-15 02:26:27: New client connected from 192.168.1.49:48989 as auto-DDBB1D44-85AA-18D3-9912-2AE085B49784 (p2, c1, k60, u'username').
2025-03-15 02:26:32: Client auto-FE55B526-0216-8844-720A-C4A0FF5D72D4 has exceeded timeout, disconnecting.
2025-03-15 02:26:32: Client auto-2949B467-36D0-B268-92AA-B5669E88553E has exceeded timeout, disconnecting.
2025-03-15 02:26:32: Client auto-37824C80-6218-1844-5741-E39CF555E01E has exceeded timeout, disconnecting.
2025-03-15 02:26:32: Client auto-3BDAF9F6-EC28-5566-4F3B-9812F8F1F115 has exceeded timeout, disconnecting.
2025-03-15 02:26:33: New connection from 192.168.1.49:55011 on port 1883.
2025-03-15 02:26:33: New connection from 192.168.1.49:49735 on port 1883.
2025-03-15 02:26:33: New client connected from 192.168.1.49:55011 as auto-712FBDE9-BEC3-9300-750B-F62EED14C48B (p2, c1, k60, u'username').
2025-03-15 02:26:33: New connection from 192.168.1.49:42359 on port 1883.
2025-03-15 02:26:33: New client connected from 192.168.1.49:49735 as auto-0269640F-F41F-FAAC-1C1F-7A6120830468 (p2, c1, k60, u'username').
2025-03-15 02:26:33: New client connected from 192.168.1.49:42359 as auto-341A0BAB-6EB5-F93D-DA44-293B95947E1B (p2, c1, k60, u'username').
2025-03-15 02:26:42: New connection from 172.30.32.1:43363 on port 1883.
2025-03-15 02:26:42: New client connected from 172.30.32.1:43363 as auto-1F69B468-86A6-7CE3-E9EC-E072F783A87D (p2, c1, k60, u'homeassistant').

What could cause this behavior? I found several suggestions pointing towards a killall -HUP command performed on a daily basis, or about a logrotate happening, but I have been searching around in all the system files but I cannot find any of this happening.

Your keep alive is 60 seconds I believe based on the connection message “k60”

Clients are being disconnected for >90 seconds. Mosquitto allows 1.5x keep alive before reconnect

Maybe your network is down during that time.
Router rebooting
Something using heavy data

Mosquitto isn’t rebooting so it seems to be online. This makes me believe HA is online. Problems could be HA internal network for addons but doubting that until your home network is confirmed

Test if your network worksv at 2:25

Thanks for your response. I will start monitoring my network for some time and get back to you later.

Until now, I don’t think that my network is down. I have tracked it for two nights, and both nights my MQTT disconnected all clients, but my laptop stayed online. If somebody has any more input, it would be appreciated.