[MainProcess:PID-1547####]
[FtpStorageIOLib::_process_curl_output:FtpStorageIOLib.py:149] ERROR:
sftp cmd failed. RC: 2, Err: curl: (2) Failure establishing ssh session:
-13, Failed getting banner
Since the curl commands used to remove the backup files were failing with the "Failed getting banner" error, we need to update FtpStorageIOLib.py to add retry handling for curl command calls on the vCenter.
To resolve this issue, follow the steps below:
cp /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/plugins/FtpStorageIOLib.py /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/plugins/FtpStorageIOLib.py.backupvi editor:vi /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/plugins/FtpStorageIOLib.py_run_cmd_retries function (around line 26). Find these lines:if cmd_res.returncode == 28:raise PluginError(ErrCodes.timeout)return cmd_resif cmd_res.returncode == 28:raise PluginError(ErrCodes.timeout)if cmd_res.returncode == 2:raise PluginError(ErrCodes.connection_err)return cmd_resEsc wq! to save and exit vi editor.service-control --restart applmgmt