I think i found it. i had multiple warning in my log with
Unable to connect to the MQTT broker: Connection Refused: not authorised
As a last resourse ik rebuild the complete mqtt container, and when i was add the part off making the user (passwordfile) i got the following warning.
Warning: File /mosquitto/config/mqttuser has world readable permissions. Future versions will refuse to load this file.
Warning: File /mosquitto/config/mqttuser owner is not root. Future versions will refuse to load this file.Warning
After changing the permission off the file it worked again. I think also that i would have worked in with the ‘old’ container.
I had the same issue. For me it seemed to be that my persistence database was corrupted or something. I moved/deleted data/mosquitto.db and then the container finally started up.
I also deinstalled Mosquitto and reinstalled it. MQTT didn’t need any reconfiguration - a simple reboot and all was well with nothing missing, as far as I could tell.
I had the same issue when I updated my Mosquitto Container image (long over due!) in Aug 2024
Corrected my problem by making sure the the Container folder i.e. in my case /opt/mosquitto
and password file i.e. in my case /opt/mosquitto/passwd, both had the correct permissions for Ownership, Group and Access control.
My Ownership = my pi username, Group = root
sudo chown 0700 /opt/mosquitto # command to setup correct permissions for Ownership of mosquitto
sudo chown 0700 /opt/mosquitto/passwd #to set the correct permissions for Ownership on file passwd
sudo chmod 0700 /opt/mosquitto # command to setup correct permissions Access Control of mosquitto
sudo chmod 0700 /opt/mosquitto/passwd #to set the correct permissions Access Control on file passwd