When attempting a file-based backup of the vCenter Server Appliance (VCSA) via the VAMI using the SFTP protocol, the backup fails during the validation or retention cleanup phase.
You observe the following symptoms:
backup_####-#### can be seen as well./var/log/vmware/applmgmt/applmgmt.log, error messages can be found similar to:ERROR:plugins.FtpStorageIOLib:sftp cmd failed. RC: 79, Err: curl: (79) Could not open directory for reading: Bad message from SFTP serverbackup_<date>-<time> it is called backup_<date>-<time>backup_<date>-<time># curl -v -u <username>:<password> --connect-timeout 120 --ssl-reqd -k --noproxy '*' 'sftp://<sftp-server-address>/<path-to-vcenter-backups>/'This issue occurs because the third-party SFTP server does not properly populate the longname field during directory listing requests. This causes the VCSA appliance management service to misinterpret the folder names (often resulting in duplicated name strings) and fail to read or delete the directories.
To resolve this issue, perform either of the following:
To verify if the SFTP server is at fault, run the following command, either from the VCSA shell or from another Linux client system, to manually browse the backup location:
# curl -v -u <username>:<password> --connect-timeout 120 --ssl-reqd -k --noproxy '*' 'sftp://>sftp-server-address</<path-to-vcenter-backups>/'Next, query the server for file names only:
# curl -l -v -u <username>:<password> --connect-timeout 120 -k --noproxy '*' 'sftp://>sftp-server-address</<path-to-vcenter-backups>/'If the file names are different in the outputs of the 2 commands, the issue resides with the SFTP server implementation.
Should the issue occur despite both commands providing the exact same file names, contact support.