System info:
Raspberry pi3 running Buster with OHS2
i been having problem to connect my mosquitto to my 433Mhz sensor, basically this problem when i check my logs mosquitto.log (11.5 KB)
somthing about connection and socket i think…
I have done everything from scratch over and over with different options of setup and no luck.
This happend after i upgraded to the latest OH and Buster… even though i tried to do the same setup on Stretch but its still the same problem!
its fresh install and i only installed mosquitto once by apt-get install mosquitto, with openhab i have installed these : MQTT Broker Moquette, MQTT Binding, MQTT Persistence.
i just uninstalled the above and only left the main mosquitto for buster and its the same problem!
here is my logs:mosquitto.2.log (12.7 KB)
@opus
if i understod you right, i reinstalled MQTT Broker Moquette from OH, i just did but nothing has changed!
by the way, my mosquitto seems to be running ok even when i check it with MQTT.fx in Windows.
here is my status which is showing all good:
pi@raspberrypi:/var/log/mosquitto $ sudo systemctl status mosquitto
● 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 Thu 2020-04-23 13:10:34 EDT; 17min ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Main PID: 411 (mosquitto)
Tasks: 1 (limit: 2077)
Memory: 2.2M
CGroup: /system.slice/mosquitto.service
└─411 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Then restart mosquito an make sure mqttfx can send and receive to the broker first then to the 433mhz system.
Once these work start openHAB. Make sure you can still connect with mqttfx. If so move to setting up openHAB.
If mosquito breaks when you start openHAB then you have some conflicting mqtt setup there hence the message from mosquito saying address in use.
@Thedannymullen
Unfortunately i have tried this before, i tried so many possibilities but it seems to be mosquitto issue or maybe the new Buster version for rpi
when i hit this line mosquitto_sub -u admin -P adminpassword -v -h 192.168.2.140 -p 1883 -t '#'
i do receive signal from my 433mhz door sensor
also my logs now seems to be changed for better, i can see it receiving the signal here : mymosquitto.log (182.1 KB)
using MQTT.fx i do get signal between both no problem
when i run ./RFmqtt which is inside my 433Utils/RPi
i receive nothing, i do think its the mosquitto problem still for some reason
the rfmqtt its the communication to Openhab