I highly doubt docker integrated itself info the service function, so I’m still pretty sure you have mosquitto installed locally. Run this
systemctl disable mosquitto
systemctl stop mosquitto
and reboot again.
I highly doubt docker integrated itself info the service function, so I’m still pretty sure you have mosquitto installed locally. Run this
systemctl disable mosquitto
systemctl stop mosquitto
and reboot again.
Thanks, it seems this has solved the issue! I have no idea how it got installed. ![]()
It might have solved the issue with conflicting ports. But there is still some sort of issue.
This morning, watchtower nupdated nhomeassistant, dupicati and mosquitto containers. It looked like mosquitto container was running correctly using docker sudo ps, but HA could not get or send any MQTT messages. Even restarting both HA and mosquitto container did not solve it but rebooting the entire machine fixed it.
I’m not sure where to find the actual container logs. Of course I can see the logs if starting the container in the foreground, but when I run it with -d I dont know where they go.
docker.compose
volumes:
- /home/user/docker/mosquitto/conf/data:/var/lib/mosquitto
- /home/user/docker/mosquitto/conf:/etc/mosquitto
- /home/user/docker/mosquitto/conf/mosquitto.conf:/mosquitto/config/mosquitto.conf
This is my mosquitto.conf:
listener 1883
persistence true
persistence_location /var/lib/mosquitto
allow_anonymous false
password_file /etc/mosquitto/passwd
log_dest file /mosquitto/log/mosquitto.log
Cannot find that log dir anywhere, I guess I messed up the mappings here.
docker logs {container-name} will show the looks even when the container is run with the -d flag