IMD SolutionComputing LibraryShop main store

Troubleshooting

Process Historian idle after SP2 UPD3 update

Edge computing and IIoT Published 6 min read

Short answer

An idle Process Historian with every Windows service running means the historian core never completed startup, so start and shutdown are rejected. The cause is almost always below the service layer: a SQL Server database that is not online, configuration the core cannot read, a full volume or a lost service account login. Fix that layer, restart SQL Server before the historian services, and the core reaches running and archives again.

On this page
  1. What the idle status is telling you
  2. Why an update can leave the core uninitialized
  3. Work through the SQL Server checks in order
  4. A worked example: date the failure, then read the state
  5. Restart in the documented order
  6. If it still sits idle after SQL Server is clean
  7. Confirm the historian archives again
  8. Keep the next update from repeating this
  9. Questions asked

An idle status after the 2014 SP2 UPD3 update, with every Windows service reporting Running and no network fault, means the Process Historian core never completed startup. Start and shutdown are rejected because the management layer cannot command a core that has not initialized. The cause is almost never the historian binaries themselves; it sits one layer down, in the SQL Server instance and databases the core reads its configuration from, the free space on those volumes, or the service account's SQL login. Work from the database upward, in that order, and restart in the documented sequence before reinstalling anything.

What the idle status is telling you #

Match the observation to the layer it points to before changing anything:

  • Status shows Idle and start has no effect. The core cannot finish initialization; go to the SQL instance and database state first.
  • Every Windows service shows Running. The service control manager proves only that processes launched. It says nothing about the application state, so never read service state as health.
  • No stored values since the update completed. Archiving never started; compare the newest archived timestamp with the update time.
  • The data source list is empty. The configuration was not read at startup. Treat this and the idle state as one failure with two views.
  • Ping and port checks pass. That rules out transport only; keep going into SQL Server.

A licensing fault announces itself instead of hiding: the console reports a grant error rather than an idle core, which is the separate fault covered in Process Historian GrantLicense Failed means a license problem. An idle status with running services is not that fault.

Why an update can leave the core uninitialized #

A Process Historian update does two jobs. It replaces application files and services, and it upgrades the schema and content of the SQL databases that hold configuration and archive metadata. If the database step fails or is interrupted, the new binaries come up against an old or half-upgraded schema. The core cannot complete initialization and sits idle while every Windows service still reports Running.

The same result follows a pending OS restart from updates installed alongside the historian update, a SQL instance that was not online when the historian services started, or a database left in a recovery or suspect state. An empty data source list is the same failure seen from the configuration side: if the core cannot read its configuration at startup, the source and archive definitions never load and there is nothing to write to.

Work through the SQL Server checks in order #

Log in to the SQL Server instance used by the historian with a sysadmin-level account and take a full backup of the historian databases and configuration before any repair; that backup is the rollback if a later step goes wrong. Then:

  1. Confirm the SQL Server service is running and the instance accepts connections.
  2. Query the database states with SELECT name, state_desc FROM sys.databases;. Every historian database should report ONLINE. A database reporting SUSPECT, RESTORING or OFFLINE explains the idle state directly; bring it online or restore it. A database left inaccessible by an unclean shutdown is the same failure mode covered in WinCC can't access database after power loss: DCF and reset steps.
  3. Run an integrity check on each historian database with DBCC CHECKDB inside a maintenance window. Expect zero allocation and consistency errors.
  4. Read the SQL Server error log and the Windows Application log from the update window. A failed schema upgrade, a login failure or a disk-full message there is the lead to follow.
  5. Check free space on the volumes holding the database files, log files and archive segments. A full volume blocks startup; the same class of fault shows up as dump files filling the system drive, which recovering a historian dump loop after a service restart walks through.
  6. Confirm the historian service account still has its SQL login and database roles. An orphaned login, remapped during the update, blocks startup with no network symptom at all.

A worked example: date the failure, then read the state #

Suppose the update setup finished at 14:05 and the newest archived value carries a timestamp of 10:33 the same day. The unlogged interval is 14:05 minus 10:33, which is 3 h 32 min of produced-but-not-stored data. A gap that opens during or immediately after the update window points at an interrupted database upgrade, not at the historian binaries.

On that same example, the state query returns the historian database with state_desc of SUSPECT. That is the cause: recover the database online or restore it from backup, then restart in the order below. If instead every database reports ONLINE and the integrity check is clean, move to the logs and the login check; the cause is one of the remaining layers, and these example numbers do not transfer to a system where the gap opens at a different time.

Restart in the documented order #

The historian core reads its configuration from SQL Server at startup, so the instance must be fully online before the historian services start:

  1. Complete any pending OS restart. Patching the OS and the historian in one window leaves files in use and operations pending that block the installer.
  2. Stop the historian services, using the Process Historian Management Console where it is deployed.
  3. Restart the SQL Server service and wait until the instance is fully online and accepting connections.
  4. Start the historian services and read the console state.

If the core reaches running, open the data source list and the archives and go to verification. If it stays idle, go to the next section.

If it still sits idle after SQL Server is clean #

  • Logs from the restart attempt show a schema or version mismatch: re-run the UPD3 installation as a repair over the existing installation, then re-read the logs for the database upgrade step.
  • DBCC CHECKDB found damage the repair cannot fix: restore the pre-update backup and repeat the update from the documented UPD1 baseline instead of continuing on a broken schema.
  • The core runs but the data sources are missing: restore the configuration from the pre-update backup or re-import the exported configuration, then verify each source connection.

Confirm the historian archives again #

  • The management console reports running, and a test stop and start cycle inside a maintenance window returns it to running.
  • All pre-update data sources are present and show connected.
  • The newest archived value for a known tag carries a timestamp newer than the restart and advances at that tag's update rate.
  • The active archive segment grows, and the SQL Server and historian logs show no new errors across one full archiving cycle.

The interval between the update and the recovery is a gap in the archive. Whether it fills depends on whether the source stations buffered their values while the historian was down; the completion check described in When store-and-forward data counts as stored in the historian tells you whether buffered data actually arrived before you record the gap as permanent.

Keep the next update from repeating this #

  • Back up the historian databases and configuration before every update and test that the backup restores. An update without a verified rollback is the pattern that turns a quick patch into an outage.
  • Separate OS patching from historian updates, with a completed reboot between them.
  • Read the release notes of each update package for the supported upgrade path and required pre-installed software, and verify the installed baseline against that list before scheduling.
  • Monitor the historian running state and the age of the newest archived value, not the service state.
  • Stage the update on a copy of the production configuration first. Regular updating is sound policy only when each one is tested and recoverable.

Questions asked

What happens if I keep pressing start while the historian is idle?

Nothing. The console sends the command to a core that never finished initializing, so every start and shutdown request is rejected. The buttons work again only after the underlying fault, most often a database that is not online, a full volume or a lost SQL login, is repaired and the historian services are restarted once SQL Server is fully online.

Does an idle status point to a license fault?

No. A license failure announces itself in the console with its own grant error, not with an idle core. If the console shows only Idle with all services running, work through the SQL Server checks: database state, free disk space, the SQL error log and the historian service account's login mapping.

Can UPD3 be installed straight over an UPD1 baseline?

The release notes for the update package name the software that must already be installed before setup runs; check the installed baseline against that list before scheduling the work. An upgrade that skips a documented step is a known way to leave the database schema half-upgraded, and that shows up as the idle state once the new files are in place.

The databases all report online, so why is the historian still idle?

Move to the next layers. Read the SQL Server error log and the Windows Application log from the update window for a failed schema upgrade or a login failure, and confirm the historian service account still maps to its SQL login and database roles. If the logs show a version or schema mismatch, re-run the update package as a repair over the existing installation.

Keep reading

  • Troubleshooting

    Why WinCC tag data never reaches Process Historian 2014

    An empty Outgoing Queues folder under Message Queuing on the WinCC host means the PH-Ready publisher never enqueued a message, so this is not a network or delivery fault. The fix is Process Historian 2014 SP2 Update 2 with Information Server 2014 SP2 Update 2 on both machines at the same level, a manually typed PH server name in the PH-Ready wizard, and the CCCAPHServer service account present with the same password on both machines.

    Edge computing and IIoT

  • Troubleshooting

    Edge trend shows no historian data: fix the doubled SELECT

    The trend stays blank because a complete SELECT statement was pasted into the Table field, so the gateway wraps it in its own SELECT ... FROM and SQL Server rejects the result as incorrect syntax near the keyword select. Put only Runtime.dbo.History in Table, carry DateTime, TagName and Value in the column controls, and move TagName = 'SysTimeSec' into the filter control.

    Edge computing and IIoT

  • Troubleshooting

    Fix a DeltaV embedded trend that shows no PI history

    The error names the chart's own PI history connection, PI1, failing to open — the data is not missing. Process History View working on the same workstation proves the server, network and stored interval are good, so stop cycling hostname, IP and defaulthost and reconcile the chart's Historical Data Server entry and the PI1 connection definition against the viewer's working path.

    Edge computing and IIoT