I have been using openhab 2.5 but my sdcard get corrupted so I choose to start from scratch.
Downloaded image and burned to a new sd card 16 GB.
Initialization was ok.
make binding to Mosquitto. OK
I have installed Mosquitto from openhabian-config.
it reported OK up and running in the background.
Unable to connect using MQTT.fx Saying connection refused
From PuTTY
systemctl status Mosquitto report OK.
Trying Mosquitto_sub with test message.
it works with -h localhost.
it dont work with -h 192.168.1.110
This would suggest that .110 is not the IP address of your RPi. Is your IP address reserved in your router settings, or was it specified in your old SD card’s wifi config file? If the latter, you need to do that again and then reboot so that it will get assigned correctly by your router.
Personally, I prefer to do all DHCP reservations at the router, but I know that’s not possible for everyone.
The ip address is fix and comeback from the router, so this not the problem.
I have not given any username and password to the brokker.
This was not needed before. Could that be an issue?
This tell me that localhost is ok.
192.168.1.110 is the correct ip-address, so why can’t it be used?
From the mosquito.log:
1637162226: Config loaded from /etc/mosquitto/mosquitto.conf.
1637162226: Starting in local only mode. Connections will only be possible from clie>
1637162226: Create a configuration file which defines a listener to allow remote acc>
1637162226: For more details see https://mosquitto.org/documentation/authentication->
1637162226: Opening ipv4 listen socket on port 1883.
1637162226: Opening ipv6 listen socket on port 1883.
1637162226: mosquitto version 2.0.11 running
1637162226: mosquitto version 2.0.11 terminating
1637162226: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1637162230: mosquitto version 2.0.11 starting
1637162230: Config loaded from /etc/mosquitto/mosquitto.conf.
1637162230: Starting in local only mode. Connections will only be possible from clie>
1637162230: Create a configuration file which defines a listener to allow remote acc>
1637162230: For more details see https://mosquitto.org/documentation/authentication->
1637162230: Opening ipv4 listen socket on port 1883.
1637162230: Opening ipv6 listen socket on port 1883.
1637162230: mosquitto version 2.0.11 running
1637170719: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1637172520: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1637174321: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1637176121: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1637177922: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
1637178575: New connection from ::1:44010 on port 1883.
1637178575: New client connected from ::1:44010 as auto-378C4E3B-4B9B-0645-2ECC-8F74>
1637178808: Client auto-378C4E3B-4B9B-0645-2ECC-8F7411ECE431 closed its connection.
1637179724: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
637230630: mosquitto version 2.0.11 starting
1637230630: Config loaded from /etc/mosquitto/mosquitto.conf.
1637230630: Starting in local only mode. Connections will only be possible from clients running on this machine.
1637230630: Create a configuration file which defines a listener to allow remote access.
1637230630: For more details see Authentication methods | Eclipse Mosquitto
1637230630: Opening ipv4 listen socket on port 1883.
1637230630: Opening ipv6 listen socket on port 1883.
Strange i’m sure that my conf has the allow_anonymous true
Here it is:
Place your local configuration in /etc/mosquitto/conf.d/
A full description of the configuration file is at
Please correct the thread title. You neither upgraded nor does it have anything to do about openHABian.
(or not even openHAB so it seems). And it’s openHAB 3.1, not openHABian. Thank you.
I am sorry if this is not correct.
I don’t know how to change the thread.
I have upgraded to openHAB 3.1.
This has given the mqtt problem.
I think I’m not the only person who has problem with MQTT after upgrade. It seems that some sort of configuration file has to be setup. The documentation in openHAB don’t telle who to do it and then it’s needed.
I have tried to solve this for more than a week now.