me again with another error . So I´m running HA on a RPi3 installed by die AIO-Installer. HA seems to work perfectly, the problem is with Mosquitto. It´s restarting every few minutes. I´m running the AIO default config but I added a bridge to CloudMQTT. The error occures with and without the bridge settings.
Aug 20 19:17:01 HomeAssistant systemd[1]: mosquitto.service start operation timed out. Terminating.
Aug 20 19:17:01 HomeAssistant mosquitto[22888]: 1471713421: Error in poll: Interrupted system call.
Aug 20 19:17:01 HomeAssistant mosquitto[22888]: 1471713421: mosquitto version 1.4.9 terminating
Aug 20 19:17:01 HomeAssistant mosquitto[22888]: 1471713421: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
Aug 20 19:17:01 HomeAssistant systemd[1]: Failed to start Mosquitto MQTT Broker daemon.
Aug 20 19:17:01 HomeAssistant systemd[1]: Unit mosquitto.service entered failed state.
Aug 20 19:17:03 HomeAssistant systemd[1]: mosquitto.service holdoff time over, scheduling restart.
Aug 20 19:17:03 HomeAssistant systemd[1]: Stopping Mosquitto MQTT Broker daemon...
Aug 20 19:17:03 HomeAssistant systemd[1]: Starting Mosquitto MQTT Broker daemon...
Aug 20 19:17:03 HomeAssistant mosquitto[22953]: 1471713423: mosquitto version 1.4.9 (build date 2016-06-18 14:51:33+0200) starting
I would try starting mosquitto without a configuration file and see if it happens. If no then it’s most likely something in the configuration file.
You could also try reinstalling the mosquitto package to be certain that it’s not a corrupted file or simliar.
When Mosquitto is installed by the Home Assistant All in One installer, the included Mosquitto configuration will keep it from running until you’ve set up a user/password combination with the mosquitto_passwd command.
Have a look at the video here to see how that works.
Did you ever solve this? I think I have the same problem. I don’t see anything in the Home Assistant log and I don’t know where to check the Mosquitto log, but if I manually subscribe to a topic like this:
mosquitto_sub -d -u user -P pass -t test
I keep getting disconnected. I also trying a windows client and an Android client and they have the same issue. It happens about once per minute.
No not really. I´m running CloudMQTT now since i only use it for Owntracks. But still can´t bridge it to my local Mosquitto because of that reason. So yeah i´m stucked to CloudMQTT.