Ankündigung

Einklappen
Keine Ankündigung bisher.

MQTT Verbindung bricht immer wieder ab

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    MQTT Verbindung bricht immer wieder ab

    Hallo zusammen,

    habe seid kurzem ein Problem mit meiner MQTT Verbindung. Diese bricht ca. alle 10 sek ab. Habe den MQTT Server und Openhab schon mehrfach neugestartet. Bis jetzt hatte ich noch nie Probleme damit.

    Jemand eine Idee was ich machen kann? Anliegend Config und Log.

    Code:
    2019-06-15 22:39:45.106 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restoring connection to broker 'mqtt'
    2019-06-15 22:39:55.107 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mqtt'
    2019-06-15 22:40:05.222 [WARN ] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'mqtt' was lost: Connection lost : ReasonCode 32109 : Cause : null
    2019-06-15 22:40:05.222 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restoring connection to broker 'mqtt'
    2019-06-15 22:40:15.222 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mqtt'
    2019-06-15 22:40:25.285 [WARN ] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'mqtt' was lost: Connection lost : ReasonCode 32109 : Cause : null
    2019-06-15 22:40:25.285 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restoring connection to broker 'mqtt'
    2019-06-15 22:40:35.285 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mqtt'
    2019-06-15 22:40:45.871 [WARN ] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'mqtt' was lost: Connection lost : ReasonCode 32109 : Cause : null
    2019-06-15 22:40:45.871 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restoring connection to broker 'mqtt'
    2019-06-15 22:40:55.871 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mqtt'
    2019-06-15 22:41:06.029 [WARN ] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'mqtt' was lost: Connection lost : ReasonCode 32109 : Cause : null
    2019-06-15 22:41:06.029 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restoring connection to broker 'mqtt'
    2019-06-15 22:41:16.030 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mqtt'
    2019-06-15 22:41:26.109 [WARN ] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'mqtt' was lost: Connection lost : ReasonCode 32109 : Cause : null
    2019-06-15 22:41:26.109 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restoring connection to broker 'mqtt'
    2019-06-15 22:41:36.110 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mqtt'
    2019-06-15 22:41:46.161 [WARN ] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'mqtt' was lost: Connection lost : ReasonCode 32109 : Cause : null
    2019-06-15 22:41:46.161 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restoring connection to broker 'mqtt'
    2019-06-15 22:41:56.161 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mqtt'
    2019-06-15 22:42:06.238 [WARN ] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'mqtt' was lost: Connection lost : ReasonCode 32109 : Cause : null
    2019-06-15 22:42:06.238 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restoring connection to broker 'mqtt'
    2019-06-15 22:42:16.239 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mqtt'
    mqtt.cfg
    Code:
    mqtt.url=tcp://<ip>:1883
    mqtt.clientId=openhab2
    mqtt.config
    Code:
    mqtt.clientId="openhab2"
    mqtt.url="tcp://<ip>:1883"
    service.pid="org.openhab.mqtt"

    #2
    Wie schon gesagt, doppelte Client-ID's vermeiden:

    https://community.openhab.org/t/mqtt...-again/76431/2

    Kommentar


      #3
      Daran hatte ich auch schon gedachte, jedoch habe ich schon länger nichts mehr neues erstellt was mit dem Server kommuniziert und die gleiche ID haben könnte.

      Als ich gerade in das Log File geschaut habe, ist mir aufgefallen das die Nacht keine Probleme da waren, ohne das ich irgendwas verändert habe.

      Habe die ID aber trotzdem mal geändert und schaue ob es noch weitere Probleme gibt.
      Zuletzt geändert von Defjam121; 16.06.2019, 10:45.

      Kommentar

      Lädt...
      X