When attempting to perform a vCenter Server backup to an FTP server,
/var/log/vmware/applmgmt/backup.log
reveals detailed error messages including:
curl: (56) Recv failure: Connection reset by peer
/usr/bin/tar: -: Wrote only 8192 of 10240 bytes
Error is not recoverable: exiting now
The "Connection reset by peer" error occurs when the network connection between the vCenter Server and the FTP server is unexpectedly terminated during data transfer. This can happen for several reasons:
Follow these steps to troubleshoot and resolve vCenter Server FTP backup failures:
Verify basic network connectivity between vCenter Server and the FTP server:
From the vCenter Server Appliance shell, use ping to test basic connectivity to the FTP server
Check if the FTP port (typically port 21) is accessible using netcat where you substitute the actual target FTP server hostname for <hostname>
::nc -zv ftp_server_<hostname> 21
Check FTP server connection using manual FTP commands:
From the vCenter Server Appliance shell, connect to the FTP server manually where you substitute the actual target FTP server hostname for <hostname>
:ftp ftp_server_<hostname
>
Attempt to upload a small test file to verify write permissions
Attempt to upload a larger test file (100MB+) to verify stability during longer transfers
Review and adjust FTP timeout settings:
In the vCenter Server Appliance Management Interface (VAMI), navigate to Backup > Configure
If available, increase the connection timeout settings for the backup job
On the FTP server, increase idle timeout settings if possible
Examine network infrastructure:
Check if any network devices (firewalls, load balancers) have idle timeout settings that might disconnect long-running FTP sessions
Verify that no bandwidth throttling is active that could cause slow transfers
Ensure that stateful inspection on firewalls isn't terminating the FTP control or data connections
Consider alternative backup protocols:
If available, switch to a more reliable protocol like FTPS, SCP, or HTTP/HTTPS
Configure the new protocol in the vCenter Server Appliance Management Interface (VAMI)
Test a backup using the new protocol
Check storage capacity and permissions:
Verify sufficient disk space exists on the FTP server
Ensure the FTP user has proper write permissions to the destination directory
Check if any quotas are enabled that might restrict upload size