mosquitto (message broker) – staus: active (exited)

Recently I had the problem that mosquitto‘s status was “active (exited)” – therefore no MQTT messages got handled and transferred to my local influx database instance.

Even restarting the service did not help.

After some tinkering around I found out: obviously the server did an unplanned reboot (power failure) and therefore mosquitto’s database got damaged. I did not even try to find a fix on how to repair (feel free to add a comment) – I just deleted the db-file.

systemctl stop mosquitto
rm /var/lib/mosquitto/mosquitto.db
systemctl start mosquitto

After that, mosquitto is up and running again.


  1. Rob.

    Thank you! Fixed my mosquitto with the help of your post! Have a nice day! o)

Leave a Reply

Your email address will not be published. Required fields are marked *