Explainer
Why Process Historian enters the ActiveRecovery state
Short answer
ActiveRecovery is the Process Historian's normal catch-up sub-state: the historian requests buffered data from an OS Server to fill a recognized inactivity gap, then returns to Active by itself. Treat the paired lost-connection alarms as a side effect of that pull. Investigate only when a window lasts minutes, repeats roughly ten or more times a day, or never returns to Active.
On this page
- What the ActiveRecovery state does
- The operating states you will see
- Why the OS Server raises the lost-connection alarm during recovery
- Reading 28 recovery cycles out of a 7-day diagnostics log
- The three log patterns that are real faults
- Watching the state and taking control of it
- The decision for each case
- Questions asked
ActiveRecovery is not a fault state. It is the Process Historian's documented catch-up mode: the historian has recognized a period of inactivity — an OS Server was down, or the link to it dropped — and it is requesting the data that OS Server buffered during the gap. Active sits immediately before and immediately after it, and the historian returns to Active on its own once the gap is filled. The "OS-Server lost the connection to the PH" messages your operators see at the same timestamps are a side effect of that pull, not a second failure. On the V8.0 (2013) server this article's case runs on, the right response is to measure the diagnostics log — how long each recovery window runs, how often it repeats, whether it always ends in Active — and to act only on the three fault patterns at the end of this article.
What the ActiveRecovery state does #
The manufacturer's Process Historian administration documentation gives the state one job: in ActiveRecovery, the historian asks an OS Server to hand over the data belonging to a recognized period of inactivity — a gap it has detected in its incoming archive. Recognized means the historian saw a stretch of time during which nothing arrived from that server: an OS Server restart, a dropped network link, a restart of the historian itself. Instead of writing that window off as lost data, the historian goes back to the source and pulls the buffered segments that belong to it.
That is why the state is self-terminating. The pull finishes, the gap is written into the archive, and the historian returns to Active without operator action. Data is being recovered, not discarded. If your trend view shows the outage window populated after the fact, ActiveRecovery is what filled it.
The operating states you will see #
The diagnostics log walks a small, defined set of states, and a recovery cycle is Active into ActiveRecovery and back:
| State | What the historian is doing | What you see |
|---|---|---|
| Active | Archiving incoming data; OS Servers and the Information Server can query the archive | Normal operation |
| ActiveRecovery | Requesting the buffered data for a recognized inactivity window from an OS Server | Lost-connection messages at the OS clients for the duration of the pull |
| Deactivated | Maintenance tasks with limited access to the database | Planned service work on the historian |
The Active and ActiveRecovery definitions come from the manufacturer's administration documentation; Deactivated matches the release documentation for V8.0, which describes maintenance tasks that limit access to the database. A cycle that ends back in Active is complete, and complete is the normal outcome.
Why the OS Server raises the lost-connection alarm during recovery #
In the case behind this article, every "OS-Server lost the connection to the PH" message landed inside an ActiveRecovery window in the diagnostics log. The reading is direct: while the historian is busy pulling the gap data, the OS Server's live connection to it is interrupted for that stretch, and the clients raise the message against exactly those timestamps. Correlation is the first check — find the ActiveRecovery entry, set it against the alarm list, and if every alarm falls inside a window that ends in Active, the alarm reported the catch-up, not a broken link.
The hand-over itself is buffered store-and-forward: the OS Server keeps collecting through the outage and surrenders the buffered data once the historian asks for it. How that buffered data is accounted for on the historian side is covered in when store-and-forward data counts as stored in the historian.
Reading 28 recovery cycles out of a 7-day diagnostics log #
This worked example shows how to read your own export; the counts and timestamps are illustrative values in the shape a V8.0 (2013-era) server produces, not a measurement from a specific plant.
Inputs:
- Log window: 7 days of Process Historian diagnostics entries, exported from the historian server.
- Recovery entries: 28 lines on which the state changes into ActiveRecovery.
- Longest single window: 17 seconds, read from one cycle's transition stamps — 09:14:02 into ActiveRecovery, 09:14:19 back into Active.
The rule in words: cycles per day equals the number of ActiveRecovery entries divided by the number of days the log covers. A healthy result is a handful of cycles a day, each finishing in seconds and ending in Active. The investigation lines are roughly ten cycles a day, any single window that reaches minutes, and any cycle with no return to Active.
The arithmetic: 28 entries ÷ 7 days = 4 cycles per day. The longest window, 17 seconds, sits far below the minutes threshold.
The result: about 4 cycles a day, every one of them back in Active within seconds.
The decision: 4 cycles a day sits well under the investigation line and every window closes quickly and cleanly, so this log shows documented catch-up behavior, not a fault. Leave the server untouched and file the paired lost-connection alarms as informational.
The three log patterns that are real faults #
- The window runs into minutes. Gap size sets the floor on duration, so compare like with like: a minutes-long window after a short outage means the transfer path or the archive write is struggling, not that the gap was big. Check the link between OS Server and historian and the health of the archive disk before restarting any service.
- The frequency reaches roughly ten cycles a day. Each cycle maps to one gap, so that rate means ten interruptions a day — a flapping switch port, a marginal link, a service that keeps dropping. Line the timestamps up against the network and server event logs; the historian is the messenger here, not the culprit.
- The state never returns to Active. The cycle is stuck and the historian is effectively offline for archiving. That is an outage, not a state curiosity, and the controls in the next section plus the decisions at the end cover it.
One pattern that is not recovery's fault at all: a gap that never fills, leaving flat trend lines through the outage, means the data never arrived from the OS Server. That is a delivery fault, covered separately in why WinCC tag data never reaches Process Historian 2014. Data that appears late — a shift or a day after the outage — is a recovery that completed slowly, the signature walked through in why historian data goes missing and reappears the next day.
Watching the state and taking control of it #
The historian's diagnostics view is the source of truth. It records each transition with a timestamp, so the first and last lines of a cycle give you the window duration and a week of entries gives you the frequency — which is exactly what the worked example above reads.
Manual control exists and is documented: the Process Historian icon in the server's system tray opens a shortcut menu that carries the state commands, including one that sets the state to Active, and the manufacturer documents that menu in support entry 109475338. One caution, and it is the only one this article needs: never force Active while a gap pull is still pending — the alarm disappears and the buffered data never reaches the archive, so you will have silenced the message and abandoned the history it stood for. Confirm from the log that the last cycle completed before using the command. For planned service work, Deactivated is the documented state, and the OS Servers hand over what they buffered once the historian is back.
The decision for each case #
- Cycle completes in seconds, returns to Active, a handful per day: documented catch-up behavior. No action on the historian. File the paired lost-connection alarms as informational and note the pattern in the shift log so a change in frequency or duration stands out.
- Windows stretching to minutes, or frequency at the ten-a-day line or above: investigate delivery, not the state machine — the link between OS Server and historian, the OS Server's own health, and the archive write path. Correlate every alarm timestamp with a recovery window before changing anything.
- Stuck in ActiveRecovery with no return to Active: treat it as a historian outage. Restart the historian's maintenance service in Windows Services if the cycle is stalled, use the documented manual state command only under the caution above, and afterwards confirm the gap actually filled by checking a known tag, value and timestamp from inside the outage window.
A recovery that ends in Active is the system protecting your history. The two mistakes worth avoiding are reading the paired alarm as a proven network fault, and forcing the state over a gap that has not been filled.
Questions asked
Does the OS Server lose its buffered data if ActiveRecovery runs long?
The buffer belongs to the OS Server, not the historian: the server holds the data it collected during the outage until the historian asks for it, and the recovery pull is what moves it into the archive. Duration alone does not empty that buffer. Data is put at risk only when a recovery ends before it completes, through a forced return to Active or a service stop in mid-pull, so a long window is a reason to investigate the transfer, never to abort it.
How long should an ActiveRecovery window last?
As long as the buffered transfer takes: seconds for a short outage over a healthy link, longer after a long outage because there is more data to hand over. Judge the duration against the size of the gap, not against a fixed limit. The signal to investigate is a window that runs to minutes after a short interruption, which points at the transfer path or the archive write rather than at the recovery mechanism itself.
Why does the alarm say the connection was lost when nothing is broken?
The message text reports an interrupted live connection and does not distinguish recovery from failure, and the OS clients raise it either way during the pull. Read it against the historian's diagnostics log: a timestamp that falls inside an ActiveRecovery window ending in Active means the catch-up interrupted the connection, not a fault. A message with no matching recovery entry, or one that outlasts the window, is the case worth escalating.
Can operators see the state without logging on to the historian server?
Yes. In an RT Professional project configured in TIA Portal, the system tag @PHServer_Principal_State exposes the historian's status to Runtime, so a facescreen element can display the current state. On the server itself, the Process Historian icon in the system tray shows the state at a glance. The diagnostics log remains the authoritative record, because it is the only source that timestamps each transition into and out of recovery.
Why does a healthy plant still show recovery several times a day?
Because short gaps are routine: an OS Server restarted after patching, a switch rebooted during a shift change, a brief link drop, a historian maintenance window. Each gap produces one short cycle and one burst of connection messages stamped inside it. The daily count tracks maintenance activity, so a handful of completed cycles is normal. What deserves attention is change: windows growing longer, or a frequency climbing from one day to the next.