Here's a transcript of a failed sftp manual backup:
2022-04-04T12:48:32.797 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::main:BackupManager.py:624] INFO: Starting backup job...
2022-04-04T12:48:32.798 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::main:BackupManager.py:633] INFO: Manual Backup triggerd
2022-04-04T12:48:32.798 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::main:BackupManager.py:639] INFO: DB health check enabled status is True
2022-04-04T12:49:05.826 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::getDbHealthStatus:BackupManager.py:514] INFO: getDbHealthStatus returns status as HEALTHY
2022-04-04T12:49:05.826 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::HealthCheckStatus:BackupManager.py:533] INFO: DB is healthy, proceed with backup
2022-04-04T12:49:05.885 [20220404-164832-19480866] [MainProcess:PID-106964] [ComponentScripts::ComponentScriptsSize:ComponentScripts.py:31] INFO: Calculate size for components
2022-04-04T12:49:06.597 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::CheckFileIntegrity:BackupManager.py:452] INFO: File integrity check is not enabled.
2022-04-04T12:49:06.911 [20220404-164832-19480866] [MainProcess:PID-106964] [SftpStorageIOLib::_addHostToKnownhosts:SftpStorageIOLib.py:219] INFO: Added remote host key to known hosts file
2022-04-04T12:49:06.912 [20220404-164832-19480866] [MainProcess:PID-106964] [SftpStorageIOLib::_readRemoteRoot:SftpStorageIOLib.py:145] INFO: Executing command to get remote root: ssh -q -p 22 -i /root/.ssh/id_rsa -o UserKnownHostsFile=/root/.ssh/br_temp_known_hosts sftpuser@coral.labnet.com echo ~
2022-04-04T12:49:06.965 [20220404-164832-19480866] [MainProcess:PID-106964] [SftpStorageIOLib::_authorizeLocalHost:SftpStorageIOLib.py:168] INFO: Authorizing localhost with command sshpass -f /tmp/tmppz7p9d3b ssh-copy-id -i /root/.ssh/id_rsa.pub -p 22 -o UserKnownHostsFile=/root/.ssh/br_temp_known_hosts sftpuser@coral.labnet.com
2022-04-04T12:49:07.91 [20220404-164832-19480866] [MainProcess:PID-106964] [SftpStorageIOLib::_authorizeLocalHost:SftpStorageIOLib.py:174] ERROR: Failed to authorize local host with command: sshpass -f /tmp/tmppz7p9d3b ssh-copy-id -i /root/.ssh/id_rsa.pub -p 22 -o UserKnownHostsFile=/root/.ssh/br_temp_known_hosts sftpuser@coral.labnet.com. Will proceed with backup through curl
2022-04-04T12:49:07.92 [20220404-164832-19480866] [MainProcess:PID-106964] [SftpStorageIOLib::_readRemoteRoot:SftpStorageIOLib.py:145] INFO: Executing command to get remote root: ssh -q -p 22 -i /root/.ssh/id_rsa -o UserKnownHostsFile=/root/.ssh/br_temp_known_hosts sftpuser@coral.labnet.com echo ~
2022-04-04T12:49:08.612 [20220404-164832-19480866] [MainProcess:PID-106964] [SftpStorageIOLib::mkdir:SftpStorageIOLib.py:345] WARNING: Parent dir sftp://coral.labnet.com/vCenter create failed. RC: 21 Err: curl: (21) mkdir command failed: Permission denied
2022-04-04T12:49:09.368 [20220404-164832-19480866] [MainProcess:PID-106964] [SftpStorageIOLib::mkdir:SftpStorageIOLib.py:345] WARNING: Parent dir sftp://coral.labnet.com/vCenter/sn_vcenter.labnet.com create failed. RC: 21 Err: curl: (21) mkdir command failed: No such file or directory
2022-04-04T12:49:09.744 [20220404-164832-19480866] [MainProcess:PID-106964] [FtpStorageIOLib::_process_curl_output:FtpStorageIOLib.py:123] ERROR: sftp quote cmd failed. Err: curl: (21) mkdir command failed: No such file or directory
, Cmd: ['/usr/bin/curl', '--fail', '-u', 'sftpuser:****', '--connect-timeout', '10', '--ssl-reqd', '-k', '--noproxy', '*', '--silent', '--show-error', '-Q', 'mkdir /vCenter/sn_vcenter.labnet.com/M_7.0.3.00500_20220404-164832_/', 'sftp://coral.labnet.com/vCenter/sn_vcenter.labnet.com/']
2022-04-04T12:49:09.745 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::CreateTargetBackupDir:BackupManager.py:111] ERROR: Failed to create backup directory Plugin error occurred. ErrCode: 3, Args: ()
2022-04-04T12:49:09.745 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::main:BackupManager.py:659] ERROR: BackupManager encountered an exception: Failed to create backup directory on backup server.
2022-04-04T12:49:09.745 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::HandleBackupCleanup:BackupManager.py:466] INFO: Cleaning up the backup job.
2022-04-04T12:49:09.746 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:402] INFO: Cleaning up all running backup child processes.
2022-04-04T12:49:09.759 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:409] INFO: Cleaning up all sizeFiles.
2022-04-04T12:49:09.759 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:417] INFO: Cleaning up ConfigFiles.
2022-04-04T12:49:09.759 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:417] INFO: Cleaning up ComponentScripts.
2022-04-04T12:49:09.759 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:417] INFO: Cleaning up VCDB.
2022-04-04T12:49:09.760 [20220404-164832-19480866] [MainProcess:PID-106964] [VCDB::BackupVCDBCleanup:VCDB.py:2100] INFO: Finishing full database backup
2022-04-04T12:49:09.767 [20220404-164832-19480866] [MainProcess:PID-106964] [VCDB::BackupVCDBCleanup:VCDB.py:2103] INFO: Successfully cleaned up for VCDB backup.
2022-04-04T12:49:09.767 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:417] INFO: Cleaning up Lotus.
2022-04-04T12:49:09.767 [20220404-164832-19480866] [MainProcess:PID-106964] [Lotus::BackupLotusCleanup:Lotus.py:140] INFO: Successfully completed Lotus cleanup.
2022-04-04T12:49:09.767 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:417] INFO: Cleaning up StatsMonitorDB.
2022-04-04T12:49:09.767 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:417] INFO: Cleaning up VTSDB.
2022-04-04T12:49:09.768 [20220404-164832-19480866] [MainProcess:PID-106964] [VTSDB::BackupVTSDBCleanup:VTSDB.py:237] INFO: Successfully cleaned up for VTSDB backup.
2022-04-04T12:49:09.768 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:426] INFO: Cleaning up failed backup files.
2022-04-04T12:49:10.150 [20220404-164832-19480866] [MainProcess:PID-106964] [FtpStorageIOLib::_process_curl_output:FtpStorageIOLib.py:129] ERROR: sftp cmd failed. RC: 78, Err: curl: (78) Could not open directory for reading: No such file or directory
, Cmd: ['/usr/bin/curl', '--fail', '-u', 'sftpuser:****', '--connect-timeout', '10', '--ssl-reqd', '-k', '--noproxy', '*', '--silent', '--show-error', '--list-only', 'sftp://coral.labnet.com/vCenter/sn_vcenter.labnet.com/M_7.0.3.00500_20220404-164832_/']
2022-04-04T12:49:10.150 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::Cleanup:BackupManager.py:430] WARNING: Ignore to clean up failed backup files, due to issue: 'Plugin error occurred. ErrCode: 3, Args: ()'.
2022-04-04T12:49:10.150 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::HandleBackupCleanup:BackupManager.py:474] ERROR: Failed to cleanup the backup job. Error: Failed to clean up the backup job.
2022-04-04T12:49:10.431 [20220404-164832-19480866] [MainProcess:PID-106964] [vpxdevent_lib::dispatch_events:vpxdevent_lib.py:275] INFO: Event com.vmware.applmgmt.backup.job.failed.event successfully posted to http://localhost:8085/sdk
2022-04-04T12:49:10.436 [20220404-164832-19480866] [MainProcess:PID-106964] [BackupManager::main:BackupManager.py:682] INFO: Backup job failed.
This is my running the same two commands that fail above from the vcenter shell, key diff is me seeding the tmp_mypwd with the pwd.
root@vcenter [ ~ ]# sshpass -f /tmp/tmp_mypwd ssh-copy-id -i /root/.ssh/id_rsa.pub -p 22 -o UserKnownHostsFile=/root/.ssh/br_temp_known_hosts sftpuser@coral.labnet.com
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
(if you think this is a mistake, you may want to use -f option)
root@vcenter [ ~ ]# ssh -q -p 22 -i /root/.ssh/id_rsa -o UserKnownHostsFile=/root/.ssh/br_temp_known_hosts sftpuser@coral.labnet.com
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-39-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
0 updates can be applied immediately.
Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Mon Apr 4 21:31:31 2022 from [vcenter ipaddress]
$
Again, I am assuming this is a me issue, I am just not readily seeing what it is.