My whole home assistant smart home relies on MQTT with the mosquitto broker add-on. frigate camera sensors are unavailable, so is the whole zigbee2mqtt network.
at random times(it seems) the mqtt stops working. the binary sensors go unavailable, and no command can be send anymore to zigbee devices due to using z2m.
Here is the logs of the mosquitto broker, would love some steps to find the cause and to redemy it.
2024-02-01 20:28:51: New connection from 172.30.32.2:45424 on port 1883.
2024-02-01 20:28:51: Client <unknown> closed its connection.
2024-02-01 20:30:51: New connection from 172.30.32.2:56994 on port 1883.
2024-02-01 20:30:51: Client <unknown> closed its connection.
2024-02-01 20:32:51: New connection from 172.30.32.2:56334 on port 1883.
2024-02-01 20:32:51: Client <unknown> closed its connection.
2024-02-01 20:34:51: New connection from 172.30.32.2:52762 on port 1883.
2024-02-01 20:34:51: Client <unknown> closed its connection.
2024-02-01 20:35:42: Client frigate disconnected.
2024-02-01 20:35:57: New connection from 172.30.32.1:58160 on port 1883.
2024-02-01 20:35:57: New client connected from 172.30.32.1:58160 as frigate (p2, c1, k60, u'MQTT').
2024-02-01 20:36:22: Client frigate disconnected.
2024-02-01 20:36:35: New connection from 172.30.32.1:56278 on port 1883.
2024-02-01 20:36:35: New client connected from 172.30.32.1:56278 as frigate (p2, c1, k60, u'MQTT').
2024-02-01 20:36:51: New connection from 172.30.32.2:41138 on port 1883.
2024-02-01 20:36:51: Client <unknown> closed its connection.
2024-02-01 20:37:30: Saving in-memory database to /data//mosquitto.db.
2024-02-01 20:38:51: New connection from 172.30.32.2:56324 on port 1883.
2024-02-01 20:38:51: Client <unknown> closed its connection.
2024-02-01 20:40:51: New connection from 172.30.32.2:58886 on port 1883.
2024-02-01 20:40:51: Client <unknown> closed its connection.
2024-02-01 20:41:37: Client frigate has exceeded timeout, disconnecting.
2024-02-01 20:42:51: New connection from 172.30.32.2:47328 on port 1883.
2024-02-01 20:42:51: Client <unknown> closed its connection.
2024-02-01 20:44:51: New connection from 172.30.32.2:44372 on port 1883.
2024-02-01 20:44:51: Client <unknown> closed its connection.
2024-02-01 20:46:51: New connection from 172.30.32.2:49350 on port 1883.
2024-02-01 20:46:51: Client <unknown> closed its connection.
2024-02-01 20:48:51: New connection from 172.30.32.2:53790 on port 1883.
2024-02-01 20:48:52: Client <unknown> closed its connection.
2024-02-01 20:50:52: New connection from 172.30.32.2:50228 on port 1883.
2024-02-01 20:50:52: Client <unknown> closed its connection.
2024-02-01 20:52:52: New connection from 172.30.32.2:37378 on port 1883.
2024-02-01 20:52:52: Client <unknown> closed its connection.
2024-02-01 20:54:52: New connection from 172.30.32.2:34372 on port 1883.
2024-02-01 20:54:52: Client <unknown> closed its connection.
2024-02-01 20:56:52: New connection from 172.30.32.2:60720 on port 1883.
2024-02-01 20:56:52: Client <unknown> closed its connection.
2024-02-01 20:58:52: New connection from 172.30.32.2:39530 on port 1883.
2024-02-01 20:58:52: Client <unknown> closed its connection.
2024-02-01 21:00:52: New connection from 172.30.32.2:38952 on port 1883.
2024-02-01 21:00:52: Client <unknown> closed its connection.
At around 20:41 i got notification that the binary sensor of frigate went to unavailable. (could be there is a delay until these binary sensors go to unavailable, idk)
Restarting home assistant works, but this is ofcourse not a great solution if this happens like 3-4 times daily. EDIT: with a restart, i mean restarting the whole Host PC. restarting mosquitto or just the OS does not work.
Would super appriciate assistance, thanks!
EDIT: Here is a graph showing it becoming unavailable 32 minutes ago but also showing it happened more often. after a restart it is solved. https://i.imgur.com/fyqWbv8.png