I have installed mosquitto on my HA build using this instruction “https://www.youtube.com/watch?v=pBKAjdXUHl4”. After the installation it worked, but as soon as I rebooted my system, the mosquitto.service did not start anymore
Dec 11 09:56:29 vlappsrv001 systemd[1]: Started Mosquitto MQTT Broker daemon.
and from the HA log: 2018-12-11 09:52:31 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect due to exception: [Errno 111] Connection refused.
hope someone can help me getting this to work on my HA installation.
Yes, that worked form me, but in the instruction they mentioned that mosquito must start before homeassistant. I have configured that as they mentioned in the film. Than the first time the service started. But after a reboot it does not anymore.
Nobody has time to look through a video of some hackers idea about what you should do. Paste what you have done here, so we can see what the actual problem is.
Messing around with an installed packages start up routine is not to be done lightly, even when you know what you are doing. Blindly copying some nice man off the internet is just foolhardy.
However I think if you remove the -d from the end of this line it might just work
@gpbenton, thanks, that worked. I understand that I should not mess around. But I had searched the forum and did not find a install procedure. So I expanded my search on google. If you would advise another way I would like to here it.
Although in theory, mosquitto needs to be started before HA, in practice HA starts so much slower these days that mosquitto is up and running before HA is ready to use it, unless something else is happening - such as network problems. So I haven’t done anything at all with my current setup.
Previously, I had done something like this, but I had just added the wants= line to the homeassistant.service file. Changing the mosquitto startup wasn’t necessary, and I don’t think it is now.
Having said that, I was told by someone else on the forum that adding the Wants= line doesn’t ensure that mosquitto is ready when HA starts, only that it has been started, so that its no guarantee everything will work anyway.
But maybe I am not the best person to ask about restarts