IMD SolutionComputing LibraryShop main store

Troubleshooting

Why a historian stops after storage deletion errors

Edge computing and IIoT Published 7 min read

Short answer

The stop is the second event; the first storage or deletion error before it is the cause. A free-space reading proves the last retention cycle ran, not that the next deletion will. Map every configured location including auto-summary paths, test them as the historian's service account, then use the intake and backlog arithmetic to decide whether recovery load is pushing deletion past its limit.

On this page
  1. Separate the stop from the first error
  2. Map every storage location, including auto-summary
  3. Test each path as the service account
  4. Run the free-space and backlog arithmetic
  5. Decide whether recovery load is the trigger
  6. Fix the operation the first error names
  7. Questions asked

A historian that stops a few hours or days after each start, with its free-space floor still intact, is not running out of disk. It is failing a storage operation: the deletion of its oldest blocks, which retention runs to hold that floor. The free-space reading proves the last cycle succeeded; it says nothing about the next deletion. Treat the first storage or deletion error before each stop, not the stop state itself, as the trigger. Map every configured storage location including the auto-summary paths, test each one as the service account rather than as an administrator, then use intake and backlog arithmetic to decide whether store-and-forward recovery pushes deletion past what the disk can sustain. The sections below follow that order and end with the fix for each failure class.

Separate the stop from the first error #

A stopped historian and a failed tag look alike on a trend and behave differently on the plant. A tag or driver fault affects particular values or their quality; a historian stop interrupts recording broadly while operator displays keep showing live controller values, because live acquisition and historical storage are separate paths. Your logs already put storage and deletion ahead of each stop, so this sequence works that lead.

  1. Record the timestamp and full text of the first storage or deletion error before each stop, including the path or file name it names.
  2. Compare a live value with its trend line: if live values move while newly timestamped history stops appearing, acquisition is healthy and storage is the failing path.
  3. Preserve historian and operating-system logs for the window around every stop, and record the historian version and build from its product information screen.
  4. Capture each storage location's path and settings by configuration export, screenshot or transcription, auto-summary locations included.
  5. Note what the historian was doing at each stop: steady recording, backlog drain after a start, or a scheduled backup or scan window.

If the first error names storage or deletion, continue below. If a later incident's first error names acquisition instead, that incident belongs to the driver and controller path, not to this investigation.

Map every storage location, including auto-summary #

Checking only the main history volume can miss a secondary destination with its own capacity, rights or availability, and two configured paths can sit on one underlying volume, so their free space is not independent. Auto-summary output is the classic blind spot: AVEVA's Historian documentation, for example, keeps automatically generated summaries in their own partition for faster retrieval over long time ranges, so an engineer who inspects only the history volume never sees the location that failed.

Storage setting Where to inspect it What fails there
Primary history location historian storage configuration block creation and deletion for recorded data
Additional storage locations each configured destination a second volume with its own capacity, rights or availability
Auto-summary location summary storage configuration access or capacity failures invisible from the history volume
Retention rule storage or retention configuration the free-space floor or maximum age that selects blocks for deletion
Service identity historian service configuration the account whose rights decide whether create, update and delete succeed
Underlying volume operating-system disk and mount information whether two paths share one device and one free-space pool

One rule before any cleanup: never delete or move historian-managed block files by hand to reclaim space; use the product's documented retention and repair tools, and keep any manual test to a disposable file.

Test each path as the service account #

An administrator's interactive access proves nothing about the historian's rights, and vendor defaults differ in both directions. Ignition's Local Historian plug-in documents that its service runs by default in the local SYSTEM account, which holds no permission outside that PC, so a network share as a storage destination fails under the default even though an administrator can browse it. Rockwell's FactoryTalk Historian SE installation and configuration guide, on the other hand, directs the service to a logon account with PI Data Archive and PI AF server access permissions. The lesson is the same: the account that runs the service decides.

For each configured path, run a create-and-delete test as the service identity: create a small disposable file, then delete it. The delete step matters, because deletion is the operation that is failing, and a write-only test can pass while the real fault persists.

Read each result as a pair. Write and delete both succeed points to historian storage metadata or input-output faults, and measurement takes over. Write succeeds and delete fails points to a lock or a deletion-specific right. Both fail points to rights or an unavailable destination.

Run the free-space and backlog arithmetic #

This machine holds its 100 GB floor on a 900 GB volume, and every restart re-ingests store-and-forward data while retention deletes. The arithmetic below uses example inputs for the rates; measure your own and rerun it. The intake figure is the bytes written to the history location over a quiet day, divided by 24.

  • Example intake of 2 GB/h: a 36 h store-and-forward backlog then holds 36 × 2 = 72 GB to re-ingest after each restart.
  • If that backlog drains in 6 h, the drain adds 72 ÷ 6 = 12 GB/h on top of the live 2 GB/h, a combined 12 + 2 = 14 GB/h, or 14 ÷ 2 = 7 times the normal write rate.
  • During the drain, retention must delete at that combined 14 GB/h to hold the floor; a deletion path that stalls inside a backup window cannot.
  • If deletion fails outright, the floor is runway rather than headroom: 100 ÷ 2 = 50 h until the volume fills.

Stops every few hours or few days fit a retention loop that succeeds most of the time and fails under specific load or schedule conditions, which is why the level of free space misleads and the rate decides.

Decide whether recovery load is the trigger #

After each start, the historian drains buffered data while live collection and retention deletion continue. AVEVA's store-and-forward documentation describes the source ending local caching and resuming delivery after an outage, with the historian reconciling what arrives, so the drain is a designed burst, not an anomaly. The machine inventory of 16 GB of RAM and 16 threads describes capacity, not write latency, so measure through one full stop window: the free-space slope per volume, disk latency and queue depth, and backlog drain progress. The method that separates a loaded disk from a broken service is set out in How to prove an IPC slowdown is hardware not software, and before you call recovery complete, confirm what actually landed with When store-and-forward data counts as stored in the historian.

Read the measurements against the error timestamps. Latency and queueing that spike only during the drain, while free space dips and recovers, make recovery contention the trigger. Errors and stalls that line up with a fixed clock time make a scheduled process the trigger. Neither pattern points to storage metadata or a damaged block.

Fix the operation the first error names #

Pick the correction from the first error's text and destination, confirmed across at least two incidents:

  • Access denied on one named path: correct the service account's rights on that destination. A network destination under a local-only default account needs the service moved to a proper logon account, as both documented examples above require.
  • Access tests pass but the error persists at one path: a lock. Overlap the error timestamps with backup, antivirus and reporting schedules, move the conflicting window, and change exclusions only once the overlap is demonstrated.
  • The same block or file fails while others delete: suspect a damaged block. Run the vendor's documented verify or repair tooling for that product, then watch the next retention cycle finish cleanly.
  • Latency and queueing spike only during the drain: stagger the drain, move history blocks to faster storage, or lower recovery concurrency in the product's settings. Each blind restart restores collection briefly and then re-creates the very load that stopped it, and repeated restarts leave their own debris, the dump-loop pattern described in Recover a historian dump loop after a service restart.
  • A storage path must move: schedule the change. AVEVA's storage-location documentation requires a complete Historian shutdown and restart after a path change, so the edit is not a live adjustment.

If your measurements show the disk cannot sustain recording, deletion and drain on any schedule, the durable fix is a bigger historian host, for example a fanless industrial mini PC sized to the measured write rate rather than to a capacity figure.

Decision for this case, where deletion errors precede each stop, the floor holds, and restart recovery works: expect one of three findings, service rights on one location, a lock from a scheduled process, or recovery contention. Confirm which by timestamp overlap and the rate arithmetic, fix that one operation, then let the historian run through several drain-and-retain cycles before closing the ticket.

Questions asked

Does raising the free-space floor stop the deletion errors?

No. The stop follows a failed deletion operation, and a higher floor makes retention delete more data through that same failing operation on every cycle. A higher floor also stores less history on the volume. Correct the operation the first error names, whether rights, a lock or recovery contention, then tune the floor only if the balance between intake and retention needs it.

Can I delete the oldest historian files by hand to reclaim space?

The historian indexes its block files in storage metadata, and hand-deleting them corrupts that index, which turns a retention fault into a rebuild. Reclaim space only through the product's documented retention or repair tools, and keep any manual path check to a disposable file you create and delete yourself as the service account.

How do I measure the intake figure for the backlog arithmetic?

Read the bytes written to the history volume over one full production day from the operating system's disk counters, and divide by 24 for an hourly rate. Repeat on a heavy day and during a batch campaign, because intake follows production. Use the heavy-day rate when judging recovery headroom and the quiet-day rate for the retention runway.

Why do the stops come after a few hours sometimes and a few days other times?

A variable interval points at a scheduled or load-dependent trigger rather than a fixed quota. Lay the stop timestamps against backup windows, antivirus scans, reporting jobs and backlog drains. If every stop overlaps one of those, the conflict is the trigger. If none does, watch disk latency through the hours before a stop, because contention builds with load rather than with the clock.

What should go to vendor support if the fix is not clear?

Send the historian version and build, the full text and timestamp of the first storage or deletion error before each stop, every configured storage location path including auto-summary ones, the service account in use, and the free-space and latency measurements from one stop window. That package lets support match the error text to documented behavior instead of diagnosing from the stop state.

Keep reading

  • Troubleshooting

    Fix Historian timeout error 1460 after a 23.1 upgrade

    Error 1460 after a 17.2 to 23.1 Historian upgrade is a server-side timeout: packet processing, tag retrieval and the INSQL linked-server route all miss their deadlines, so the server and every client lose tags together. Prove it by retrieving SysTimeMin on the server itself, then fix the branch that failed - services, storage, provider or upgrade components - and leave display bindings alone.

    Edge computing and IIoT

  • Troubleshooting

    Fixing a Historian vValue write permission error on string tags

    The OLE DB error 'The user did not have permission to write to the column vValue' has two causes, and only one is about permissions: the login writing the extension tables must hold aaAdministrator membership, and a string tag's history must be written through the string-history interface and its Value column, not vValue on History. Alarm and event history accepts SELECT only, so a reason stored there is not correctable in place at all.

    Edge computing and IIoT

  • Troubleshooting

    Historian tagnames showing a ? prefix mean hidden spaces

    A ? prefix on a tagname in an aahDBDump export marks a hidden space-type character in the stored name, not a corrupt tag or lost history. Find every affected tag with a CHARINDEX query on dbo.Tag in the Runtime database, then rename them with the aahTagRename utility (TN Hist235), which preserves history and needs Historian stopped and disabled under store-and-forward protection.

    Edge computing and IIoT