# MQTT Issues in Ignition

**URL:** <https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789>\
**Category:** Ignition\
**Created:** [January 29, 2018, 11:54pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789 "2018-01-29T23:54:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![roger\_larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/roger_larson/32/8574_2.png) [@roger\_larson](https://forum.inductiveautomation.com/u/roger_larson)\
**Post date:** [January 29, 2018, 11:54pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/1 "2018-01-29T23:54:05Z")

</div>

Hi all,

I have a problem with using MQTT between two Ignition gateways. The edge gateway is supposed to send tag data via MQTT to a central gateway, but we are having thread deadlocking issues at the central gateway level. No idea what’s causing it, but I’m assuming it’s coming from the MQTT Engine as it is receiving data. The error shows:

Deadlock Detected: Two or more threads are stuck waiting for each other’s locks.

And error log in file:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/ed81f6df2cee8d228695ccf81e70588e554c3a95.PNG)

I’m unsure if the tags that appear in the engine can/should be edited, and maybe editing caused the problem. It corrects itself with a gateway and computer restart, a gateway restart doesn’t seem to be enough to fix the problem, at least within 15 minutes. Any ideas?

Additionally, I was under the impression that only one MQTT Distributor was needed for this architecture on the central gateway (with MQTT Transmitter on the edge gateway, and MQTT Engine at the central gateway), but it refuses to work with only one Distributor, and two seem to be needed, even with changing the host IDs in MQTT Transmission / Engine settings. Are two actually needed?

---

<div class="post-metadata">

**Author:** ![user1](https://avatars.discourse-cdn.com/v4/letter/u/5daacb/32.png) [@user1](https://forum.inductiveautomation.com/u/user1)\
**Post date:** [January 31, 2018, 9:25pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/2 "2018-01-31T21:25:11Z")

</div>

Hey Roger, i’m also testing out MQTT and i also am getting that “Blocked” State, and eventual lock. In my test I have an edge server with only MQTT Transmission and its sending to the Ignition gateway which is running the MQTT engine and MQTT Distributor. It runs fine for a while then i see the values not updating and noticed the errors/lock. I should add that to have values for the MQTT transmission to send to the Engine/Distributor, I added the simulator device to the OPC-UA server on the edge, then created the folder structure needed for sparkplug model, then i created opctags.

As far as restarting the gateway. I noticed that when i stopped it through the utility, it keeps trying to shutdown the gateway. I looked at the Ignition Gateway in Services, and saw that it was still running. So i just shut it down from there and then started it back up through the utility.

---

<div class="post-metadata">

**Author:** ![roger\_larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/roger_larson/32/8574_2.png) [@roger\_larson](https://forum.inductiveautomation.com/u/roger_larson)\
**Post date:** [January 31, 2018, 11:09pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/3 "2018-01-31T23:09:51Z")

</div>

Hi,

We have very similar, if not the same, architectures! I’m also running a remote simulator via KepwareEX which is sending data through OPC UA to the edge server, so i’m getting data at that Ignition installation just fine, but while being sent via MQTT it just crashes the central/remote gateway. Editing tags on the central gateway, or having anything in expired trial mode seems to cause it for me, but it’s very disconcerting how fickle it can be. I got in touch with Cirrus Link about this and we’ll probably figure out what the issue is - i’ll post an update here if we find the problem.

Good to know that you can shut it off in Services - I didn’t consider that!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 31, 2018, 11:26pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/4 "2018-01-31T23:26:06Z")

</div>

Can one of you guys get a thread dump while this is happening? I’m sure Cirrus Link will ask for one as well.

---

<div class="post-metadata">

**Author:** ![roger\_larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/roger_larson/32/8574_2.png) [@roger\_larson](https://forum.inductiveautomation.com/u/roger_larson)\
**Post date:** [February 1, 2018, 4:33pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/5 "2018-02-01T16:33:58Z")

</div>

Hi Kevin,

I will definitely do that if I can replicate the issue!

---

<div class="post-metadata">

**Author:** ![user1](https://avatars.discourse-cdn.com/v4/letter/u/5daacb/32.png) [@user1](https://forum.inductiveautomation.com/u/user1)\
**Post date:** [February 1, 2018, 8:36pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/6 "2018-02-01T20:36:13Z")

</div>

Do let me know what they come up with. I’ve contacted support also, but haven’t heard a response back yet.

---

<div class="post-metadata">

**Author:** ![roger\_larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/roger_larson/32/8574_2.png) [@roger\_larson](https://forum.inductiveautomation.com/u/roger_larson)\
**Post date:** [February 2, 2018, 7:19pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/7 "2018-02-02T19:19:27Z")

</div>

Hi everyone,

I spoke with Cirrus Link today and part of my issue was with my architecture being incorrect initially, but after correcting it, deleting an extraneous UDT in the central gateway’s MQTT Engine tag provider caused another thread deadlocking. I got the Ignition thread dump if anyone is interested in taking a look at it (I sent it to Cirrus Link as well for them to look at).  
[thread\_dump.txt](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/020577b0b3b2e959312daa1f1bfbf5dae2fa41a0.txt) (94.3 KB)

I have error logs as well, but the thread dump may be more interesting for everyone.

Best,  
Roger

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 4, 2018, 3:18pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/8 "2018-06-04T15:18:28Z")

</div>

A post was split to a new topic: [Is there a way to read MQTT JSON payload into Ignition tags without cirrus link driver?](https://forum.inductiveautomation.com/t/is-there-a-way-to-read-mqtt-json-payload-into-ignition-tags-without-cirrus-link-driver/18280)

---

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [October 28, 2022, 2:55pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/9 "2022-10-28T14:55:16Z")

</div>

Hi guys, I don't really see a concrete solutions or a reason why the deadlock was caused.  
We are getting the same error, which looks like it's being triggered by MQTT Transmission.

Did any of you ever find out why this occured in your cases? What are the general reasons for a deadlock? Would a deadlock occur just because you have to few server resources?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 28, 2022, 3:01pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/10 "2022-10-28T15:01:55Z")

</div>

Deadlock is almost always a programming bug and needs to be resolved by upgrading after it has been fixed. If you're running into a deadlock then provide the thread dump and Ignition/module versions. If you're on older versions then expect to upgrade first.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [October 29, 2022, 1:42am UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/11 "2022-10-29T01:42:37Z")

</div>

Here is the [Cirrus Link/Ignition version compatibility chart.](https://docs.chariot.io/display/CLD80/Ignition+Compatibility+with+Cirrus+Link+Modules)

---

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [October 29, 2022, 1:52pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/12 "2022-10-29T13:52:06Z")

</div>

Thanks for both your replies. @justinedwards.jle it is compatible but thanks for the chart.

@Kevin.Herron we are on 8.1.18, so I guess we could first do an upgrade and check if that works. If it doesn't, I guess we should log a support ticket to see what's going on.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 29, 2022, 1:55pm UTC](https://forum.inductiveautomation.com/t/mqtt-issues-in-ignition/16789/13 "2022-10-29T13:55:51Z")

</div>

Also note that Cirrus Link has their own forum and support infrastructure. That's where any support ticket should start.
