MQTT connections "looping" - Transfer from Pi4 to Pi5 (?)

Dear all,
i have an existing pi4 setup that i did transfer to my new pi5 yesterday. mostly all works fine, after some minor fixing. except that i see this strange behaviour now about my MQTT connections. they come and go every few seconds.

I did completely backup-restore and i’m using config files, so its a 100% clone of MQTT config.
Also strange/in line the fact that it happens to external HiveMQ and my local Mosquitto instance…so its something about the binding/config of it.

Many Thanks for your help,
Norbert

2024-03-29 06:14:30.909 [INFO ] [rg.openhab.core.model.script.VenusGX] - MQTT Keep Alive Trigger
2024-03-29 06:14:40.384 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to 'broker.hivemq.com'. Next attempt in 60000ms
2024-03-29 06:14:40.384 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'broker.hivemq.com' with clientid a0b082d5eb75706969
2024-03-29 06:14:42.071 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.11'. Next attempt in 60000ms
2024-03-29 06:14:42.071 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.11' with clientid openhab99
2024-03-29 06:14:43.731 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.95'. Next attempt in 60000ms
2024-03-29 06:14:43.731 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.95' with clientid openhab
2024-03-29 06:14:54.049 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.rules'
2024-03-29 06:15:00.482 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to 'broker.hivemq.com'. Next attempt in 60000ms
2024-03-29 06:15:00.482 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'broker.hivemq.com' with clientid a0b082d5eb75706969
2024-03-29 06:15:00.909 [WARN ] [ing.mqtt.internal.action.MQTTActions] - MQTT publish to R/0c1c57111e38/system/0/Serial failed!
2024-03-29 06:15:00.909 [INFO ] [rg.openhab.core.model.script.VenusGX] - MQTT Keep Alive Trigger
2024-03-29 06:15:02.076 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.11'. Next attempt in 60000ms
2024-03-29 06:15:02.077 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.11' with clientid openhab99
2024-03-29 06:15:03.742 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.95'. Next attempt in 60000ms
2024-03-29 06:15:03.743 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.95' with clientid openhab
2024-03-29 06:15:04.327 [WARN ] [ui.basic.internal.servlet.CmdServlet] - Received unknown command '---' for item 'RestO2state'
2024-03-29 06:15:20.588 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to 'broker.hivemq.com'. Next attempt in 60000ms
2024-03-29 06:15:20.589 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 'broker.hivemq.com' with clientid a0b082d5eb75706969
2024-03-29 06:15:22.082 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.11'. Next attempt in 60000ms
2024-03-29 06:15:22.082 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.11' with clientid openhab99
2024-03-29 06:15:23.758 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.95'. Next attempt in 60000ms
2024-03-29 06:15:23.758 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.95' with clientid openhab

Hi, make sure you don‘t have two instances that try ro conneyt with the same client ID. They will kick each other out repeatedly…

Thanks for your feedback. I just checked via GUI the things in place. only a single Thing per broker. also the config files are unchanged from before. could it be that due to my setup last night (changing of various files) somehow OH4 did clone something and now has multiple Things in place. will reboot now.

@BobMiles

I found the issue, also due to your feedback. I asked the admins to remove this item. but if they keep it here is the solution to my stupid problem i produced myself.

Keept my Pi4 still in the ntework to check compare systems. However the old Openhab did connect to the mosquitto (if the IP address that changed over to Pi5, so both Pi’s did connect to Pi5) as well, of course with the same logins (clientids).

Sorry to bother you, and thanks for your hint!

Don‘t worry, i‘ve been there, too!