Ubuntu’s MQTT-service

Ever since I moved from a Rpi to a NUC I’ve been working with Ubuntu, for me that means learning a lot in a short period of time.

Let me get to the point. Every time my NUC reboots for whatever reason, my HA MQTT-server won’t be able to start up. I’d have to SSH into my NUC:

sudo service mosquitto stop

This will stop Ubuntu’s Mosquitto service and only after that, my HA MQTT-server can start.

Is there a way to prevent this extra step I have to take every time Ubuntu reboots?

If you are not using this service, think about uninstalling, removing it.

Indeed! You cannot run two services on the same port.

But you are way better using mosquitto than the inbuilt home assistant broker.

Ok, thanks for your answers. Somehow this Ubuntu service came with an update of Ubuntu someday. I do not have a username nor password. My plan is to find that credentials, check whatever information is in this database and if it’s empty I’ll use it as my home automation base.

Ever since I used my method as described above no weird thing happened with Ubuntu. So I assume the Mosquitto database will be (almost) empty.

Just out of curiosity: What makes this Mosquitto service better than the HA MQTT broker?

I can’t remember. My wife thinks I have alzheimers.

  • it keeps running independent of HA
  • it updates with your normal ‘sudo apt update && sudo apt upgrade -y’ updates
  • if you have a problem, it is much easier to find a solution using google
1 Like