MQTT Broker wont start again

Hi :slight_smile:

Yesterday I got everything working with the Mosquitto broker and got connection to all my DIY mode Sonoff devices running. But today the broker wont even start when I click “START”?

This is my config:

logins:
  - username: mqtt
    password: password
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

I get not error logs or nothing. I have tested to uninstall and install again, restarting, rebooting, you name it.

Running on Ubuntu Server 18.04.

Any idea?

/ Oskar

Check if ubuntu is not running mosquitto.

Hi,
since i want a stable mqtt broker i decided to not use the docker addon but run mosquitto on the host.

sudo apt-add-repository -y ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install -y mosquitto
sudo apt-get install mosquitto-clients

This way mqtt runs fine, my devices can communicate with the broker even when ha isnt running and i already have mosquitto_sub & pub as a command for my “internal” scripts.

1 Like

I run mosquitto on the host too. (and samba, ssh, zigbee2mqtt). I prefer to run these on the host instead of using add-ons for them. They keep running even if HA is not.

Hm… It seems like it?

sudo systemctl status mosquitto
mosquitto.service - LSB: mosquitto MQTT v3.1 message broker
   Loaded: loaded (/etc/init.d/mosquitto; generated)
   Active: active (running) since Wed 2020-04-01 07:54:17 UTC; 1h 40min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1382 ExecStart=/etc/init.d/mosquitto start (code=exited, status=0/SUCCESS)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/mosquitto.service
           └─1403 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf

Apr 01 07:54:17 ha-server systemd[1]: Starting LSB: mosquitto MQTT v3.1 message broker..
Apr 01 07:54:17 ha-server mosquitto[1382]:  * Starting network daemon: mosquitto
Apr 01 07:54:17 ha-server mosquitto[1382]:    ...done.
Apr 01 07:54:17 ha-server systemd[1]: Started LSB: mosquitto MQTT v3.1 message broker.