I can barely read the log because hundreds of lines coming in every second.
Also my commands being executed are being delayed by approx. 20-30 seconds.
Just make sure to watch the logs and allow OH to fully restart between each restart. Usually takes me 2 restarts for everything to start working again.
openhab> bundle:list -s | grep mqtt
203 x Active x 80 x 1.2.2 x org.eclipse.paho.client.mqttv3
219 x Active x 80 x 1.1.2 x com.hivemq.client.mqtt
251 x Active x 80 x 2.5.3 x org.openhab.binding.mqtt
252 x Active x 81 x 2.5.3 x org.openhab.binding.mqtt.generic
253 x Active x 82 x 2.5.3 x org.openhab.binding.mqtt.homeassistant
254 x Active x 82 x 2.5.3 x org.openhab.binding.mqtt.homie
263 x Active x 80 x 2.5.0 x org.openhab.core.io.transport.mqtt
Mosquitto - and it has been in place for approx 3+ years without this issue.
In PaperUI I see MQTT binding (2.5.3) installed; under services I can see a service called “MQTT system broker connection”. Could this cause a problem?
I changed the loglevel first to trace, then to debug - when I did this, the messages stopped for approx. 10 seconds. Afterwards it went back the “flooding” mode. Need to download the logfile(s) as I’m unable to see anything with frontail
After going crazy for an afternoon, I ended up with these messages in my log:
2020-04-18 19:21:12.567 [hingStatusInfoChangedEvent] - 'mqtt:topic:mosquitto:esp_mqtt' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Session expired as connection was closed.
2020-04-18 19:24:22.192 [hingStatusInfoChangedEvent] - ‘mqtt:broker:mosquitto’ changed from OFFLINE (COMMUNICATION_ERROR): io.netty.channel.AbstractChannel$AnnotatedConnectException: Verbindungsaufbau abgelehnt: /192.168.1.50:1883 to OFFLINE
2020-04-18 19:24:22.215 [hingStatusInfoChangedEvent] - 'mqtt:broker:mosquitto' changed from OFFLINE to OFFLINE (COMMUNICATION_ERROR): io.netty.channel.AbstractChannel$AnnotatedConnectException: Verbindungsaufbau abgelehnt: /192.168.1.50:1883
Since I didn’t change anything in my config, I guess I’ll open a case on github now.
Are you running this on a RPI with SD card? If so check the power supply is good and try using a different SD card as they are prone to corruption after some time.
It’s an RPi, but only the boot partition is on SD card, the rest has been moved to an USB SSD two years ago. After a few hours the problem vanished and I don’t know why. But at least it’s working again.