Troubleshooting
Why MQTT Engine shows online status after an edge node drops
Short answer
An Info/Online tag that stays true with Good quality is not proof the edge node is alive: Engine's online state comes from the node's Sparkplug death certificate, and earlier Engine versions marked tags stale only on Engine shutdown. Read Info/Online, tag quality and Store & Forward stored metrics as three separate indicators, retest on Engine 4.0.8 with Ignition 8.0.16 or later, and compare against a node that reports correctly before escalating.
On this page
- What Info/Online and tag quality actually report
- The documented false positive, indicator by indicator
- Upgrade to 4.0.8, restart the gateway, retest
- Scoring the disconnect test: Windows 10 edge node, Engine 4.0.6 to 4.0.8
- Isolate the fault against a node that reports correctly
- Escalate with the evidence
- Questions asked
An edge node that still shows online after it loses its network is a status-path fault, not a timing quirk you can tune away. In the documented case — MQTT Distributor 4.0.6 (b2020111920), MQTT Engine 4.0.6 (b2020111920), Transmission 4.0.8 (b2021071520), and a Windows 10 edge node with Wi-Fi disabled at the OS — Engine kept Info/Online true and tag quality Good, while the node's stored-metrics count rose because Transmission had correctly detected interrupted delivery. Read Info/Online, tag quality and Store & Forward stored metrics as three separate indicators, retest on Engine 4.0.8 with Ignition 8.0.16 or later after a gateway restart, and if the false positive survives, compare against a Sparkplug B node that reports correctly before escalating. No timeout or retry setting emerged from the documented case that corrects the status.
What Info/Online and tag quality actually report #
Sparkplug B online state is certificate-driven, not freshness-driven. Engine marks a node online when it processes the node's birth certificate, and offline only when it receives the death certificate the broker publishes from the node's configured will message once the connection drops. Info/Online sitting at true through a real outage means that death certificate never reached Engine or was never processed, so the fault lives somewhere on the path from the node's will configuration in Transmission, through the broker's topic handling and access-control rules, to Engine's subscription.
Tag quality is a weaker indicator. Earlier MQTT Engine versions marked tags stale when Engine itself shut down, to signal that the edge node's data was no longer current. Quality tracks Engine's lifecycle, not the edge node's network, so Good quality through an edge-side outage is expected behavior, not an anomaly. Never build dead-node detection or alarm suppression on quality: a node that is down while reporting online is invisible to operations.
The documented false positive, indicator by indicator #
| Indicator | Observed with Wi-Fi disabled | What it proves |
|---|---|---|
| Info/Online | Stayed true | The death-certificate path failed — this is the false positive |
| Tag quality | Stayed Good | Expected: quality tracks Engine, not the node |
| Stored metrics | Increased | Transmission detected interrupted delivery and buffered it |
Two indicators lied and one told the truth, which is exactly why the three cannot stand in for each other. The test also established a negative worth keeping: no timeout or retry setting was found that corrected the status, either before or after the module upgrade.
Upgrade to 4.0.8, restart the gateway, retest #
- Confirm Ignition is at 8.0.16 or later, then upgrade MQTT Engine — and Distributor with it — to 4.0.8. The module developer stated that release addressed Online tag status issues.
- Restart the gateway after the install. In the documented case the modules were loaded through the gateway without a restart and the false positive survived, leaving that variable untested. Do not repeat that gap.
- Disable the edge node's network at the OS — the documented test disabled Wi-Fi — and watch all three indicators at once under the MQTT Engine tag provider, in the device folder for that edge node.
- Re-enable the network and confirm the buffered records drain and are accepted; MQTT store and forward backfill after a connection outage is its own verification. Two adjacent failure modes belong in the same test window: why buffered Sparkplug B data is rejected after reconnect and what makes the historian store zero after a reconnect.
If Info/Online now drops when the network drops, the fix holds — document the passing test. If it still sits at true, score the test as shown below and move to the comparison node; do not keep upgrading in place of evidence.
Scoring the disconnect test: Windows 10 edge node, Engine 4.0.6 to 4.0.8 #
Inputs, all from the documented case:
- Engine and broker: Distributor 4.0.6 (b2020111920) with Engine 4.0.6 (b2020111920) for the first trial; both upgraded to 4.0.8 for the second.
- Edge node: Windows 10 running Transmission 4.0.8 (b2021071520), Wi-Fi disabled at the OS for each trial.
- Indicators scored per trial: Info/Online, tag quality, stored-metrics count.
Rule in words: an indicator passes a trial only if it moves to its offline state while the network is down. The verification passes only when all three indicators pass in every trial.
Arithmetic:
- Trial 1 (Engine 4.0.6): Info/Online unchanged (fail) plus quality unchanged (fail) plus stored count rose (pass) gives 1 pass out of 3 required; 3 - 1 = 2 failures.
- Trial 2 (Engine 4.0.8, Distributor 4.0.8): identical readings give 1 pass out of 3; 3 - 1 = 2 failures.
- Combined: 1 + 1 = 2 passes across 2 trials with 3 indicators each, that is 2 x 3 = 6 observations, so 2 of 6 indicator checks behaved.
Result: the verification fails at both module versions. The delivery path worked in both trials — the node reconnected and drained its buffer — while the status path never moved.
Decision: a pass requires 3 of 3 indicators changing in every trial. Anything less fails the verification no matter how cleanly the node reconnects, so move to the comparison test and escalate rather than adjusting Store & Forward parameters, which were never the failing part.
Isolate the fault against a node that reports correctly #
The same Distributor and Engine flipped online status correctly when a Raspberry Pi 4 running a Node-RED Sparkplug B implementation lost Wi-Fi. That result narrows the fault to the Windows node's Transmission configuration — its will and death-certificate setup, its topic hierarchy, or the broker access-control rules applied to it — rather than to the broker or to Engine's subscription. It does not prove which of the three. Run both nodes against the same broker in one test window so the edge node is the only variable, and capture the birth and death certificates the broker actually published for each.
Escalate with the evidence #
When the false positive survives 4.0.8 and the comparison test, open a ticket with the module developer's support center and include:
- Module versions with build numbers for Distributor, Engine and Transmission, plus the Ignition version.
- Edge OS (Windows 10 in the documented case) and connection type — Wi-Fi is worth stating explicitly.
- Topic hierarchy and broker access-control configuration for both the failing and the known-good node.
- The trial log: which indicators changed, which did not, and whether the gateway was restarted after the upgrade.
- The broker-side certificate capture from the comparison test.
Expect the handoff: in the documented case, licensing bought through the automation platform vendor was redirected to the module developer, so open the ticket with the module developer directly instead of losing days in between.
Questions asked
Is there a timeout setting that forces MQTT Engine to mark the node offline?
None corrected the documented case, before or after the 4.0.8 upgrade, and the status is certificate-driven rather than timer-driven, so a timeout could only mask the real fault. Until the verification passes, alarm on a freshness heartbeat you control in the SCADA host instead of trusting Info/Online.
Why does tag quality stay Good while the edge node is offline?
Because quality tracks Engine's own lifecycle, not the node's network: earlier MQTT Engine versions marked tags stale only when Engine itself shut down. The documented test showed Good quality with the network disabled, and it was still Good after the upgrade to Engine 4.0.8, so the Online tag status work in that release did not change quality behavior.
Do rising Store & Forward stored metrics prove the node was flagged offline?
No. They prove Transmission on the node detected interrupted delivery and buffered it, which is a different mechanism from the death-certificate path that drives Info/Online. Keep watching the stored count anyway: it is your evidence that buffering did its job during the outage, which is a separate question from status.
Does a clean reconnect with backfilled data close the issue?
No. Reconnection and store-and-forward success exercise the delivery path, not the status path. Score all three indicators during the outage window, because once the node is back a false-true Info/Online is indistinguishable from a healthy one.