LOG INFO: Try to restore connection to IP & Starting MQTT broker connection every 60 seconds in LOG

Tags: #<Tag:0x00007f616d60a880>

Hello,

I´m running openhab on Raspberry PI 4 with openhabian 1.5 - fresh installation, 1 month old.
I configured several things and also an MQTT broker (using openhabian - so Mosquito directly on the Raspberry is used).

Here´s my mqtt.things configuration:

Bridge mqtt:broker:home “Mosquitto MQTT Broker @home” [
host=“localhost”,
secure=false,
port=1883,
qos=0,
retain=false,
clientid=“openhab”,
//certificate="",
//certificatepin=false,
//publickey="",
//publickeypin=false,
keep_alive_time=30000,
reconnect_time=60000,
//lastwill_message="",
//lastwill_qos=1,
//lastwill_topic="",
username=“openhabian”,
password=“password”
]

//Steckdose Waschmaschine RECHTS
Thing mqtt:topic:steckdose_waschmaschine “Steckdose Waschmaschine” (mqtt:broker:home) {

Type switch:channel1 “Steckdose Waschmaschine” [ stateTopic=“stat/steckdose_waschmaschine/POWER1”, commandTopic=“cmnd/steckdose_waschmaschine/POWER1”, on=“ON”, off=“OFF” ]
Type number:power “Steckdose Waschmaschine aktueller Verbrauch” [ stateTopic=“tele/steckdose_waschmaschine/SENSOR”, transformationPattern=“JSONPATH:$.ENERGY.Power”]

Everything is running fine, I can retrieve values and so on but in the LOG File I have the following INFO every MINUTE:

2020-07-05 17:15:49.579 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to ‘192.168.1.199’. Next attempt in 60000ms

2020-07-05 17:15:49.587 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘192.168.1.199’ with clientid c0830b37-35a0-4ee4-849c-741e2944e7c7

2020-07-05 17:16:49.595 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to ‘192.168.1.199’. Next attempt in 60000ms

2020-07-05 17:16:49.603 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘192.168.1.199’ with clientid c0830b37-35a0-4ee4-849c-741e2944e7c7

2020-07-05 17:17:49.606 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to ‘192.168.1.199’. Next attempt in 60000ms

2020-07-05 17:17:49.613 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘192.168.1.199’ with clientid c0830b37-35a0-4ee4-849c-741e2944e7c7

2020-07-05 17:18:49.621 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to ‘192.168.1.199’. Next attempt in 60000ms

192.168.1.199 is the IP address of my openhabian /raspberry.
Can anybody help me out how get rid of these information logs? Why is it loosing the connection and restoring it all the time?

My mqtt.items:

Switch Steckdose_Waschmaschine “Steckdose Waschmaschine” { channel=“mqtt:topic:steckdose_waschmaschine:channel1”}
Number Steckdose_Waschmaschine_Power “Aktueller Verbrauch [%.2f W]” { channel=“mqtt:topic:steckdose_waschmaschine:power”}
Number Steckdose_Waschmaschine_Status “Waschmaschinen Status”

Many thanks in advance!

Br,
Mario

Have you tried commenting out these two lines in your config?

You can also try just a basic config like:

Bridge mqtt:broker:pibroker "pibroker" [ host="10.0.1.15", port=1883, secure=false, username="xxxxxx", password="xxxxxxxx" ]

If that works without errors then add the extras you want one at a time to see what causes the error to return.

Do you have any invalid addons defined? That will cause ALL addons to reload every minute, trying to load the invalid one.

This could be an issue especially if you restored a configuration from an older OH version.

1 Like

Tried your suggestion but the Log Info stays the same.

Anyhow you input is much appreciated!

No. It was a complete new installation of openhab. All other addons/bindings are running smoothly.

Remove the @home part in your bridge config.

Have a look in your PaperUI for multiple broker Things

Removed the @home part. Logs are still the same…

In the Paper UI there´s only one Thing regarding MQTT:

MQTT Broker
mqtt:broker:home
Status: Online

Any other ideas? Thank you.

Have a look at its properties. I was curious that the log you are reporting does not have the same clientid as your things file.

Hm…i´m configuring everything with the files in Visual Studio. Anyhow I checked also settings in Paper UI but couldn´t find anything about it.

Still the same log entries every few minutes:

[.reconnect.PeriodicReconnectStrategy] - Try to restore connection to ‘192.168.1.199’. Next attempt in 60000ms

[.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘192.168.1.199’ with clientid 89077518-cc96-4dfb-9bc7-c7ebe12e820c

If you couldn’t find anything, you’re looking in the wrong place. Clearly you have at least one broker Thing.