Metric History Gaps After Upgrade Due to File Permission Issues - VCF Operations
search cancel

Metric History Gaps After Upgrade Due to File Permission Issues - VCF Operations

book

Article ID: 458035

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • After performing an upgrade of VCF Operations, you may experience gaps in metric history. While data collection appears successful prior to and after a specific window of time, metric data for the upgrade period is missing.

  • The following error messages are recorded in the /storage/log/vcops/log/analytics-#######.log file:

    2026-09-29T12:20:41.333Z ERROR analytics ######## [ops@#### threadId="###" threadName="Regular Data storage worker thread 5" operationId=""] [com.vmware.vcops.fsdb.datareceiver.StorageWorkItem.saveObservation] - Save metric data failed: Cannot open file for Resource #########, filename = /usr/lib/vmware-vcops/data/####/#########/2026_09_18######.dat: Permission denied

  • During or immediately before the upgrade process, the system encountered a disk full condition on the storage/database partition. Additional disk space was subsequently provisioned in accordance with KB Error: "data retrieve is not initialized yet" when accessing the UI.

Environment

VCF Operations 9.1.1.x

Cause

If the storage or database partition reached full capacity during the upgrade process, the system may have incorrectly set file permissions within the data directory. Files created or modified during this event may have been assigned root ownership instead of the required admin user ownership, preventing the analytics service from writing new metric data to the local file system.

Resolution

To resolve the metric gaps and restore the ability to write data, you must restore the correct ownership to the data directory.

  1. Log in to the VCF Operations appliance via SSH and check the ownership of the files in the data directory by running:

     ls -la /usr/lib/vmware-vcops/data/

    Should any files or subfolder contents show root ownership instead of admin, move to the next step.

  2. Take a snapshot of the VCF Operations cluster by following the instructions in the Create a Snapshot Before You Upgrade VCF Operations documentation 
  3. Restore the directory ownership to the administrative user by running the following command: 

    chown -R admin:admin /usr/lib/vmware-vcops/data/
  4. Navigate to the Administrator interface (https://<primary-node-FQDN-or-IP-address>/admin) and bring the VCF Operations cluster back online
  5. After correcting the ownership, verify the analytics logs to ensure that "Permission denied" errors are no longer present. The system should resume writing metric data to the disk without interruption.