IMD SolutionComputing LibraryShop main store

Troubleshooting

OI-Server MQTT stalls on the PCS Provider connect timeout

Edge computing and IIoT Published 7 min read

Short answer

A registered MQTT broker connection proves only transport. The OI Server message that reports the connect to the PCS Provider failed after 15000 ms is the second leg: the consumer session that supplies Galaxy tag values never completed, so no tags publish. Isolate the provider path — compare the target with the working redundancy partner, restore the service account's oiAdministrators membership after the reinstall, read the logs inside the failure window — and escalate with the evidence package if the timeout recurs.

On this page
  1. What the timeout line actually reports
  2. Why the checks that already pass do not clear it
  3. What to work on the provider leg
  4. Worked example: sizing the log search window before a 14:07:35 failure
  5. When to escalate, and what to send
  6. Verify the fix at the broker, not at the padlock
  7. Questions asked

A broker that lists your MQTT publisher as registered has proved exactly one thing: the transport leg works. The line that matters is the other one — Consumer::DoConnect - Connect to PCS Provider failed!, 15000ms TIMEOUT! — and it sits on the second leg of the publisher, the OI Server's own consumer session to the PCS Provider that serves Galaxy tag data. That session never completed inside the window the message reports, so no values ever reach the broker. On a machine rebuilt from scratch on SP2023R2P01 with Platform Common Service 8.0.2, configured identically to a redundancy partner that publishes cleanly, stop re-running the broker, certificate and browse checks. Work the provider path instead: diff the configured target against the partner, restore the service identity the rebuild most likely dropped, and read the logs inside the window before the failure. If the timeout still recurs after one clean pass, escalate with the evidence package at the end of this article.

What the timeout line actually reports #

An MQTT Publisher Connection in System Platform 2023 R2 runs two separate connections. The first joins the publisher to the MQTT broker; registration on the broker and the secured-and-trusted broker status both belong to this leg, and both are good in your case. The second is the consumer session from the OI Server to the PCS Provider, the component that supplies Galaxy tag values to the publisher. The logged line names that second leg directly: Consumer::DoConnect is the consumer's connect call, and the line states that the attempt expired before the session completed. Nothing was published, and nothing could be — a publisher with no provider session has no values to hand to the broker, however healthy the registration looks on the broker's own dashboard.

Why the checks that already pass do not clear it #

Each passing check runs on a different path than the one that fails. Browsing the Galaxy proves the machine can read Galaxy data through the browse path. Platform Manager and Object Viewer prove those tools open objects on this machine. Neither is the publisher's consumer session; the publisher opens its own, and that is the one expiring. This transport-up, data-down shape is routine on the plant floor: it is the same pattern as a Telegraf MQTT consumer that connects but writes nothing, and the same split you get when System Platform tags never reach the historian while live data looks fine. A genuine broker fault announces itself on the broker side — the way Node-RED MQTT fails when a broker rejects plain MQTT — not as a silent session expiry after a successful registration. Your broker leg is registered and quiet, so it is not the first place to look.

Set the passing checks against the failing leg before spending another hour on them:

Check that passes What it proves What it does not prove
Broker lists the publisher as registered The broker leg is up and trusted That the PCS Provider session opens, or that any tag is published
Galaxy browsing works from this machine Galaxy data is reachable through the browse path That the publisher's consumer session completes
Objects open in Platform Manager / Object Viewer Those tools read objects on this machine That the publisher rides that same working path
Certificates verified, root and thumbprint The trust chain you checked is sound Which leg the connect failure sits on
Platform Common Service 8.0.2 reinstalled The service bits are fresh on disk That configuration the reinstall dropped was restored

What to work on the provider leg #

  1. Correlate, do not repeat. Take the timestamp of one failure line and read the OI Server log, the service logs and the Windows event logs in the window immediately before it — the worked example below sizes that window from the timeout the line itself reports. Provider startup, certificate or service errors inside that window name the failing component. The checks you already ran — Common Services Portal function status, Network Utility Tool, OS Configuration Utility — become evidence for this comparison, not procedures to run a third time.
  2. Diff against the redundancy partner. A partner that publishes with the same design is a working reference, not a coincidence. Compare field by field: the Galaxy and provider target configured on the MQTT Publisher Connection, the exact builds of the OI Server and Platform Common Service, the certificate stores the provider session uses, and the account each machine's services run under. Every difference is a suspect.
  3. Restore the service identity. On a fully reinstalled machine, the identity the OI Server runs under is the likeliest casualty. The MQTT Publisher documentation gates access on the oiAdministrators group: a user or group outside it is shown a service-unavailable error. Put the service account back into that group, restart the OI Server, and retest before changing anything else.
  4. Rebuild the publisher hierarchy to the documentation. An MQTT Publisher is configured as a hierarchy of data source and groups, with item naming conventions the documentation specifies. Verify that hierarchy and those names were recreated exactly after the reinstall; a renamed group or a misplaced item starves the publisher even when both sessions come up.
  5. Capture Common Services Portal status while the fault is live. Function status recorded hours before the failure proves nothing. Watch it while the timeout is recurring and note what changes when the message appears.

Worked example: sizing the log search window before a 14:07:35 failure #

Inputs, each with its source:

  • Timeout per connect attempt: 15000 ms — reported by the OI Server log line itself.
  • Failure timestamp: 14:07:35 on the OI Server — an illustrative example; substitute the timestamp of your own failure line.
  • Logs to read: the OI Server log, the Platform and Common Service logs, and the Windows application and security event logs on the application server.

Rule in words: the consumer marks the connect failed once it has been outstanding for the full window, so whatever caused the failure was logged between the attempt's start and the failure line. The attempt's start is the failure timestamp minus the window.

Arithmetic: 15000 ms = 15 s. Window start: 14:07:35 - 15 s = 14:07:20. Search interval: 14:07:20 through 14:07:35 — 15 s of log on every machine that takes part in the provider session.

Result: one 15-second interval per failure, correlated across those logs, instead of another full pass of the utilities.

Decision: an entry inside that interval names the failing component, so fix it and retest. An empty interval while the broker still lists the publisher means the provider leg never answered inside the window — run the partner diff and the oiAdministrators check above, and if the next failure is also silent, escalate with the package below.

When to escalate, and what to send #

Commit to this decision point: after one clean pass of the provider-leg checks — partner diff, service identity, hierarchy rebuild, timestamp-correlated logs — with the connect still expiring, open a service request with the vendor's technical support. A machine rebuilt from scratch, configured identically to a working partner, that still expires the same session is beyond panel-level configuration, and the sequence already run shows that reinstalling Platform Common Service does not clear this fault.

Send one package, not a conversation: the exact logged line with its timestamp; the version strings SP2023R2P01 and Platform Common Service 8.0.2; the Galaxy and provider target configured on the MQTT Publisher Connection; Common Services Portal status captured at failure time; the Network Utility Tool and OS Configuration Utility outputs; the certificate details you verified; the broker, browse and Object Viewer results; and the statement that the redundancy partner runs the same configuration without the fault. That is everything support needs to separate a provider connection failure from broker transport and tag selection without another round-trip.

Verify the fix at the broker, not at the padlock #

A fixed session is proven by values, not by icons. Confirm three things. First, the logged line stays absent across a full shift. Second, subscribe at the broker to the topics the publisher defines and drive one known tag: change the value in the Galaxy and watch the new value arrive — the same broker-side test you would run when configuring tag publishing to a broker. Third, leave it running through a shift change and, if the partner is live, a redundancy switchover; a session that survives both is one you can hand to operations. If the value does not move, the fault is back on the data path: return to the hierarchy and naming check before touching certificates again.

Questions asked

Why does the identical configuration publish on the redundancy partner?

Because the fault is local to this machine's provider leg, not to the design. Use the partner as the reference: compare the Galaxy and provider target on the MQTT Publisher Connection, the service accounts and their oiAdministrators membership, the certificate stores the provider session uses, and the exact builds of the OI Server and Platform Common Service. Wherever the two machines differ is your suspect list, and a service identity that the reinstallation dropped is the most common find.

What does the green broker status actually confirm?

The product documentation describes it as a green security icon with the status Connection to the broker is secured and trusted, and it confirms transport and trust on the broker leg only: the publisher reached the broker over a secured and trusted TLS session. It says nothing about the consumer session to the PCS Provider and nothing about values. A publisher can sit there registered and padlocked while carrying no tags at all from the Galaxy.

Can the connect fail while the provider is slow but still alive?

Yes. A provider that answers inside the window completes the connect and publishing proceeds; one that answers after the window, or never, produces the failure line. Slow but alive shows in the logs as sessions completing with long durations, while a dead provider shows as repeated expiries with an empty window. Read one interval with the worked-example method before deciding which state you have, because the two need different evidence packages.

Which single artifact matters most in the support request?

The timestamped failure line. Everything else keys off that moment: the search window before it, the correlated service and event logs, the Common Services Portal status captured while the fault was active, and the partner comparison showing what a working machine looks like. With that package, support can separate a provider connection failure from broker transport and tag selection without asking you to reinstall anything again.

Keep reading

  • Explainer

    Connect on-premise OPC UA and SQL servers to a cloud PI System

    Yes. Install the AVEVA adapters on-premise, on a small host next to the OPC UA and SQL servers, and point egress at PI Web API in the cloud; the PI Data Archive port is not a supported egress destination. Only the adapter-to-Web API direction needs an outbound route.

    Edge computing and IIoT

  • How-to

    Expose historian latest values over OPC UA or MQTT

    Yes — connect an integration gateway to the historian's classic I/O Server over SuiteLink (application name aahiosvrsvc, topic TagName) and publish the current values as OPC DA and MQTT. After a historian restart the I/O Server and the Live table return nothing until the source sends a new value, so a true last-known-from-disk read needs T-SQL or the historian SDK.

    Edge computing and IIoT

  • Troubleshooting

    AVEVA historian trends stop until a TOP Server restart

    When historian trends fed from TOP Server freeze and come back only after a restart, the IDAS SuiteLink topic is not detecting the disconnect: Set To No Timeout disables the reconnect attempt and a very large Timeout delays it. Clear the no-timeout selection, set a finite timeout, and treat the EventService relogon failure for FV_Gas_Process as a separate event-tag login problem.

    Edge computing and IIoT

Fixing AVEVA Historian VSS writer 0x800423f4 backup failures