Error: "There was an error creating Backup, Unable to create backup" when creating a backup from VMware Cloud Director Appliance
search cancel

Error: "There was an error creating Backup, Unable to create backup" when creating a backup from VMware Cloud Director Appliance

book

Article ID: 411740

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When trying to create a backup from VMware Cloud Director VAMI page, the following error is seen:

There was an error creating Backup
Unable to create backup: A failure occurred while creating the backup on the primary

  • When attempting to generate a database backup from the primary cell via SSH using the script /opt/vmware/appliance/bin/create-backup.sh, the operation fails with the following error:

"Another Backup Creation is in Progress. Please retry later"

Environment

VMware Cloud Director 10.x

Cause

This error happens when a previous backup failed or got stuck, leaving the backup.lock file in the /tmp directory. Because this file wasn't automatically removed, it now prevents new backups from initializing.

Resolution

1. Take non-memory snapshot of all the VCD cells from vCenter.

2. Navigate to the /tmp directory:

    cd /tmp

3. Verify the presence of the lock file using the below command:

    ls -l backup.lock

4. Remove the stale lock file using the below command:

  rm -rf backup.lock

3. Reinitiate the VCD backup from the VAMI page by following the steps mentioned in Backup of VCD DB.

Additional Information