[SOLVED] MQTT Typo: loalhost instead of localhost

Tags: #<Tag:0x00007f617dbe9660> #<Tag:0x00007f617dbe8c60>

Hi,
during the installation von the new MQTT binding (2.5.6) I mad a typo loalhost instead of localhost
Now the broker tries to connect to loalhost and give error messages:

2020-06-29 15:02:31.721 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to ‘loalhost’. Next attempt in 60000ms
2020-06-29 14:52:31.650 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘loalhost’ with clientid 23251d6f-540e-49fb-a62f-a6d94b0a2ce5

I am looking where this information is stored, but don’t find the config.file
Thanks for any hint
Georg

[SOLVED] - Post 8

Found MQTT config files: /var/lib/openhab2/config/org/eclipse/smarthome - deleted the config files (mqttbroker.config; mqttembeddedbroker.config).
Restarted openhab2 - now it is working.

You need to look in PaperUI or your xxxx.things file, whichever yo chose to use, for the entries that you made for a Bridge broker Thing.

Thanks rossko57!

My things file looks like:

Bridge mqtt:broker:xxxxxxxmqtt [ host=“192.168.xxx.xx”,
secure=false,
port=1883,
qos=0,
retain=false,
clientid=“Oh2Mqtt2Thing”,
//certificate="",
//certificatepin=false,
//publickey="",
//publickeypin=false,
keep_alive_time=30000,
reconnect_time=60000,
//lastwill_message="",
//lastwill_qos=1,
//lastwill_topic="",
username=“mouser”,
password=“mypassword”
]
{ Thing topic strings {
Channels:
Type string : mqtt_test “Test String [%s]”
}

}

And this information is also in PaperUI.
But I am missing the loalhost entry.
Thanks Georg

The error seems to come from a different connection because the clientID does not match the one from your things file.
Which broker(s?) did you install?

If you messed this up, then edited it, you will need to restart the binding to pick up the edit.

I installed MOSQUITTO - thought this is the best alternative.

#Place your local configuration in /etc/mosquitto/conf.d/
#A full description of the configuration file is at
#/usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d

No files in /etc/mosquitto/conf.d.
no file /var/run/mosquitto.pid available

Not sure what to do?

Exactly what rossko57 said. Either restart the MQTT bundle in the Karaf console or restart openHAB itself to pick up the changes you made to your .things files. Changes are not always picked up automatically from .things files.

Solved:
Found MQTT config files: /var/lib/openhab2/config/org/eclipse/smarthome - deleted the config files (mqttbroker.config; mqttembeddedbroker.config).
Restarted openhab2 - now it is working.
Georg