Troubleshooting
Why MQTT Engine custom namespaces create no tags
Short answer
A moving Messages per second counter proves the broker link and the subscription work; when an MQTT Engine custom namespace still creates no tags on an Ignition 8.3 beta, the fault is the beta Custom Namespace handler. Run Ignition 8.1.42 with its matching module build where tags are needed, keep the beta pair in a separate test container, and restart the gateway after every namespace or server-set edit.
On this page
- Why does MQTT Engine create no tags for a custom namespace?
- Where does the aircon/test message stop between Mosquitto and the tag provider?
- Why do namespace and server-set edits only apply after a gateway restart?
- Which checks isolate the broker, the subscription and the namespace handler?
- Which MQTT Engine build creates tags today?
- How do you move the stack to the 8.1 release in Docker Compose?
- How do you confirm the custom namespace is creating tags again?
- Questions asked
A moving counter with no tags is not a broker problem. On this stack — Ignition 8.3 beta, Mosquitto and PostgreSQL in Docker Compose on a single-board computer — the Engine client connected, the custom namespace aircon carried live traffic, the Messages per second tag moved on every publish, and no tag ever appeared under aircon/test. The same configuration created tags on the 8.1 stable release. The module vendor confirmed bugs in the beta Custom Namespace handler, and a paired update to Ignition 8.3.0-beta4 with MQTT Engine 5.0.0-Beta2 did not clear the fault on this install. The decision: run Ignition 8.1.42 with its matching module build wherever tags must exist, keep the beta pair in a separate test container, and restart the gateway after every namespace or server-set edit while you stay on any 8.3 beta.
Why does MQTT Engine create no tags for a custom namespace? #
On Ignition 8.3 beta builds the Custom Namespace handler in the matching beta module fails to convert received plain MQTT messages into tags: the subscription works and the rate counter moves, yet no tag is ever written, and the same configuration creates tags on Ignition 8.1.42.
A custom namespace does all of its work inside the Engine module: it takes a received topic and payload and builds the tag model from them. Everything before that point is ordinary MQTT plumbing, and everything after it is the tag provider. When the rate counter moves, the plumbing is proven and the only unproven component left is the handler, which is why this reads as a module bug rather than a configuration error.
One scope check belongs here first. The custom namespace handler processes plain MQTT topics and payloads, not Sparkplug; the vendor's support answer opened by asking whether the subscription carried MQTT topic messages rather than Sparkplug. Confirm which format your publisher emits before you diagnose further, because a Sparkplug publisher belongs in the Sparkplug B namespace instead.
Where does the aircon/test message stop between Mosquitto and the tag provider? #
It stops at hop 4, the Custom Namespace handler itself: hops 1 through 3 — publish delivery, the Engine client connection and the subscription — all pass on the beta, and hop 5, the tag provider write, is never reached.
The hop table gives each stage its own piece of evidence and blames only the hop where the evidence stops — the same method that locates a dropped TLS handshake in MQTT TLS connects but no CONNACK: find the failing hop.
| Hop | Component | Proof the message passed | Status on the beta |
|---|---|---|---|
| 1 | Publisher to the Mosquitto container | A broker-side subscriber prints aircon/test | Passes |
| 2 | Mosquitto to the Engine client in the Default server set | Server shows connected in the gateway | Passes |
| 3 | Subscription filter on the aircon namespace | Messages per second increments on publish | Passes |
| 4 | Custom Namespace handler: topic and payload to tag model | Tags appear in the MQTT Engine tag provider | Fails |
| 5 | Tag provider write | Tag values update on each publish | Never reached |
Hops 1 through 3 passing means the network path, the TCP session and the broker routing are all healthy. Changing Docker networking, broker ACLs or QoS cannot fix a hop 4 failure, because nothing in the message path is broken. The same division of blame holds across MQTT systems: when messages reach a client but never produce data, the client is the suspect, which is the stance behind fixing missing Sparkplug B device tags on the client and not the broker (fix missing Sparkplug B device tags on the client side).
Why do namespace and server-set edits only apply after a gateway restart? #
On these beta builds MQTT Engine applies its namespace bindings and its subscription list when the client connects at module startup, so an edit saved while the client runs is never pushed to the broker — restart the gateway container after every edit.
The configuration page on this install refused to save the link between the aircon namespace and the Default server set; after a gateway reboot, the link was in place. Subscription edits behaved the same way: changing the namespace filter from the wildcard form to plain aircon did not touch the live subscription until the next restart, and only then did the broker reflect the new filter.
A restart also matters one layer down in any MQTT system: after a broker restart, a subscriber may not get its subscriptions back on its own, a separate fault covered in why an MQTT subscriber stops receiving after a broker restart.
The filter edit itself carries a protocol trap, so check the levels before you change anything. MQTT counts topic levels as slash-separated segments and matches a filter level for level unless a wildcard covers the rest:
- aircon/test has two segments: aircon, then test.
- The bare filter aircon has one segment, so it matches only a topic named exactly aircon and matches neither aircon/test nor anything deeper.
- aircon/+ has two segments with the plus as the second, so it matches aircon/test but not the three-segment aircon/test/zone1.
- aircon/# matches the root and every deeper level, so it covers both aircon/test and aircon/test/zone1.
That arithmetic explains the empty result on this install: with a bare aircon filter held, the handler received nothing, so it could create no tags. If the rate counter still moves while the held filter is bare aircon, the counter is picking up traffic from another subscription, and the broker's log names the filters the Engine client really holds. Use aircon/# for the root plus every sublevel and aircon/+ for exactly one level.
A server set that will not resolve at all has a second, non-beta cause worth ruling out: a typographic quote inside the server definition, which produces the no-server-definition symptom described in MQTT Engine server definition not found: the typographic quote cause.
Which checks isolate the broker, the subscription and the namespace handler? #
Six checks separate a networking fault from a handler fault: container reachability, broker delivery, the broker's held subscription, handler exceptions in the gateway log, payload format against the namespace settings, and one cross-version control.
- Container reachability. Point the Engine server URL at the Mosquitto compose service name, not at localhost: inside the Ignition container, localhost is the Ignition container itself. A connected server status confirms this hop.
- Broker delivery. Run
docker compose exec <mosquitto-service> mosquitto_sub -t 'aircon/#' -v, then in a second shell publish withmosquitto_pub -t aircon/test -m '<payload>'. The subscriber must print the topic and the payload. - Held subscription. Enable subscription logging in mosquitto.conf (for example log_type all), restart the broker, and read the broker log. The Engine client must subscribe to the exact filter configured on the aircon namespace; a mismatch means the gateway has not been restarted since the last edit.
- Handler exceptions. Publish once, then read the gateway log for entries from the MQTT Engine custom namespace handler. Exceptions at this point confirm the hop 4 failure.
- Payload format. Compare the published payload against the payload settings on the custom namespace. A format mismatch also produces a moving counter with no tags; rule it out before blaming the module build.
- Cross-version control. Load the same namespace configuration on the stable gateway with its matching module build. Tags created there, from the same broker and the same publish, isolate the fault to the beta module.
Which MQTT Engine build creates tags today? #
Ignition 8.1.42 with the MQTT Engine build released for 8.1.42 is the only tested pair that creates tags from this configuration; the 8.3.0-beta4 pair with MQTT Engine 5.0.0-Beta2 still produced none on this install, so keep the beta pair in a separate test container.
| Option | Namespace link | Tag creation | After edits | Fit |
|---|---|---|---|---|
| A: stay on the current beta, restart after edits | Works after a restart | None | Restart required | Test only |
| B: Ignition 8.3.0-beta4 with MQTT Engine 5.0.0-Beta2 | Works | None on this install, despite the targeted fix | Restart required | Test only; track later module drops |
| C: Ignition 8.1.42 with its matching MQTT Engine build | Works | Tags created with the same configuration | Normal behavior | Any system that needs tags now |
Run option C for anything that must produce tags today, and keep option B in a separate test container. Beta Ignition builds and beta module builds are not cross-compatible: each Ignition beta update needs the module build released for that exact beta, and mixing builds adds a second failure mode on top of the handler bug. For the beta test path, confirm the topics carry plain MQTT messages rather than Sparkplug, because that is the path the handler fix targets. A throwaway container is enough to track the fix, but a standing home for beta pairs is exactly what a dedicated lab provides; the pattern to copy is building a unified namespace lab with Ignition and MQTT Sparkplug B.
Keep a beta gateway off any system whose tags feed alarms or operator decisions: this fault looks like dead equipment downstream, because the data arrives at the broker and silently never becomes a tag.
How do you move the stack to the 8.1 release in Docker Compose? #
Pin the Ignition service image to the 8.1 stable release, install its matching MQTT Engine module, keep PostgreSQL and Mosquitto unchanged, and rebuild the namespace configuration by hand on a fresh data volume, because an 8.3 backup does not restore onto the older gateway.
- Pin the Ignition service image in docker-compose.yml to the 8.1.42 release instead of an 8.3 beta tag, and leave the PostgreSQL and Mosquitto services unchanged.
- Start from a fresh gateway data volume. An 8.3 gateway backup does not restore onto an older gateway, so rebuild the configuration by hand.
- Install the MQTT Engine module build that matches the pinned Ignition version; the module vendor's download pages publish release notes and a compatibility matrix, so pick the build listed for that version.
- In the Default server set, add the Mosquitto server using the compose service name, the broker port, and credentials if the broker requires them.
- Disable the default namespaces you do not use: Elecsys, SparkplugA, SparkplugB and Xirgo.
- Create the custom namespace aircon with the subscription aircon/# and link it to the Default server set.
- Restart the Ignition service with
docker compose restart <ignition-service>so the client reconnects with the final subscription list. - On the parallel beta container, install the module build released for that exact Ignition beta and restart after every namespace edit; if tags still fail, send the step 4 gateway log to the module vendor's support.
How do you confirm the custom namespace is creating tags again? #
Publish one message to aircon/test, watch the rate counter increment, then check three places in order: the broker log for the held aircon/# filter, the MQTT Engine tag provider in the Designer for a tag structure under aircon/test, and the gateway log for handler exceptions.
- The broker log shows the Engine client holding aircon/#.
- One publish to aircon/test increments the rate counter.
- The MQTT Engine tag provider, browsed in the Designer, shows a tag structure under aircon/test.
- The gateway log shows no custom namespace handler exceptions after the publish.
- A second publish with a changed value updates the tag value and its timestamp.
- A publish to a fresh sublevel, for example aircon/zone1, extends the tag structure the same way, which proves the handler covers the whole subtree and not just the first topic.
Questions asked
Can I restore my 8.3 gateway backup onto the downgraded gateway?
No. Ignition gateway backups restore forward to newer versions, not back to older ones, so the move to 8.1.42 begins on a fresh gateway data volume and a hand-rebuilt configuration: server set, namespaces and connections. The PostgreSQL service and the Mosquitto broker sit outside the gateway, so their data survives the downgrade untouched.
Do I need a new module build for every Ignition 8.3 beta update?
Yes. Beta Ignition builds and beta module builds are paired: each 8.3 beta needs the MQTT Engine build released for that exact beta, and differing beta versions are not cross-compatible. The module vendor's download pages publish release notes and a compatibility matrix, so check both before you update either side of the pair.
What evidence should I attach when a custom namespace still creates no tags?
Send the gateway log window from just before to just after a single publish, the exact subscription filter configured on the custom namespace, the broker's subscription log line showing which filter the Engine client actually holds, and the exact Ignition and module build numbers. Together those prove which hop failed and let support match the handler defect to your build.
Does a custom namespace also decode Sparkplug B messages?
No. A custom namespace handler processes plain MQTT topics and payloads. Sparkplug B traffic is decoded by the Sparkplug B namespace, one of the defaults alongside Sparkplug A, Elecsys and Xirgo. Confirm which format your publisher emits before building the custom namespace, because the payload check and the handler diagnosis differ between the two paths.