MQTT broker - Server closed connection without DISCONNECT

Tags: #<Tag:0x00007f616cd33d10> #<Tag:0x00007f616cd33bf8> #<Tag:0x00007f616cd33a68>

I have two separate OH installs, both running 2.5.0 #1776. Both have an mqtt broker which has stopped working with the following error:

Server closed connection without DISCONNECT

mosquitto_sub works fine. Anyone else experiencing this?

Do you publish to topics from rules? If so, are you subscribed to those topics in a channel?

Hi Jan,

No publishing done at all, it’s purely read-only.

Put the binding on DEBUG mode and post the logs

Hi Vincent,

I’ve set what I think is the correct logging?

openhab> log:get|grep -i mqtt
org.eclipse.paho.client.mqttv3                     x DEBUG
org.eclipse.smarthome.binding.mqtt                 x DEBUG
org.eclipse.smarthome.binding.mqtt.generic         x DEBUG
org.eclipse.smarthome.io.transport.mqtt            x DEBUG
org.openhab.binding.mqtt                           x DEBUG
org.openhab.binding.mqtt.generic                   x DEBUG
openhab>

The logs aren’t showing anything except this:

2019-12-13 13:42:56.769 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '10.0.1.15' with clientid spcgw
2019-12-13 13:43:18.111 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:sPanicButtons form topic: /SPCGW/ALARM_ZONE_6/STATUS
2019-12-13 13:43:18.114 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:AlarmStatus form topic: /SPCGW/ALARM_AREA_1/STATUS
2019-12-13 13:43:18.115 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:sGuestWC form topic: /SPCGW/ALARM_ZONE_7/STATUS
2019-12-13 13:43:18.115 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:iFrontWindows form topic: /SPCGW/ALARM_ZONE_3/INPUT
2019-12-13 13:43:18.116 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:eSIA form topic: /SPCGW/SIA_EVENT
2019-12-13 13:43:18.116 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:iFrontDoor form topic: /SPCGW/ALARM_ZONE_1/INPUT
2019-12-13 13:43:18.117 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:sBeamHall form topic: /SPCGW/ALARM_ZONE_2/STATUS
2019-12-13 13:43:18.117 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:sFrontWindows form topic: /SPCGW/ALARM_ZONE_3/STATUS
2019-12-13 13:43:18.118 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:iUpstairs form topic: /SPCGW/ALARM_ZONE_5/INPUT
2019-12-13 13:43:18.118 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:iHallPIR form topic: /SPCGW/ALARM_ZONE_2/INPUT
2019-12-13 13:43:18.119 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:iGuestWC form topic: /SPCGW/ALARM_ZONE_7/INPUT
2019-12-13 13:43:18.119 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:sUpstairs form topic: /SPCGW/ALARM_ZONE_5/STATUS
2019-12-13 13:43:18.120 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:sBackArea form topic: /SPCGW/ALARM_ZONE_4/STATUS
2019-12-13 13:43:18.120 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:iPanicButtons form topic: /SPCGW/ALARM_ZONE_6/INPUT
2019-12-13 13:43:18.121 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:iBackArea form topic: /SPCGW/ALARM_ZONE_4/INPUT
2019-12-13 13:43:18.121 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Unsubscribed channel mqtt:topic:alarm:sFront_Door_MQTT form topic: /SPCGW/ALARM_ZONE_1/STATUS
2019-12-13 13:43:18.141 [WARN ] [g.mqtt.handler.AbstractBrokerHandler] - Tried to unsubscribe {} from  discovery topic {} on broker {} but topic not registered for listener. Check discovery logic!
2019-12-13 13:43:18.141 [WARN ] [g.mqtt.handler.AbstractBrokerHandler] - Tried to unsubscribe {} from  discovery topic {} on broker {} but topic not registered at all. Check discovery logic!
2019-12-13 13:43:18.141 [WARN ] [g.mqtt.handler.AbstractBrokerHandler] - Tried to unsubscribe {} from  discovery topic {} on broker {} but topic not registered for listener. Check discovery logic!
2019-12-13 13:43:18.144 [WARN ] [g.mqtt.handler.AbstractBrokerHandler] - Tried to unsubscribe {} from  discovery topic {} on broker {} but topic not registered at all. Check discovery logic!
2019-12-13 13:43:18.164 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '10.0.1.15' with clientid spcgw
2019-12-13 13:43:18.180 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:AlarmStatus
2019-12-13 13:43:18.182 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:iFrontDoor
2019-12-13 13:43:18.182 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:iHallPIR
2019-12-13 13:43:18.182 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:iFrontWindows
2019-12-13 13:43:18.183 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:iBackArea
2019-12-13 13:43:18.183 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:iUpstairs
2019-12-13 13:43:18.183 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:iPanicButtons
2019-12-13 13:43:18.183 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:iGuestWC
2019-12-13 13:43:18.183 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:eSIA
2019-12-13 13:43:18.183 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:sFront_Door_MQTT
2019-12-13 13:43:18.183 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:sBeamHall
2019-12-13 13:43:18.183 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:sFrontWindows
2019-12-13 13:43:18.183 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:sBackArea
2019-12-13 13:43:18.184 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:sUpstairs
2019-12-13 13:43:18.184 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:sPanicButtons
2019-12-13 13:43:18.184 [DEBUG] [.MqttChannelStateDescriptionProvider] - Adding state description for channel mqtt:topic:alarm:sGuestWC
2019-12-13 13:43:28.180 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '10.0.1.15'. Next attempt in 60000ms
2019-12-13 13:43:28.186 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '10.0.1.15' with clientid spcgw

Have I set debug logging correctly?

Yes as indicated by DEBUG mentioned in the logs.

If you change back to OH 2.5M5 does this happen?

Did you try to clear cache?

I have downgraded to 2.5.0~M5-1 and cleared the cache. Still getting this error though…

Uninstall the binding, stop OH, clean the cache, reboot (give it a few minuets to get back up and running, watch the logs) and then reinstall the binding.

BTW are you using PaperUI, addons.cfg or console for installing?

This is most likely a bug or something goes severly wrong in your setup. Pleas show your bundle list.

@H102 I did that but it’s still the same. I’m using addons.cfg:

 binding = airquality,astro,chromecast,exec,icloud,mqtt,nest,networkupstools1,ntp,openweathermap,samsungtv,tplinksmarthome,tradfri,unifi,zwave

@J-N-K Here are the bundles:

          __  _____    ____
  ____  ____  ___  ____  / / / /   |  / __ )
 / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  |
/ /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /
\____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/
/_/                        2.5.0.M5
               Milestone Build

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.

openhab> bundle:list
START LEVEL 100 , List Threshold: 50
 ID β”‚ State    β”‚ Lvl β”‚ Version                 β”‚ Name
────┼──────────┼─────┼─────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 19 β”‚ Active   β”‚  80 β”‚ 5.3.1.201602281253      β”‚ OSGi JAX-RS Connector
 20 β”‚ Active   β”‚  80 β”‚ 2.8.2.v20180104-1110    β”‚ Gson: Google Json Library for Java
 21 β”‚ Active   β”‚  80 β”‚ 18.0.0                  β”‚ Guava: Google Core Libraries for Java
 22 β”‚ Active   β”‚  80 β”‚ 27.1.0.jre              β”‚ Guava: Google Core Libraries for Java
 23 β”‚ Active   β”‚  80 β”‚ 1.0.1                   β”‚ Guava InternalFutureFailureAccess and InternalFutures
 24 β”‚ Active   β”‚  80 β”‚ 3.0.0.v201312141243     β”‚ Google Guice (No AOP)
 25 β”‚ Active   β”‚  80 β”‚ 4.8.35.v20190528-1517   β”‚ ClassGraph
 29 β”‚ Active   β”‚  80 β”‚ 3.5.5                   β”‚ JmDNS
 31 β”‚ Active   β”‚  80 β”‚ 1.0.0                   β”‚ Units of Measurement API
 33 β”‚ Active   β”‚  80 β”‚ 1.1.0.Final             β”‚ Bean Validation API
 35 β”‚ Active   β”‚  80 β”‚ 2.0.1                   β”‚ javax.ws.rs-api
 36 β”‚ Active   β”‚  80 β”‚ 2.9.2                   β”‚ Joda-Time
 37 β”‚ Active   β”‚  80 β”‚ 0.5.8                   β”‚ Jollyday
 38 β”‚ Active   β”‚  80 β”‚ 3.2.0.v201101311130     β”‚ ANTLR Runtime
 40 β”‚ Active   β”‚  80 β”‚ 3.2.1                   β”‚ Commons Collections
 41 β”‚ Active   β”‚  80 β”‚ 1.1                     β”‚ Commons Exec
 42 β”‚ Active   β”‚  80 β”‚ 2.2.0                   β”‚ Commons IO
 43 β”‚ Active   β”‚  80 β”‚ 2.6                     β”‚ Commons Lang
 52 β”‚ Active   β”‚  80 β”‚ 4.2.7                   β”‚ Apache Karaf :: OSGi Services :: Event
 67 β”‚ Active   β”‚  80 β”‚ 1.4.7.1                 β”‚ Apache ServiceMix :: Bundles :: xstream
 70 β”‚ Active   β”‚  80 β”‚ 4.14.0                  β”‚ Apache XBean OSGI Bundle Utilities
 71 β”‚ Active   β”‚  80 β”‚ 4.14.0                  β”‚ Apache XBean :: Classpath Resource Finder
 72 β”‚ Active   β”‚  80 β”‚ 2.12.0.v20160420-0247   β”‚ EMF Common
 73 β”‚ Active   β”‚  80 β”‚ 2.12.0.v20160420-0247   β”‚ EMF Ecore
 74 β”‚ Active   β”‚  80 β”‚ 2.11.0.v20160420-0247   β”‚ EMF Change Model
 75 β”‚ Active   β”‚  80 β”‚ 2.12.0.v20160420-0247   β”‚ EMF XML/XMI Persistence
 76 β”‚ Active   β”‚  80 β”‚ 3.10.400.v20190516-1504 β”‚ Common Eclipse Runtime
105 β”‚ Active   β”‚  80 β”‚ 0.8.0.v20190822-0801    β”‚ org.eclipse.lsp4j
106 β”‚ Active   β”‚  80 β”‚ 0.8.0.v20190822-0801    β”‚ org.eclipse.lsp4j.jsonrpc
107 β”‚ Active   β”‚  80 β”‚ 2.19.0.v20190902-0728   β”‚ Xtend Runtime Library
108 β”‚ Active   β”‚  80 β”‚ 2.19.0.v20190902-0728   β”‚ Xtend Macro Interfaces
109 β”‚ Active   β”‚  80 β”‚ 2.19.0.v20190902-0737   β”‚ Xtext
110 β”‚ Active   β”‚  80 β”‚ 2.19.0.v20190902-0952   β”‚ Xtext Common Types
111 β”‚ Active   β”‚  80 β”‚ 2.19.0.v20190902-0737   β”‚ Xtext IDE Core
112 β”‚ Active   β”‚  80 β”‚ 2.19.0.v20190902-0737   β”‚ Xtext Utility
113 β”‚ Active   β”‚  80 β”‚ 2.19.0.v20190902-0952   β”‚ Xbase Model
114 β”‚ Active   β”‚  80 β”‚ 2.19.0.v20190902-0952   β”‚ Xbase Generic IDE Services
115 β”‚ Active   β”‚  80 β”‚ 2.19.0.v20190902-0728   β”‚ Xbase Runtime Library
130 β”‚ Active   β”‚  80 β”‚ 1.9.6                   β”‚ MIME streaming extension
132 β”‚ Active   β”‚  80 β”‚ 7.1.0                   β”‚ org.objectweb.asm.commons
133 β”‚ Active   β”‚  80 β”‚ 7.1.0                   β”‚ org.objectweb.asm.tree
134 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Core
135 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Audio
136 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: OAuth2Client
137 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Binding XML
138 β”‚ Active   β”‚  90 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Boot
139 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Configuration Core
140 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Configuration Discovery
141 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Configuration mDNS Discovery
142 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Configuration Dispatcher
143 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Configuration XML
144 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Ephemeris
145 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: ID
146 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Console
147 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
148 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: HTTP Interface
150 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Monitor
151 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Network I/O
152 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: REST Interface
153 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Audio REST Interface
154 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: REST Interface :: Core
155 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: REST mDNS Announcer
156 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: REST JAX-RS Optimizations
157 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Sitemap REST Interface
158 β”‚ Resolved β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: SSE Interface
159 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Voice REST Interface
160 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: mDNS Service
161 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Karaf Integration
162 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Core
163 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Items
164 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Item IDE
165 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Items Runtime
166 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Language Server
167 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Persistence
168 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Persistence IDE
169 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Persistence Runtime
170 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Rules
171 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Rule IDE
172 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Rules Runtime
173 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Script
174 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Script IDE
175 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Script Runtime
176 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Sitemap
177 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Sitemap IDE
178 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Sitemap Runtime
179 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Thing
180 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Thing IDE
181 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Model Thing Runtime
182 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Persistence
183 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Scheduler Service
184 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Semantics
185 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: JSON Storage
186 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Thing
187 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Thing XML
188 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Transformation Service
189 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: UI
190 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: UI Icon Support
191 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Voice
201 β”‚ Active   β”‚  80 β”‚ 1.4.0                   β”‚ ThreeTen-Extra
202 β”‚ Active   β”‚  80 β”‚ 1.0.3                   β”‚ Units of Measurement Common Library
203 β”‚ Active   β”‚  80 β”‚ 1.0.10                  β”‚ Units of Measurement Implementation for Java SE
206 β”‚ Active   β”‚  80 β”‚ 1.0.7                   β”‚ Californium (Cf) OSGi Bundle
207 β”‚ Active   β”‚  80 β”‚ 1.1.1.201605111122      β”‚ Swagger Provider
208 β”‚ Active   β”‚  80 β”‚ 2.9.10                  β”‚ Jackson-annotations
209 β”‚ Active   β”‚  80 β”‚ 2.9.10                  β”‚ Jackson-core
210 β”‚ Active   β”‚  80 β”‚ 2.9.10                  β”‚ jackson-databind
211 β”‚ Active   β”‚  80 β”‚ 2.9.10                  β”‚ Jackson-dataformat-YAML
212 β”‚ Active   β”‚  80 β”‚ 3.15.0.OH2              β”‚ nrjavaserial
213 β”‚ Active   β”‚  80 β”‚ 1.0.0                   β”‚ IO.Socket Engine Client
214 β”‚ Active   β”‚  80 β”‚ 1.0.0                   β”‚ IO.Socket Socket Client
215 β”‚ Active   β”‚  80 β”‚ 1.5.8                   β”‚ swagger-annotations
216 β”‚ Active   β”‚  80 β”‚ 1.5.8                   β”‚ swagger-core
217 β”‚ Active   β”‚  80 β”‚ 1.5.8                   β”‚ swagger-jaxrs
218 β”‚ Active   β”‚  80 β”‚ 1.5.8                   β”‚ swagger-models
219 β”‚ Active   β”‚  80 β”‚ 1.9.2                   β”‚ Jackson JSON processor
220 β”‚ Active   β”‚  80 β”‚ 1.9.2                   β”‚ Data mapper for Jackson JSON processor
221 β”‚ Active   β”‚  80 β”‚ 3.19.0.GA               β”‚ Javassist
222 β”‚ Active   β”‚  80 β”‚ 20180813.0.0            β”‚ JSON in Java
223 β”‚ Active   β”‚  80 β”‚ 1.10.0                  β”‚ Apache Commons Codec
224 β”‚ Active   β”‚  80 β”‚ 3.2.1                   β”‚ Apache Commons Lang
225 β”‚ Active   β”‚  80 β”‚ 3.3.0                   β”‚ Commons Net
226 β”‚ Active   β”‚  80 β”‚ 4.2.3                   β”‚ Apache HttpClient OSGi bundle
227 β”‚ Active   β”‚  80 β”‚ 4.2.3                   β”‚ Apache HttpCore OSGi bundle
228 β”‚ Active   β”‚  80 β”‚ 3.1.0.7                 β”‚ Apache ServiceMix :: Bundles :: commons-httpclient
229 β”‚ Active   β”‚  80 β”‚ 3.8.1.1                 β”‚ Apache ServiceMix :: Bundles :: okhttp
230 β”‚ Active   β”‚  80 β”‚ 1.13.0.1                β”‚ Apache ServiceMix :: Bundles :: okio
231 β”‚ Active   β”‚  80 β”‚ 1.0.7                   β”‚ element-connector
232 β”‚ Active   β”‚  80 β”‚ 1.0.7                   β”‚ Scandium (Sc) Core
233 β”‚ Active   β”‚  80 β”‚ 2.5.2                   β”‚ JUPnP Library
234 β”‚ Active   β”‚  80 β”‚ 1.14.0.M5               β”‚ openHAB XBMC Action
235 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Airquality Binding
236 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Astro Binding
237 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Chromecast Binding
238 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Exec Binding
239 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: iCloud Binding
240 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Nest Binding
241 β”‚ Active   β”‚  80 β”‚ 1.14.0.M5               β”‚ openHAB NetworkUpsTools Binding
242 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: NTP Binding
243 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: OpenWeatherMap Binding
244 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: SamsungTV Binding
245 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: TP-Link Smart Home Binding
246 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: TRΓ…DFRI Binding
247 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: ZWave Binding
248 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Automation
249 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Automation Media Modules
250 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Automation Script Modules
251 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Automation Script RuleSupport
252 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Automation REST API
253 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: 1.x Compatibility Layer
254 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Configuration UPnP Discovery
255 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Configuration USB-Serial Discovery
256 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Configuration USB-Serial Discovery for Linux using sysfs scanning
257 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Configuration Serial
258 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Serial Transport
259 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Serial Transport for RXTX
260 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: Serial Transport for RFC2217
261 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: UPnP Transport
262 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Extension Service :: Eclipse IoT Marketplace
263 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: IO :: Java Sound Support
264 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: IO :: openHAB Cloud Connector
265 β”‚ Active   β”‚  80 β”‚ 1.14.0.M5               β”‚ openHAB MQTT Transport Bundle
266 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: IO :: Web Audio Support
267 β”‚ Active   β”‚  80 β”‚ 1.14.0.M5               β”‚ openHAB InfluxDB Persistence bundle
268 β”‚ Active   β”‚  80 β”‚ 1.14.0.M5               β”‚ openHAB MapDB Persistence Bundle
269 β”‚ Active   β”‚  80 β”‚ 1.14.0.M5               β”‚ openHAB MQTT Persistence Bundle
270 β”‚ Active   β”‚  80 β”‚ 1.14.0.M5               β”‚ openHAB RRD4j Persistence Bundle
271 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Transformation Service :: Exec
272 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Transformation Service :: JavaScript
273 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Transformation Service :: JSonPath
274 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Transformation Service :: Map
275 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Transformation Service :: RegEx
276 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Transformation Service :: Scale
277 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Transformation Service :: XPath
278 β”‚ Active   β”‚  75 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: Transformation Service :: Xslt
279 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB UI :: Bundles :: Basic UI
280 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB UI :: Bundles :: Classic UI
281 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB UI :: Bundles :: HABmin UI
282 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB UI :: Bundles :: HomeBuilder UI
283 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB UI :: Bundles :: Icon Set :: Classic
284 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB UI :: Bundles :: Paper UI
285 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB UI :: Bundles :: HABPanel UI
286 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB UI :: Bundles :: openHAB REST API Documentation
287 β”‚ Active   β”‚  80 β”‚ 1.23.0                  β”‚ SnakeYAML
288 β”‚ Active   β”‚  80 β”‚ 0.9.10.v20160429-1435   β”‚ reflections (wrap)
289 β”‚ Active   β”‚  80 β”‚ 1.5.8.v20160511-1038    β”‚ swagger-jersey2-jaxrs (wrap)
292 β”‚ Active   β”‚  80 β”‚ 1.1.2                   β”‚ hivemq-mqtt-client
293 β”‚ Active   β”‚  80 β”‚ 4.1.42.Final            β”‚ Netty/Buffer
294 β”‚ Active   β”‚  80 β”‚ 4.1.42.Final            β”‚ Netty/Codec
295 β”‚ Active   β”‚  80 β”‚ 4.1.42.Final            β”‚ Netty/Codec/HTTP
296 β”‚ Active   β”‚  80 β”‚ 4.1.42.Final            β”‚ Netty/Common
297 β”‚ Active   β”‚  80 β”‚ 4.1.42.Final            β”‚ Netty/Handler
298 β”‚ Active   β”‚  80 β”‚ 4.1.42.Final            β”‚ Netty/Resolver
299 β”‚ Active   β”‚  80 β”‚ 4.1.42.Final            β”‚ Netty/Transport
300 β”‚ Active   β”‚  80 β”‚ 4.1.42.Final            β”‚ Netty/Transport/Native/Epoll
301 β”‚ Active   β”‚  80 β”‚ 4.1.42.Final            β”‚ Netty/Transport/Native/Unix/Common
302 β”‚ Active   β”‚  80 β”‚ 2.2.5                   β”‚ rxjava
303 β”‚ Active   β”‚  80 β”‚ 2.1.2                   β”‚ Java Concurrency Tools Core Library
304 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: MQTT Broker Binding
305 β”‚ Active   β”‚  81 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: MQTT Things and Channels
306 β”‚ Active   β”‚  82 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
307 β”‚ Active   β”‚  82 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: MQTT Homie Convention
308 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Core :: Bundles :: MQTT Transport
309 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB UI :: Bundles :: Dashboard UI
310 β”‚ Active   β”‚  80 β”‚ 1.0.2                   β”‚ reactive-streams
311 β”‚ Active   β”‚  80 β”‚ 0                       β”‚ wrap_file__usr_share_openhab2_runtime_system_com_google_dagger_dagger_2.20_dagger-2.20.jar
312 β”‚ Active   β”‚  80 β”‚ 2.5.0.M5                β”‚ openHAB Add-ons :: Bundles :: UniFi Binding

The mqtt binding listed is for M5 … does it make a difference???

You could try stopping OH and delete /var/lib/openhab2/config/org/openhab/addons.config (just what’s inside the file not the file itself) so it is regenerated with correct content after rebooting.

Also have you added any mqtt jar files in usr/share/openhab2/addons in the past?

I’m not sure what you mean?

I cleared /var/lib/openhab2/config/org/openhab/addons.config and rebooted - the file has been updated.

I’m still seeing the same error though.

I did use jar files in the addons folder in the past, but they are now part of the core so there’s nothing in that folder except for openhab-addons-2.5.0.M5.kar

Sorry my eye’s got crossed and thought I saw OH version 2.5M1.:roll_eyes:

Only other thing I can think to try is removing it from addons.cfg and installing from PaperUI.:thinking:

Do you still need the kar file with OH version 2.5M5? I’m running the same version and do not have this file.

Also try cleaning the cache after each change to make sure it’s all clean when reinstalling.

You have mqtt1 bundles installed. This has been reported as a problem before. Try removing them. And some reconnect issues have been fixed after m5, at best try the last snapshot (rc1 has a bug with subscriptions).

1 Like

Nice catch, I gotta get some new glasses.:upside_down_face:

@h102 I probably don’t need that .kar anymore alright

@J-N-K I deleted the mqtt1 bundles, cleared the cache upgraded to the latest snapshot.

Still the same error. I’m starting to wonder if I should wipe and reinstall…

That’s always the last resort for me but sometimes needed. Test it on just one of your machines first and see what happens.

Make sure you have a backup and it works!:wink:

Another note, in the past I have needed to clean cache and reboot several times (three reboots when I upgraded to M5) to get OH to work. Have you tried that?

@roryd if it’s not to late set the log to TRACE and post the results. May get some additional clues to what’s going on.

You can also check github for issues, both open and closed. https://github.com/openhab/openhab2-addons/issues?q=is%3Aissue+MQTT+is%3Aclosed

Maybe this one is similar https://github.com/openhab/openhab2-addons/issues/6438

Hmm, I set log to TRACE and I now see this:

2019-12-13 15:46:03.672 [TRACE] [.transport.mqtt.MqttBrokerConnection] - Subscriber list is empty after removing org.openhab.binding.mqtt.discovery.TopicSubscribe@77ea8d7, unsubscribing topic +/+/$homie from client
2019-12-13 15:46:03.672 [TRACE] [.transport.mqtt.MqttBrokerConnection] - Unsubscribing message consumer for topic '+/+/$homie' from broker '10.0.1.15'
2019-12-13 15:46:03.673 [TRACE] [g.mqtt.handler.AbstractBrokerHandler] - Unsubscribed org.openhab.binding.mqtt.homie.internal.discovery.Homie300Discovery@5a3361f0 from discovery topic +/+/$homie on broker mqtt:broker:4b368bb4
2019-12-13 15:46:03.689 [TRACE] [.transport.mqtt.MqttBrokerConnection] - Closing the MQTT broker connection '10.0.1.15'
2019-12-13 15:46:03.696 [TRACE] [.transport.mqtt.MqttBrokerConnection] - Tried to unsubscribe org.openhab.binding.mqtt.discovery.TopicSubscribe@22228766 from topic homeassistant/#, but subscriber list is empty
2019-12-13 15:46:03.697 [TRACE] [g.mqtt.handler.AbstractBrokerHandler] - Unsubscribed org.openhab.binding.mqtt.homeassistant.internal.discovery.HomeAssistantDiscovery@589486d5 from discovery topic homeassistant/# on broker mqtt:broker:4b368bb4
2019-12-13 15:46:03.711 [TRACE] [g.mqtt.handler.AbstractBrokerHandler] - Subscribed org.openhab.binding.mqtt.homie.internal.discovery.Homie300Discovery@3069fefe to discovery topic +/+/$homie on broker mqtt:broker:4b368bb4
2019-12-13 15:46:03.725 [TRACE] [g.mqtt.handler.AbstractBrokerHandler] - Subscribed org.openhab.binding.mqtt.homie.internal.discovery.Homie300Discovery@3069fefe to discovery topic +/+/$homie on broker mqtt:broker:4b368bb4
2019-12-13 15:46:03.744 [TRACE] [g.mqtt.handler.AbstractBrokerHandler] - Subscribed org.openhab.binding.mqtt.homeassistant.internal.discovery.HomeAssistantDiscovery@300d8a06 to discovery topic homeassistant/# on broker mqtt:broker:4b368bb4

I don’t know why it’s referencing HomeAssistant/Homie though