Java Runtime Environment: which java platform is used and what version
openHAB version: 3
Issue of the topic: please be detailed explaining your issue
Please post configurations (if applicable):
Items configuration related to the issue
Sitemap configuration related to the issue
Rules code related to the issue
Services configuration related to the issue
If logs where generated please post these here using code fences:
Yesterday I started seeing MQTT disconnections in the log. I spent several hours trying to resolve what I thought was as mosquitto problem but the issue is in OH3. For some reason it is creating another broker which is unable to connect to mosquitto. The ‘real’ broker is still connected but the errors were throwing me.
2021-02-09 19:37:51.212 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘192.168.0.211’ with clientid MQTT2
2021-02-09 19:38:45.398 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to ‘192.168.0.211’. Next attempt in 60000ms
2021-02-09 19:38:45.444 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to ‘192.168.0.211’ with clientid 6eb41d88-5355-488a-b66f-65ac21309720
The new broker is unable to connect and floods the log. I’ve removed the settings in MQTT.cfg in case that was causing an issue.but it still happens. The broker is a ‘systemBroker’ and reappears in the Inbox if I delete it.
How can I get rid of it?
Removing the text in the Settings part rather than the Things stops the error - apart from an error on startup because it’s not configured. Got to ask why it’s there. Rich Koshak in a post somewhere says it’s something to do with the (now obsolete) internal broker.
Correct. Seems to have been an oversight, and should have been removed when the internal broker was also removed! Strange that the System Broker tries to set itself up for some, but not for others - you’re not the first with this issue, as you’ve seen, but I don’t see the same at all. What are you running openHAB 3 on?
It’s on a Raspberry Pi with the broker on a Synology NAS. I upgraded to OH3 on Sunday (with some issues which I eventually resolved).
It ran fine until about 6pm yesterday evening when it suddenly started to throw the error.
Do you happen to know wether an IssueReport was filed on that already?
Looking at my test-system I see a similar thing. It used to be connected to an external broker via a Broker Thing. This broker was shutdown and a broker on another external device was started. I created a new Broker Thing which is working, however now I’m getting the above posted messages every minute which are coming from a System Broker (never created!) using the settings of the shutdown broker connection. This System Broker appears in the Inbox, no matter if removed directly or after creating a Thing from it, it will reappear after the next Scan or Restart.
Yeah, mine was a clean install. Would be interesting to see if those who have this issue are all upgrades. Had you ever used the inbuilt openHAB MQTT broker in your OH2 setup?