IMD SolutionComputing LibraryShop main store

Troubleshooting

Why MQTT Transmission shows 0 of 0 connected to Distributor

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

A Connected value of 0 of 0 on the Transmission Servers tab means MQTT Transmission has no valid Transmitter configuration and tag tree, so there is nothing for it to connect with. A successful publish and subscribe from a test client already proves the broker port and credentials work. Rebuild the Transmitter and its tag paths before changing any firewall rule.

On this page
  1. What the Connected value counts
  2. Why the test client settles the network question
  3. Rebuild the Transmitter and its tag tree
  4. Reading 0 of 0 on Transmission 4.0.21 at tcp://localhost:1883
  5. Verify the fix
  6. Questions asked

Open Transmission → Servers and read the Connected column before you touch anything else. If it shows 0 of 0, the fault is not the broker, the port or the credentials: MQTT Transmission has no valid Transmitter configuration and tag tree, so there is nothing for the module to connect with. A test client that publishes and subscribes with the same credentials has already proved the Distributor is reachable. Stop editing firewall rules, rebuild the Transmitter, and treat the repeating Starting up Agent log line as the module retrying against an empty transmitter list rather than as a network error.

What the Connected value counts #

The Connected column reports connected transmitters over the transmitters the module considers valid. The denominator is not a heartbeat count or a session count: it is the number of Transmitter configurations that pass validation and reference a tag tree containing tags Transmission will publish. When that denominator is zero, the module never opens a connection to attempt, which is why the reading never changes no matter what you do to the network.

Connected value Meaning Decision
0 of 0 No valid Transmitter configuration and tag tree exists Fix the Transmitter and its tag paths; no firewall or credential change can move this reading
Zero connected, total of one or more At least one valid Transmitter exists but none reaches the broker Now investigate the server URL, credentials and broker availability
All transmitters connected The link is up Verify the expected tags actually publish

The first row is the case where the reported symptom, a log looping on Starting up Agent, appears. The module starts, finds nothing valid to bring online, and starts again.

Why the test client settles the network question #

A publish and subscribe from an MQTT.fx client using the configured username and password proves three things at once: the Distributor listens on port 1883, the inbound and outbound firewall rules added for that port work, and the credentials are accepted. Repeating any of those checks is wasted time. If you want the full procedure for proving broker reachability with an independent client before a module ever enters the picture, the knowledge-base article on getting MQTT clients to publish and subscribe through the broker covers it.

One caveat on the URL. The server entry tcp://localhost:1883 is only correct when MQTT Transmission runs in the same Ignition gateway as the Distributor, which is the normal single-gateway layout. If the two modules end up on separate hosts or in separate containers, localhost points at the wrong network stack, and the reading will show a total of one with zero connected. That failure pattern is the same one behind a sink that stays offline until it uses the broker's IP address instead of localhost, covered in the article on the MQTT sink localhost broker address fault.

Rebuild the Transmitter and its tag tree #

Work through this list in order, and change only one item between checks so each change can be judged:

  1. Record the current Connected reading on Transmission → Servers. Everything after this is compared against it.
  2. Open the Transmitter configuration under the Transmission module and confirm a Transmitter record exists and saves without a validation error. A record that fails validation does not count toward the total.
  3. Inspect the tag path list. Transmission picks up only the tags under explicitly defined tag paths, and different paths are entered as a comma-separated list. A path pointing at a folder that was renamed, moved or deleted leaves the tree empty and drops the record out of the count.
  4. Confirm the tags under those paths are types Transmission will publish and are not deliberately excluded by the record's filters.
  5. Save the record, return to Transmission → Servers, and read the Connected column again. The denominator must rise to at least one before any connectivity question is worth asking.

If the second reading shows a total of one or more but still nothing connected, the fault has genuinely moved to the server entry, the credentials or the broker, and the test-client and localhost checks above become the right tools.

Reading 0 of 0 on Transmission 4.0.21 at tcp://localhost:1883 #

This worked example uses the reported case as its inputs.

Inputs, each with its source:

  • MQTT Distributor version 4.0.21 and MQTT Transmission version 4.0.21, both running in the same Ignition gateway (the reported setup).
  • Server entry tcp://localhost:1883, correct for that single-gateway layout (the reported configuration).
  • The gateway log repeats Starting up Agent (the reported symptom).
  • A test client publishes and subscribes successfully with the configured credentials, and inbound and outbound rules for the port already exist (the reported debugging already done).
  • The Connected column reads 0 of 0 (the decisive observation).

The rule, in words: Connected equals the number of connected transmitters divided by the number of valid Transmitter configurations with an eligible tag tree. The module can only connect what it has validated.

The arithmetic: connected transmitters = 0, because the module has nothing to start. Valid transmitters = 0, because the Transmitter record or its tag tree fails validation. The reading is therefore 0 divided by 0, and a zero denominator means no connection attempt is ever made. The looping log line follows directly: each pass of the start-up routine finds the same empty list.

The result: the fault is configuration, and no change to the firewall, the credentials or the broker can raise a zero denominator. Those were the only things already tested, which is exactly why they all passed while the reading never moved.

The decision: rebuild the Transmitter until the denominator is at least 1. Success is a reading of 1 of 1 with the loop gone and the expected tags arriving on their topics. Only if the total reaches 1 or more while connected stays at zero does the investigation move to the server entry and credentials.

Verify the fix #

Confirmation has three parts, in this order:

  1. The Connected column on Transmission → Servers shows every transmitter connected, 1 of 1 in the single-transmitter case.
  2. The Starting up Agent line stops repeating in the gateway log and appears only at module start-up.
  3. A subscribed test client receives the expected tag payloads on the topics the Transmitter was configured to publish. Seeing the payloads, not just the connected count, is what proves the tag tree is populated with the right tags.

Keep the scopes separate while you verify. A Sparkplug edge node that stays stuck on Connecting even though MQTT itself connects is a different layer of the stack, the session between an edge node and the broker, and it is covered in the article on a Sparkplug node stuck on connecting while MQTT connects. The Transmission Servers reading is about whether a transmitter exists to connect at all, so settle that reading first before reading anything into edge node state.

Questions asked

It worked before and went to a zero total after I changed the username and password. Did the credential change break it?

No. A wrong credential leaves the total at its previous value and only drops the connected count. A zero total means the Transmitter record or its tag tree stopped validating. Look for a tag folder that was renamed or moved, a Transmitter edit that was not saved, or a path list that no longer matches the tag tree.

What does the repeating Starting up Agent line in the log actually mean?

It is the module's start-up routine running again because it finds no valid transmitter to bring online. It is a symptom of the empty configuration, not a broker or network error. After the Transmitter validates, the line appears once at gateway start-up instead of looping, and the loop stopping is one of your confirmation checks.

Does the Transmitter tag tree need every tag in my plant?

No. Transmission selects only the tags under the paths you list, and different paths are entered as a comma-separated list of explicitly defined tag paths. Keep the list to the folders your subscribers actually need. Publishing everything widens the payload, the bandwidth use and the attack surface without helping the consumer of the data.

Is this the same fault as a Sparkplug edge node stuck on Connecting while MQTT connects?

No. That symptom sits one layer up, in the Sparkplug session between an edge node and the broker, while the Transmission Servers reading is about whether a transmitter exists to connect at all. Check the Connected column first. If it shows a transmitter count of at least one with zero connected, the fault has moved into network or credential territory and the Sparkplug behavior becomes relevant.

Keep reading

  • Selection guide

    Choosing an edge data path for periodic records

    For independent periodic samples, Tag Historian with Edge Sync Services is the reliable path and buffers 35 days locally. For one atomic row per collection cycle, use MQTT Transmission records landing in MQTT Recorder. For true transaction groups, license a standard gateway for that node.

    Edge computing and IIoT

  • Troubleshooting

    MQTT Transmission connected but missing from the node list

    A connected badge only certifies the broker session; the gateway node list fills from the node's birth message and subscriptions. The compatibility matrix lists module 4.0.13 as supported on Ignition 8.1.21, so the fault sits in subscription behavior or MQTT Server ACLs. Read three logs from one attempt, repair the specific grants, and roll the new edge back to Ignition 8.1.18 with module 4.0.8 if production waits.

    Edge computing and IIoT

  • Troubleshooting

    Why a group of MQTT tags goes stagnant in Ignition

    Groups of tags can freeze between an Ignition MQTT edge node and the cloud server while the connection stays up, then recover on their own after hours. No fixed version is proven: an in-place module upgrade above 4.0.6 reproduced the same behavior during an active incident, so capture evidence while it happens and monitor past the 29-day recurrence.

    Edge computing and IIoT

Why MQTT Engine shows connected but MES data never arrives