During a restore from backup operation, if the SDDC Manager instance was initially upgraded from 5.x to 9.0.x, the restore operation fails at the sub-task RestoreSDDCManagerConfiguration with error Restore operation failed for SDDC Configuration
search cancel

During a restore from backup operation, if the SDDC Manager instance was initially upgraded from 5.x to 9.0.x, the restore operation fails at the sub-task RestoreSDDCManagerConfiguration with error Restore operation failed for SDDC Configuration

book

Article ID: 416375

calendar_today

Updated On:

Products

VMware SDDC Manager VCF Operations

Issue/Introduction

  • SDDC Manager is upgraded from 5.x to 9.0.x.
  • Restoring from a file-based backup fails.
  • The following error appears in /var/log/vmware/vcf/sddc-support.log:

yyyy-mm-ddTHH:MM:17.227+0000 INFO [vcf_sos] [commandutils.py::execute_cmd_locally::228::restore-f3d9dd76-b690-48d9-9a08-279535a73770] b'Restoring file /home/vcf/feature.properties\n'
yyyy-mm-ddTHH:MM:17.236+0000 INFO [vcf_sos] [commandutils.py::execute_cmd_locally::228::restore-f3d9dd76-b690-48d9-9a08-279535a73770] b'sending incremental file list\n'
yyyy-mm-ddTHH:MM:17.358+0000 INFO [vcf_sos] [commandutils.py::execute_cmd_locally::228::restore-f3d9dd76-b690-48d9-9a08-279535a73770] b'\n'
yyyy-mm-ddTHH:MM:17.359+0000 INFO [vcf_sos] [commandutils.py::execute_cmd_locally::228::restore-f3d9dd76-b690-48d9-9a08-279535a73770] b'sent 19 bytes  received 12 bytes  62.00 bytes/sec\n'
yyyy-mm-ddTHH:MM:17.359+0000 INFO [vcf_sos] [commandutils.py::execute_cmd_locally::228::restore-f3d9dd76-b690-48d9-9a08-279535a73770] b'total size is 0  speedup is 0.00\n'
yyyy-mm-ddTHH:MM:17.362+0000 ERROR [vcf_sos] [commandutils.py::execute_cmd_locally::235::restore-f3d9dd76-b690-48d9-9a08-279535a73770] b'rsync: [sender] change_dir "/var/log/vmware/vcf/sddc-support/backup-2025-09-08-09-03-12-5816/vcf-backup-sddc-manager-vrack-vsphere-local-2025-09-08-08-34-17/configuration/home/vcf" failed: No such file or directory (2)\n'

Environment

VMware Cloud Foundation 9.0

Cause

The restore-configuration.sh script attempts to recover the feature.properties file from a relative path, rather than the absolute path.

Resolution

Workaround: Update the restore-configuration.sh script and rerun the restore process.
  • Follow the steps in the Restore SDDC Manager from a File-Based Backup procedure.
  • Before you run the command to start the restore process, log in to the SDDC Manager appliance as root and update the restore-configuration.sh script.
sed -i.bak -e 's|\[ ! -e "\$file" \]|[ ! -e "$base_directory$file" ]|' -e 's|\[ ! -d "\$dir" \]|[ ! -d "$base_directory$dir" ]|' /opt/vmware/sddc-support/scripts/restore-configuration.sh
 
  • Start the restore process.
curl https://<sddc_manager_fqdn>/v1/restores/tasks -k -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \ -d '{ "elements" : [ { "resourceType" : "SDDC_MANAGER" } ], "backupFile" : "<backup_file>", "encryption" : { "passphrase" : "<encryption_password>" } }'