recently i’ve been trying to get a mqtt service running with failures then finally success in the end. however, i have noticed something in the logs when starting openhab or stopping/starting the broker. i have multiple connections established when i only have one set up in /etc/openhab2/services/mqtt.cfg. the logs say:
i deleted the files in /var/lib/openhab2/cache/ and /var/lib/openhab2/tmp/ but nothing has changed. i’m still seeing the two connections.
i also started mosquitto in verbose mode and have 3 separate connections from the same IP address. only one of them has a subscription (the one i’m actually using).
is it really necessary to ssh into the Apache Karaf Console? openhab is installed onto the system im working on… the config files should be accessible in the first place, right?
Excellent work, thank you. I removed old brokers from /var/lib/openhab2/config/org/openhab/mqtt.config using sudo nano. The problem with old brokers now seems te be over.