Hello,
I installed openhab 3 and in openhab-config I installed Mqtt without of problems.
Now I try to into OH to add the mqtt-broker via mqtt-binding. But can’t get it online. Everytime he shows communication error.
What’s the right way to do?
Thank you
Thank you for your reply. Now I startet a fresh OH3 installation and now its´s working fine. Last time I booting OH3 from a USB SSD - do you know if that could be the problem.
Is it nessesary to use SSD at OH3, because of the SD crash?
Changing to OH3 shouldn’t matter - risks are still the same as they ever where. I guess the only difference is that OH3 has persistence on by default, so it is probably going to write more to your SD card.
There are quite a few people here who run from an SSD - I’m fairly certain our resident Australian @denominator does, and he uses MQTT.
Another option might be to use openHABian, which will use ZRAM to reduce SD card fatigue.
Most importantly though: use a good quality SD card, and a good quality power supply, and make sure not to just remove power from the Pi - always shut down first.
The MQTT Broker isn´t working - the bridge thing shows communication error in red and when I try to connect via MQTT.fx it shows "unable to connect to server.
Thanks for this hint. Ther was no directory /var/log/mosquitto nor a logfile. I created them both and changed the fileowner to mosquitto as you suggested. chown mosquitto /var/log/mosquitto/mosquitto.log
After that I could run the commands from above and resart the mosquitto service.
[14:26:04] openhabian@openHABianDevice:/var/log/mosquitto$ sudo /bin/systemctl status mosquitto.service
● mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-12-26 14:26:04 CET; 6s ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Main PID: 8178 (mosquitto)
Tasks: 1 (limit: 2182)
CGroup: /system.slice/mosquitto.service
└─8178 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Dec 26 14:26:04 openHABianDevice systemd[1]: Starting Mosquitto MQTT v3.1/v3.1.1 Broker...
Dec 26 14:26:04 openHABianDevice systemd[1]: Started Mosquitto MQTT v3.1/v3.1.1 Broker.
just discovered that still the binding shows a communication error but I proved with mqtt.fx that the broker is running.