Hey there, sorry for my bad English.
I have a problem with MQTT.
I had the same Problem already with obenhab 2 and now with openHAB 3.
I installed openHAB 3 on my Raspberry PI 4 an added an Broker.
all worked fine but after a time might a restart the broker wont work.
COMMUNICATION_ERROR
CONNECT failed as CONNACK contained an Error Code: NOT_AUTHORIZED.
What is your MQTT Broker? Mosquitto? Have you confirmed that your broker has actually started? What is your broker configuration? Does it have a username and password?
hi @hafniumzinc, I have the same problem with mqtt broker.
I use mosquitto and it’s active, I don’t have username and password, I’m using openhabian 3.2.0, broker configuration in oh it’s my raspberry ip, port 1883.
Hope you can help me
thank you
What is permission of the dirctory /var/log/mosquitto: ls -ld /var/log/mosquitto/
What is the content of your log file /var/log/mosquitto/mosquitto.log ?
What is the output of sudo netstat -tulpn | grep 1883
This means that mosquitto is running and listening only to MQTT traffic on the host itself.
Traffic and requests from local network via ethernet are not taken into account as it is not listening on the ethernet internface.
What does that mean ?
I understand that it does not work but does also the netstat command deliver the same result or a different one ? In case it is different how does it look now ?