I did the upgrade of Jessie to Stretch and Python to 3.6.3 yesterday, also my setup is on a Pi2 in virtualenv. I’ve mostly been following Bruh automation guides. After the upgrade, i get a mqtt error card in HA. Try to go through Bruh’s guide again, and it’s still installed, the config file is still there and still as it was before. trying to run mosquitto_sub
or .../pub
gives me Error: Connection refused
. I tried to delete the pwfile
and regenerate it, but no change. I google around and tried the following:
sudo systemctl enable mosquitto.service
sudo systemctl start mosquitto.service
sudo systemctl status mosquitto.service
but still nothing, even with restart of only HA. Now, if i run the command mosquitto
only, it seems to be starting. And then HA works after a restart, but not on reboot. I nano
into /etc/init/mosquitto.conf
, /etc/mosquitto/mosquitto.conf
and /etc/init.d/mosquitto
and they all look good.
TL;DR: I think i found the issue, I just don’t know how to fix it. The /etc/systemd/system/mosquitto.service
is missing, and i have no idea how to regenerate it. I’ve seen several inconsistent examples of what it should look like, so i’m thinking it should be generated and not copy/pasted. Any input on this?