SDDC Manager Restore Fails with "file does not exist." Error
search cancel

SDDC Manager Restore Fails with "file does not exist." Error

book

Article ID: 435242

calendar_today

Updated On:

Products

VMware SDDC Manager VMware Cloud Foundation

Issue/Introduction

In step 19 of the documentation: Restore SDDC Manager from a File-Based BackupRestore SDDC Manager from a File-Based Backup, the command to start the SDDC Manager restore process fails with the following message:

[Command]
# 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" : "backupfile.tar.gz", 
"encryption" : { 
"passphrase" : "<encryption_password>" 
}
}'

[Error message]
{"errorCode":"RESTORE_FAILED","arguments":["An exception 400 BAD REQUEST: \"{\"arguments\":[],\"causes\":[{\"message\":\"Invalid backup tar file\",\"type\":null}],\"context\":null,\"errorCode\":\"BACKUP_FILE_INVALID\",\"message\":\"Backup file backupfile.tar.gz does not exist.\",\"referenceToken\":\"\",\"remediationMessage\":null}<EOL>\" occurred during restore, Please retry."],"message":"Restore failed : An exception 400 BAD REQUEST: \"{\"arguments\":[],\"causes\":[{\"message\":\"Invalid backup tar file\",\"type\":null}],\"context\":null,\"errorCode\":\"BACKUP_FILE_INVALID\",\"message\":\"Backup file backupfile.tar.gz does not exist.\",\"referenceToken\":\"\",\"remediationMessage\":null}<EOL>\" occurred during restore, Please retry.","referenceToken":"XXX"}

Environment

VMware Cloud Foundation 9.0

Cause

If the full path to the backup file is not entered in the "backupFile" field, the restore will fail due to file inaccessibility.

Resolution

Please enter the full path to the backup file in the "backupFile" field.

Additional Information

Japanese KB: SDDC Manager のリストアが "file does not exist." エラーで失敗する