Article - CS318801
Error "Unable to connect to MQTT in [<Thing Name>] : Timed out waiting for a response from the server" affecting MQTT/MQTTConnection in Things not showing connected in ThingWorx Platform
Modified: 04-Nov-2024
Applies To
- ThingWorx Platform 8.5 to 9.4
Description
- MQTT / MQTTConnection Template in Things is not shown as connected
- MQTT Extension v2.1.0 is not working with ThingWorx 9.x
- Issue does not occur with ThingWorx 8.4.x
- Properties isConnected, lastConnection of MQTT or MQTTConnection Template Thing never get updated
- Errors in ThingWorx <ThingworxStorage>\logs\ApplicationLog.log:
- With MQTT Template thing(xxx is the name of MQTT Template thing
-
[L: WARN] [O: c.t.t.m.MQTTThing] [I: ] [U: ] [S: ] [P: ] [T: MQTT Rec: /Thingworx//xxx] Lost MQTT Connection For [<Thing Name>] : Exception Was Connection lost [L: WARN] [O: c.t.t.m.MQTTThing] [I: ] [U: ] [S: ] [P: ] [T: MQTT Rec: /Thingworx//xxx] Lost MQTT Connection For [<Thing Name>] : Cause Was null [L: ERROR] [O: c.t.t.m.MQTTThing] [I: ] [U: ] [S: ] [P: ] [T: Thread-53] Unable to connect to MQTT in [<Thing Name>] : Timed out waiting for a response from the server [L: ERROR] [O: c.t.t.m.MQTTThing] [I: ] [U: ] [S: ] [P: ] [T: Thread-53] Unable to close client in MQTT Thing <Thing Name> : Connect already in progress
- With MQTTConnection Template thing(xxx is the name of MQTTConnection Template thing
-
[L: WARN] [O: c.t.t.m.MQTTConnectionThing] [I: ] [U: ] [S: ] [P: ] [T: MQTT Rec: /Thingworx//<Thing Name> Lost MQTT Connection For [<Thing Name>] : Cause Was Connection lost
- MQTT Server is getting connected and disconnected continuously
This is a printer-friendly version of Article 318801 and may be out of date. For the latest version click CS318801