MQTT Connection lost every time an update is pushed

After change of client ID:
mysql.config:

localbroker.url=tcp://localhost:1883

# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a default one is generated.
localbroker.clientId=openhab1

# Optional. User id to authenticate with the broker.
#<broker>.user=<user>

# Optional. Password to authenticate with the broker.
#<broker>.pwd=<password>

# Optional. Set the quality of service level for sending messages to this broker.
# Possible values are 0 (Deliver at most once),1 (Deliver at least once) or 2
localbroker.qos=0

# Optional. True or false. Defines if the broker should retain the messages sent to
# it. Defaults to false.
localbroker.retain=true

Log file (after reboot):

2016-11-03 21:20:23.083 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'localbroker'
2016-11-03 21:20:23.105 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to broker was lost
Connection lost (32109) - java.io.EOFException
    at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:138)[197:org.openhab.io.transport.mqtt:1.9.0.201611020212]
    at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
Caused by: java.io.EOFException
    at java.io.DataInputStream.readByte(DataInputStream.java:267)[:1.8.0_65]
    at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:56)[197:org.openhab.io.transport.mqtt:1.9.0.201611020212]
    at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:100)[197:org.openhab.io.transport.mqtt:1.9.0.201611020212]
    ... 1 more
2016-11-03 21:20:23.111 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'oh2mqtt' was lost: Connection lost : ReasonCode 32109 : Cause : null
2016-11-03 21:20:23.125 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restore connection to broker 'oh2mqtt'
2016-11-03 21:20:33.130 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'oh2mqtt'
2016-11-03 21:20:33.147 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to broker was lost
Connection lost (32109) - java.io.EOFException
    at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:138)[197:org.openhab.io.transport.mqtt:1.9.0.201611020212]
    at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
Caused by: java.io.EOFException
    at java.io.DataInputStream.readByte(DataInputStream.java:267)[:1.8.0_65]
    at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:56)[197:org.openhab.io.transport.mqtt:1.9.0.201611020212]
    at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:100)[197:org.openhab.io.transport.mqtt:1.9.0.201611020212]
    ... 1 more
2016-11-03 21:20:33.151 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'localbroker' was lost: Connection lost : ReasonCode 32109 : Cause : null
2016-11-03 21:20:33.153 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restore connection to broker 'localbroker'


For some reason, both the old and new broker ids are both trying to connect. And both getting booted.

1 Like