No mqtt connection

I’m trying to sync some itemstates between OH2 and OH3 via mqtt.
mosquitto is running as docker-instance and working well.
OH3 connects and communicates without problems.

OH2 (cache cleaned, binding reinstalled, mqtt.config deleted - and restartet)
shows this log:

04-Nov-2020 11:19:46.994 [INFO ] [transport.mqtt.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.10.10'. Next attempt in 60000ms
04-Nov-2020 11:19:47.001 [INFO ] [e.smarthome.io.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.10.10' with clientid ohvm_202011041107
04-Nov-2020 11:20:47.004 [INFO ] [transport.mqtt.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.10.10'. Next attempt in 60000ms
04-Nov-2020 11:21:47.006 [INFO ] [transport.mqtt.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.10.10'. Next attempt in 60000ms
04-Nov-2020 11:21:47.014 [INFO ] [e.smarthome.io.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.10.10' with clientid ohvm_202011041107
04-Nov-2020 11:22:47.017 [INFO ] [transport.mqtt.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.10.10'. Next attempt in 60000ms

mosquitto toggles in the log:

==> /mosquitto/log/mosquitto.log <==
1604485424: New connection from 192.168.10.2 on port 1883.
1604485424: New client connected from 192.168.10.2 as ohvm_202011041107 (p2, c1, k60, u'mqtt').
1604485485: Socket error on client ohvm_202011041107, disconnecting.

Broker Thing State toggles between
OFFLINE
and
OFFLINE - COMMUNICATION_ERROR Timeout while waiting for CONNACK

And if I should get it to work - is there a reliable way of a two-way sync for some items possible?

Thank your for help.

1 Like
1 Like

That made my day!
Thank you.

1 Like