Backup to external FTP fails: Transport error: unable to list directory: Curl error: Transferred a partial file

Created:

2016-11-16 12:52:10 UTC

Modified:

2017-05-05 13:07:48 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Backup to external FTP fails: Transport error: unable to list directory: Curl error: Transferred a partial file

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux

Symptoms

Plesk backup to external FTP repository fails:

Transport error: unable to list directory: Curl error: Transferred a partial file

ProFTPD 1.3.3a or higher is used on external FTP.

Manual upload of backup file on same FTP repository using FileZilla or other FTP client is working fine, but upload using curl fails:

# curl -v -k --ftp-ssl ftp://xxx.xxx.xxx.xxx//backups/ --user <ftpuser>:<ftp_pass> --upload-file backup.zip
...
< 425 Unable to build data connection: Operation not permitted
* server did not report OK, got 425

Cause

Starting from ProFTPD 1.3.3 mod_tls only accepts SSL/TLS data connections that reuse the SSL session of the control connection. But curl does not reuse SSL sessions.

Resolution

  1. Disable requirement of SSL session reuse in the proftpd.conf configuration file of remote FTP server:

    <IfModule mod_tls.c>
    ...
    TLSOptions NoSessionReuseRequired
    ...
    </IfModule>
  2. Restart ProFTPD service on remote FTP server.

Have more questions? Submit a request
Please sign in to leave a comment.