IMD SolutionComputing LibraryShop main store

Troubleshooting

Why historian output writes stop on a secondary server

Edge computing and IIoT Published 6 min read

Short answer

Output writes stop because the interface keeps pulling source-tag events from its configured /host server, and a single PI-model interface instance does not search the collective for another member. Buffering only covers the interface-to-server direction, which is why inputs keep logging. Point the standby interface's /host at the secondary member, confirm the source-tag events reach it, and prove the subscription with pilistupd.

On this page
  1. Why inputs survive and outputs die
  2. What buffering does not do
  3. The checks that decide it
  4. How big the silent gap is
  5. The fix for each configuration
  6. What to verify after the primary returns
  7. Questions asked

When the primary member of a FactoryTalk Historian SE 3.01.00 collective drops, output points stall on every interface — standalone and phase-2 redundant alike — while the same PLCs keep feeding inputs to history. The cause is direction. An FTLDInt 4.5.4.0 instance reads the events that trigger its output writes from the /host server named in its startup configuration, and a PI-model interface does not search the collective for a surviving member. Buffering keeps the inputs flowing because it covers the interface-to-server direction; output writes depend on the server-to-interface pull, which nothing replaces while that member is down. The fix: give the standby interface a /host on the secondary member, make sure the source-tag events actually reach that member, and prove the subscription with pilistupd.

Why inputs survive and outputs die #

The two paths through one interface run in opposite directions, and the collective protects only one of them.

An input point starts at the PLC: the interface reads a value and sends it to the historian. When a member is unavailable, the buffering subsystem on the interface node queues those events and delivers them when the member returns, within the buffering resources allocated on that node; the surviving member keeps logging in real time.

An output point starts on the server: the interface must first see a new event on the output point's source tag, then submit the write to the PLC. While its /host member is unreachable, every function that pulls from that server returns errors:

  • checking output point source tags for new events,
  • checking for point configuration updates,
  • checking clock offset against the server.
Path Direction Protected during a member outage by
Input points PLC → interface → historian Interface buffering, queuing events for the unavailable member
Output points Source tag → interface → PLC Nothing: the /host event pull fails until the member returns

A healthy PLC connection proves nothing about the second row. Continued polling shows the controller link works; it does not show that any command event reached the interface.

What buffering does not do #

N-way buffering is a delivery queue, not a subscription manager. It guarantees that events the interface already produced eventually reach every member; it does not register the interface for snapshot updates on a surviving member and does not move the /host assignment. This is deliberate: the model is built to ride out short network transients, recovering efficiently from the update manager queues on the server after reconnection. A member that stays down for an hour is outside what that recovery was designed to cover.

So "the points exist on the secondary" is not evidence. Point configuration is present on the member, but fresh source-tag events arrive there only if whatever produces them writes to that member. Configuration presence and runtime event delivery are separate facts, and only the second one produces a write.

The checks that decide it #

These outputs command equipment: prove the failover with an approved test output or in a controlled maintenance window, never by dropping the primary during production.

  1. Read the /host of every instance from its startup configuration, then read the interface logs to see which server the running process actually contacted during the outage. Record both; they are not always the same.
  2. Read the output source tags on the secondary — value and timestamp, before and during the outage. A timestamp that keeps advancing proves command events exist on the surviving member.
  3. Run pilistupd on each member. It lists the clients signed up for snapshot updates; if your interfaces registered on the primary only, the secondary can hold fresh events that nothing reads.
  4. Confirm the redundancy state. In a hot-standby pair only one instance writes at a time, so verify the standby became the active writer and owns the PLC session.
  5. Read the write results at the controller. That separates "the interface consumed no event" from "the write was attempted and refused" — two different problems with two different fixes.

How big the silent gap is #

Illustrative numbers; substitute your own rates. Assume a 90-minute primary outage, source tags updated every 30 s by the producing application, and 12 output points fed this way:

  • Outage length: 90 min × 60 = 5,400 s
  • Command events per source tag: 5,400 ÷ 30 = 180
  • Missed PLC writes across 12 points: 180 × 12 = 2,160

On the input side, 40 tags at a 5 s scan generate 5,400 ÷ 5 = 1,080 events per tag, 1,080 × 40 = 43,200 events, all queued by buffering and delivered to the primary when it rejoined.

The score at restoration: 43,200 of 43,200 input events survived, 0 of 2,160 command events reached the PLCs. More buffering cannot improve the second number, because the queue only holds events the interface produced — and during the outage it produced no writes, having seen no source events.

The fix for each configuration #

The documented pattern for interface failover across a collective is redundant instances synchronized through a shared file, each assigned to a different collective member, so one member's loss leaves the other instance fully functional. Apply it by case:

  • You already run a hot-standby pair. Set the standby instance's /host to the secondary member, and create the interface's trust or mapping on both members — a standby pointed at a server it cannot authenticate against fails as completely as one pointed at a dead server. Keep hot standby rather than falling back to cold failover: it preserves the session state a cold restart must rebuild.
  • You run standalone interfaces only. A single instance cannot move its /host on its own, so its outputs are dead by design for as long as its member is down. For outputs that matter, replace the standalone with a redundant pair split across the members — that is the decision. Do not add buffering to solve a subscription problem.
  • The source-tag events never reach the secondary. No interface change fixes this. Find the application that produces those events; if it writes to the primary only, it must write to the surviving member or to both. Writes aimed at one member of a collective have their own failure modes, and troubleshooting AF SDK writes to PI collective members covers that side of the path.

One scope limit: the no-search behavior is the general PI interface model, and FTLDInt 4.5.4.0 carries it through the shared UniInt architecture — as does OPCInt. Replication interfaces on the same model document their own source Data Archive-level failover mode, where one instance draws from either of two configured source archives; in every case the failover is configured, never improvised by the interface.

What to verify after the primary returns #

  • Correlate the moment output writes resumed with the log entries showing the /host connection recovering. That correlation is the confirmation of the diagnosis.
  • Confirm the buffered input backfill drained to the returned member and input history is continuous on both members.
  • Audit what each member holds for the outage interval; a failover that leaves one store short of the other is a pattern common to historians generally, and what Ignition historian failover leaves behind in the second database shows the equivalent audit on another platform.
  • Retest under control: with the standby's /host on the secondary, take the primary down inside the window and run pilistupd on the secondary during the outage. A passed subscription check during a real outage is the closure evidence.

Questions asked

Does N-way buffering protect output writes too?

No. Buffering queues events the interface has already produced and delivers them to unavailable members when they return. Output writes need the opposite flow: events pulled from the /host server that trigger each write. Buffering never substitutes for that pull, which is why inputs ride through the outage while outputs stall.

What does pilistupd actually show?

Run against a member, it lists the clients signed up for snapshot updates on that server. During an outage you are looking for your interface's registration on the secondary. If the interfaces appear on the primary only, the secondary can hold fresh source-tag events that nothing reads and no writes fire.

Is this failure specific to FTLDInt?

No. The behavior belongs to the general PI interface model, and FTLDInt 4.5.4.0 carries it through the shared UniInt architecture; OPCInt fails the same way when its /host member drops. Replication interfaces differ only in offering a documented source-server failover mode you must configure explicitly.

The standby already points at the secondary and outputs still stall. What now?

Read the output source tags on the secondary during the outage. If their timestamps stop advancing the moment the primary drops, the application producing those events writes to the primary only, and no interface-side change creates the missing commands. Fix the event producer first, then retest.

How large a gap should we plan for until the fix is in?

Count it from the update rate: one missed command event per source tag per update interval of outage. At a 30 s update rate, a two-hour outage is 7,200 ÷ 30 = 240 missed writes per tag, each one a PLC write that never happened. Only the redundant pair with split /host assignments closes that window.

Keep reading

  • Troubleshooting

    Historian trend flat line: check Query Row Limit

    A historian trend that draws one straight value in history mode while live mode and a direct SQL query both return good data is truncating rows client-side. The tag's Query Row Limit on the graph was set to 2 instead of the documented default 0, so only two samples came back. Set it to 0, then confirm the trend's saved row count matches the SQL count.

    Edge computing and IIoT

  • Troubleshooting

    Ignition historian logs memory tags but not OPC tag changes

    Memory tags record because their history subscription was created fresh; the migrated OPC tags carry a stale recording subscription that a storage-provider field edit alone does not rebuild. Fix one tag first: disable history, save, re-enable history with the production provider, and save again, then verify with one safely forceable fault before batching across the remaining tags.

    Edge computing and IIoT

  • Troubleshooting

    PI-to-PI interface service will not start from FactoryTalk Historian

    When the PI-to-PI interface service will not start, the fault sits in the local launch, access to the two historians, or the FactoryTalk Historian license, which must permit native OSIsoft clients. Capture the exact startup error, work the three gates in fixed order, then prove the destination with values, timestamps and quality.

    Edge computing and IIoT