Troubleshooting
Why a ninth MQTT Engine namespace can stop tag updates
Short answer
MQTT Engine allows eight subscription topics per SUBSCRIBE request and generates a second request for more. A ninth namespace that stops tag updates is a failure while completing that second request, not a documented eight-namespace limit. Capture both SUBSCRIBE log entries, the Connection Lost and timeout messages, the failed topic and QoS, and the full namespace definitions before escalating.

On this page
Eight custom namespaces update their Ignition tags reliably and the ninth breaks them: that pattern looks like an eight-namespace ceiling, and it is not one. The MQTT Engine module puts at most eight subscription topics in each SUBSCRIBE request and generates a second request for more. In the reported failure the timeout lands while the module completes that second request, so the ninth namespace is the trigger, not the documented cause. Read the two SUBSCRIBE entries in your logs, capture the Connection Lost and timeout messages together with the failed topic and QoS, and take that evidence to the module vendor.
What the documented limit covers #
The ceiling the module vendor documents is a transport rule, not a namespace count: a single SUBSCRIBE request carries a fixed budget of subscription topics, and a larger set is split across further requests. Nothing in that statement caps how many namespaces you can define. The number that matters is the count of topic filters the module actually asks the broker for, and you read that number straight out of the log entries.
The MQTT specification is the standard behind the split. It requires a broker to answer every SUBSCRIBE packet with a SUBACK naming each requested filter and the QoS granted for it, and it sets no cap on how many SUBSCRIBE packets a client may send on one connection. A broker that never answers the second packet leaves the module waiting on a response that never comes, which is the shape of the timeout in the reported logs.
Count topics, not namespaces #
The reported setup ran MQTT Engine 4.0.18 on Ignition Maker Edition 18.1.23 with eight custom namespaces and every default namespace disabled; treat it as the worked example. Eight namespaces carrying one topic filter each request eight topics in total: 8 ≤ 8, so the whole set fits inside the module's first SUBSCRIBE packet. Adding the ninth namespace raises the requested set to 9 topics: the module puts 8 in the first packet and sends the remaining 1 — shellies/+/relay/0 at QoS 0 in the reported logs — in a second. Seventeen requested topics would split 8 + 8 + 1 across three packets. That arithmetic follows from the per-request ceiling alone, and no setting widens a single request.
A namespace definition is not proven to equal exactly one subscription topic in every configuration, so count the filters inside the SUBSCRIBE entries rather than the namespaces on the list.
Read the failure sequence in the logs #
Two SUBSCRIBE entries from PacketHandler appear close together, because the second exists only to carry the filters that overflowed the first. Then an EngineCallback entry reports the connection lost — Connection Lost to Mosquitto :: tcp://localhost:1883 in the reported case, followed by the module's client identifier on that connection — then Timed out waiting for a response from the server, then a failed-subscription entry for one topic at its requested QoS.
That last entry localizes the fault: the topic reported as failed travels only in the second packet, so the failure sits in completing the additional request, not in the ninth namespace's payload or its JSON format. The name inside the Connection Lost entry is the server record configured in the module, not a fingerprint of the implementation listening on the port; the reported record still read Mosquitto after the broker behind it had been swapped.
Update the module before you read anything else into the logs #
The module maker's developers document two behaviors that change how you read these entries. One is a fixed failure where the engine disconnected when a publish arrived before the SUBACK of its own subscription. The other is current behavior: a failed subscription results in a disconnect. An engine that stays connected and keeps delivering tags across a failed-subscription entry — exactly what the ninth namespace did in the reported case — is therefore not showing documented current behavior.
Update the module to its current version, reproduce with the same namespace set, and only then treat the sequence as evidence.
Why the connection drops on the second request #
The timeout means the module sent the second SUBSCRIBE and its response never arrived inside the window, so the connection was torn down. The vendor raised one hypothesis — that the broker under test handled only a single subscription request — and stated that its own MQTT Distributor broker is built to handle multiple requests correctly. Treat the hypothesis as unproven: the reported test reproduced the same failure with MQTT Distributor behind tcp://localhost:1883, so a broker swap alone did not resolve it and the interaction needs investigation at module level.
What you can commit to is narrower: the failure sits in completing the additional SUBSCRIBE request. Connection up while tags go quiet has other family members — why MQTT Engine shows connected but MES data never arrives covers a feed that stays silent on a connection that never drops.
Collect this evidence before you escalate #
- Update the module to its current version and record what you removed and installed, alongside the Ignition release (18.1.23 with module 4.0.18 in the reported case).
- Export the log section showing both SUBSCRIBE entries from PacketHandler, with the complete topic-filter list and QoS of each.
- Capture the Connection Lost entry from EngineCallback, including the server record and the client identifier.
- Capture the exact timeout text from the same log window.
- Record the failed-subscription entry with its topic filter and QoS, and confirm which SUBSCRIBE packet carried it.
- Export the complete custom namespace configurations, and note whether any default namespaces remain enabled.
- Identify the broker implementation and version actually listening on the configured port, not just the server record's name.
- Open a ticket through the module maker's support system with the logs and namespace configurations attached; the maker does not support its modules on Ignition Maker Edition, but it asks Maker Edition users to submit evidence through that same channel.
The decision for each case #
- Topics still fit inside a single request. Keep the total at or below that budget and the second request never appears. That is a stopgap that keeps tags updating while you escalate, not a fix.
- Two SUBSCRIBE entries, then Connection Lost and the timeout. That is the reported fault. Collect the evidence above and escalate to the module maker; neither trimming namespaces nor swapping brokers is a proven fix, and the packet-level evidence is what moves the investigation.
- A custom namespace never creates tags at all. The fault is upstream of subscription transport — follow why custom MQTT Engine namespaces create no tags.
- Updates stop only after a broker restart, with no namespace change. Subscription state lost at reconnect behaves differently — why an MQTT subscriber stops receiving after a broker restart covers that recovery.
Questions asked
Does MQTT Engine have a limit of eight namespaces?
No. The module maker stated the documented ceiling in response to exactly this symptom: at most eight subscription topics fit in each SUBSCRIBE request, and anything more goes into a second request. No limit on how many namespaces you can define was stated. Count topic filters in the logs rather than namespaces, since the two are not proven equivalent in every configuration.
Why do tags from the ninth namespace still update when the log says the subscription failed?
A publish reaching the module is weaker evidence than it looks. At QoS 0 the broker forwards messages without acknowledging delivery, and a publish can arrive while the subscription result is still being processed. The module maker states that current versions disconnect when a subscription fails, so an engine that stays connected across a failed-subscription entry is not showing documented current behavior; update and reproduce.
Should I replace the broker to fix the second SUBSCRIBE request?
Not on the current evidence. The module maker states its MQTT Distributor broker handles multiple subscription requests correctly, but the reported failure reproduced with that broker in place. Before deciding, check the broker's own logs for the arrival of the second SUBSCRIBE packet and whether it ever answered it; that tells you which side went quiet, and the answer belongs in the ticket.
Can I keep more namespaces running before a fix arrives?
Two stopgaps follow from the per-request ceiling. Consolidate topic filters so the requested set fits inside a single request, or move some devices to a second server record, which opens its own connection with its own budget. Neither removes the underlying failure to complete a second request, so keep collecting evidence and stay on the ticket.

