vCenter Server VAMI backups are not getting deleted even after specifying the retention policy
search cancel

vCenter Server VAMI backups are not getting deleted even after specifying the retention policy

book

Article ID: 388443

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Backup worked as expected.
  • vCenter server VAMI backup files on the backup server are not being deleted even though the retention policy has been defined. 
  • There may be similar error messages in backupScheduler.log
    YYYY-MM-DDTHH:MM:SS.363 [0] [MainProcess:PID-2226361] [Scheduler::ExecRetentionJob:Scheduler.py:99] ERROR: Failed to delete old backup files from location: backup_location/S_8.0.3.00400_20250127-045905_. Err: Plugin error occurred. ErrCode: 1, Args: ()
    ...
    plugins.StorageIOErrorsLib.PluginError: Plugin error occurred. ErrCode: 1, Args: ()
    YYYY-MM-DDTHH:MM.417 [0] [MainProcess:PID-2226361] [SMBClientStorageIOLib::_process_cmd_output:SMBClientStorageIOLib.py:97] ERROR: Command failed with error: NT_STATUS_ACCESS_DENIED

Environment

VMware vCenter Server 8.x
VMware vCenter Server 7.x

Cause

The backup user does not have the privileges to make changes in the backup directory.

Resolution

Make sure the backup user has the required privileges to delete files and folders in the backup directory.