Unable to create backup on FTP or sheduled backup rotation does not work: Transport error: unable to list directory

Created:

2016-11-16 12:44:47 UTC

Modified:

2017-06-05 05:31:04 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to create backup on FTP or sheduled backup rotation does not work: Transport error: unable to list directory

Applicable to:

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

Symptoms

vsftpd FTP-server is used as remote FTP server.

Unable to create a backup to personal FTP repository over SSL.

Error: FTP connection failed, please check your FTP settings.
Repository error: Transport error: unable to list directory: Curl error: Login denied

OR

Repository error: Transport error: unable to list directory: Curl error: FTP: couldn't retrieve (RETR failed) the specified file

However, it is possible to connect with Filezilla or other FTP client over SSL.

OR

Scheduled backup rotation does not work: previous backups are not removed, while new backups are successfully created and uploaded to the FTP repository.

The following error can be found in the log file /usr/local/psa/PMM/logs/backup-YYYY-MM-DD-HH-MM-NN-NNN/backup.log :

[2017-04-05 06:41:16.354|21677] INFO: TransportError[9a62d718-3a5d-4578-89e4-b2d6b441e241]:
Transport error: unable to list directory:
Curl error: Transferred a partial file.
Server response code: 522 [./transport.cpp:827] virtual void plesk::tRepositoryFtp::ListDir(const string&, std::vector<std::basic_string<char> >&)

When uploading a test file using curl:

# touch /usr/local/psa/PMM/tmp/testfile
# curl -v -k --ftp-ssl ftp://192.0.2.2 --user ftpuser:ftp_user_password_here --upload-file /usr/local/psa/PMM/tmp/testfile

where 192.0.2.2 is IP address of the FTP server, ftpuser is a ftp user and ftp_user_password_here is the FTP user password, the following error appears:

522 SSL connection failed; session reuse required: see require_ssl_reuse option in vsftpd.conf man page
* server did not report OK, got 522

Cause

This is Plesk bug with ID #PPPM-5226 that is planned to be fixed in future Plesk updates.

Resolution

As a workaround, add the require_ssl_reuse=NO to the /etc/vsftpd/vsftpd.conf file and restart vsftpd service:

# service vsftpd restart

Information regarding vsftpd configuration can be found here .

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