• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Remote Backup failed since update to 18.0.37

Heppi75

Basic Pleskian
Hi,

yesterday I made the update on two plesk servers to version 18.0.37. Since this update remote backups to an ftp(s) server are not working anymore. The following message is shown on both servers:

Unable to create the remote backup: Transport error: Unable to create the directory 'ftps://myserver/ftp_dir/': Curl error: (21) Quote command returned error: Last FTP request: MKD ftp_dir Last FTP response: 550 Create directory operation failed

Maybe someone has the same problems and can help me with this? With a normal FTP Client (Transmit on my Mac) I can connect without problems to the account on the backup ftp server. Also if I have a look with netstat on the backup server, I can see that the plesk server is connected, but for some reason after a minute or so, the connection is dropped and the message above is shown?

I am not sure what causes this issue, but the backup worked properly on both plesk servers until this update.
 
Update: Today I tried the backup via the console command:

Code:
/usr/local/psa/bin/pleskbackup server -v --ftp-login=ftpuser --ftp-password='password' --ftp-passive-mode

This was working as expected and the backup was created on the remote server. But the automatic backup, which was setup in the GUI, or a backup startet from the GUI is canceled with the error above.
 
Sorry, was a little bit to fast with the entry. The command line falls automatic back to a local backup, not stored remote. So the case is still not solved and not working to the remote server!
 
This does not seem to be a general issue with 18.0.37 as we are not seeing it on any updated machines at all. Maybe this is linked to a specific behavior of the FTP remote storage space. Can you try a different storage space?
 
Hi Peter,

but it is very strange, before this update the backup to this server was working on both plesk servers without problems. After installing the Update on both servers the backup is not working anymore. We didn't change anything on the backup server?

I activated now the FTP logs. Maybe you could have a look at this. As you can see the connection is established, and the login is working? I am currently not sure what drops the connection?

Code:
Mon Aug  2 17:33:00 2021 [pid 517841] CONNECT: Client "::ffff:111.111.111.111"
Mon Aug  2 17:33:00 2021 [pid 517841] FTP response: Client "::ffff:111.111.111.111", "220 (vsFTPd 3.0.3)"
Mon Aug  2 17:33:00 2021 [pid 517841] FTP command: Client "::ffff:111.111.111.111", "AUTH SSL"
Mon Aug  2 17:33:00 2021 [pid 517841] FTP response: Client "::ffff:111.111.111.111", "234 Proceed with negotiation."
Mon Aug  2 17:33:00 2021 [pid 517841] FTP command: Client "::ffff:111.111.111.111", "USER ftp1"
Mon Aug  2 17:33:00 2021 [pid 517841] [ftp1] FTP response: Client "::ffff:111.111.111.111", "331 Please specify the password."
Mon Aug  2 17:33:00 2021 [pid 517841] [ftp1] FTP command: Client "::ffff:111.111.111.111", "PASS <password>"
Mon Aug  2 17:33:00 2021 [pid 517840] [ftp1] OK LOGIN: Client "::ffff:111.111.111.111"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "230 Login successful."
Mon Aug  2 17:33:00 2021 [pid 517839] [ftp1] FTP command: Client "::ffff:111.111.111.111", "SIZE backup_2108021732.tar"
Mon Aug  2 17:33:00 2021 [pid 517839] [ftp1] FTP response: Client "::ffff:111.111.111.111", "550 Could not get file size."
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP command: Client "::ffff:111.111.111.111", "PBSZ 0"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "200 PBSZ set to 0."
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP command: Client "::ffff:111.111.111.111", "PROT P"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "200 PROT now Private."
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP command: Client "::ffff:111.111.111.111", "PWD"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "257 "/" is the current directory"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP command: Client "::ffff:111.111.111.111", "OPTS UTF8 ON"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "200 Always in UTF8 mode."
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP command: Client "::ffff:111.111.111.111", "CWD ftp_dir"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "250 Directory successfully changed."
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP command: Client "::ffff:111.111.111.111", "OPTS UTF8 ON"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "200 Always in UTF8 mode."
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP command: Client "::ffff:111.111.111.111", "EPSV"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "229 Entering Extended Passive Mode (|||30555|)"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP command: Client "::ffff:111.111.111.111", "TYPE A"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "200 Switching to ASCII mode."
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP command: Client "::ffff:111.111.111.111", "LIST"
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "150 Here comes the directory listing."
Mon Aug  2 17:33:00 2021 [pid 517841] [ftp1] DEBUG: Client "::ffff:111.111.111.111", "No SSL session reuse on data channel."
Mon Aug  2 17:33:00 2021 [pid 517842] [ftp1] FTP response: Client "::ffff:111.111.111.111", "522 SSL connection failed: session reuse required"
Mon Aug  2 17:33:01 2021 [pid 517839] [ftp1] FTP command: Client "::ffff:111.111.111.111", "SIZE backup_2108021732.tar"
Mon Aug  2 17:33:01 2021 [pid 517839] [ftp1] FTP response: Client "::ffff:111.111.111.111", "550 Could not get file size."
Mon Aug  2 17:33:01 2021 [pid 517839] [ftp1] FTP command: Client "::ffff:111.111.111.111", "QUIT"
Mon Aug  2 17:33:01 2021 [pid 517839] [ftp1] FTP response: Client "::ffff:111.111.111.111", "221 Goodbye."
Mon Aug  2 17:33:01 2021 [pid 517844] CONNECT: Client "::ffff:111.111.111.111"
Mon Aug  2 17:33:01 2021 [pid 517844] FTP response: Client "::ffff:111.111.111.111", "220 (vsFTPd 3.0.3)"
Mon Aug  2 17:33:01 2021 [pid 517844] FTP command: Client "::ffff:111.111.111.111", "AUTH SSL"
Mon Aug  2 17:33:01 2021 [pid 517844] FTP response: Client "::ffff:111.111.111.111", "234 Proceed with negotiation."
Mon Aug  2 17:33:01 2021 [pid 517844] FTP command: Client "::ffff:111.111.111.111", "USER ftp1"
Mon Aug  2 17:33:01 2021 [pid 517844] [ftp1] FTP response: Client "::ffff:111.111.111.111", "331 Please specify the password."
Mon Aug  2 17:33:02 2021 [pid 517844] [ftp1] FTP command: Client "::ffff:111.111.111.111", "PASS <password>"
Mon Aug  2 17:33:02 2021 [pid 517843] [ftp1] OK LOGIN: Client "::ffff:111.111.111.111"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "230 Login successful."
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP command: Client "::ffff:111.111.111.111", "PBSZ 0"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "200 PBSZ set to 0."
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP command: Client "::ffff:111.111.111.111", "PROT P"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "200 PROT now Private."
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP command: Client "::ffff:111.111.111.111", "PWD"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "257 "/" is the current directory"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP command: Client "::ffff:111.111.111.111", "OPTS UTF8 ON"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "200 Always in UTF8 mode."
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP command: Client "::ffff:111.111.111.111", "CWD ftp_dir"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "250 Directory successfully changed."
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP command: Client "::ffff:111.111.111.111", "EPSV"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "229 Entering Extended Passive Mode (|||30375|)"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP command: Client "::ffff:111.111.111.111", "TYPE A"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "200 Switching to ASCII mode."
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP command: Client "::ffff:111.111.111.111", "LIST"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "150 Here comes the directory listing."
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "226 Directory send OK."
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP command: Client "::ffff:111.111.111.111", "QUIT"
Mon Aug  2 17:33:02 2021 [pid 517845] [ftp1] FTP response: Client "::ffff:111.111.111.111", "221 Goodbye."
 
On your backup system, please check the configuration option
"TLSOptions" in /etc/proftpd.conf. It should be set to "NoSessionReuseRequired" like
Code:
TLSOptions NoSessionReuseRequired
This is not on the computer that you try to backup, but on the server you are connecting to.
 
Hi Peter,

this saved my day. In my case, on a vsftpd server, it is the option:

Code:
require_ssl_reuse=NO

All is working fine now. Thank you very much!
 
Back
Top