Home Assistant can't connect to Mosquitto Broker after restore

I’m running Home Assistant on a VM in UnRaid. It was working great, until I had a hiccup with my UnRaid today. After getting UnRaid back up and running and my Home Assistant VM back online, I noticed none of my MQTT Devices were available. I had an automatic full back up from 5am this morning, so I restored that, but I end up in the same boat.

Mosquitto Broker starts fine, but in the logs I get a message:
Warning: Mosquitto should not be run as root/administrator.
mosquitto: persist_read.c:550: persist__restore_sub: Assertion `client_id’ failed.

Zigbee2MQTT has this error in the logs:
Zigbee2MQTT:error 2023-09-19 19:20:56: MQTT error: connect ECONNREFUSED 172.30.33.0:1883

And Home Assistant has this error:
Failed to connect to MQTT server due to exception: [Errno 111] Connection refused

I set up my Mosquitto Broker a long time ago, according to this tutorial:

But if I try to re-configure the MQTT Integration I get a failed to connect error, even though I know I’m using the right MQTT user and password.

I’ve been able to get it all set back up and running again, by deleting the MQTT Integration and Mosquitto Broker, then setting it back up, but I custom name most of my entities in MQTT so I’d rather not have to do that. Any help would be greatly appreciated!!!

1 Like