• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Question Lost external FTP server, backup manager will not start

ianrushin

New Pleskian
Backups to an external FTP server have recently started to fail. The FTP server has serious problems so I want to change settings in Plesk to another one. Trying to run the Backup Manager in the domain admin results, after some time, in the error message:
Error: Transport error: unable to list directory: Curl error: (28) Timeout was reached: Last FTP request: LIST Last FTP response: 200 Type set to A
and the Backup Manager does not start.

In this situation I cannot stop the existing backup schedule or change settings to a different FTP server.

Could someone please point me in the right direction to resolve this?
 
Further information:
I now have the external FTP server functioning correctly and can connect to the backup directory via any FTP client.
Plesk still shows the same error when attempting to start the Backup Manager.
On each attempt a checkn directory is created in the remote backup directory, so connection is made ok.
 
I have applied the fix suggested in:
FTP backup functionality is not working after Plesk upgrade to Obsidian 18.0.33 version: Failed EPSV attempt. Disabling EPSV

I now get error messages with a link to check the FTP settings and the FTP(S) Storage Settings opens.

Trying to save the settings results in an error message with suggested curl commands to check via SSH. Below is the error message followed by the results of entering the curl commands:

1. Message from Plesk when trying to change ftp storage settings

Error: Unable to download the file from the storage: Transport error: unable to read file /check9/test: Curl error: Unable to resume an interrupted download: (28) Timeout was reached: Last FTP request: RETR test: Last FTP response: 213 24: Connection to the FTP server has lost
Check if you have permissions to upload and download files from the storage. You can check it independently with the commands:
echo 123 | curl -T - --ftp-create-dirs -v -P - -u swbackup 'ftp://80.229.31.194/array1/swbackup/rssoc_co_uk//test-dir/test-file.txt'
curl -v -P - -u swbackup 'ftp://80.229.31.194/array1/swbackup/rssoc_co_uk//test-dir/test-file.txt'


2. Results of curl commands

root@server:~# echo 123 | curl -T - --ftp-create-dirs -v -P - -u swbackup 'ftp://80.229.31.194/array1/swbackup/rssoc_co_uk//test-dir/test-file.txt'
Enter host password for user 'swbackup':
* Trying 80.229.31.194...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 80.229.31.194 (80.229.31.194) port 21 (#0)
< 220 192.168.1.20 FTP server ready
> USER swbackup
< 331 Password required for swbackup
> PASS **************
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0< 230 User swbackup logged in
> PWD
< 257 "/" is the current directory
* Entry path is '/'
> CWD array1
* ftp_perform ends with SECONDARY: 0
< 250 CWD command successful
> CWD swbackup
< 250 CWD command successful
> CWD rssoc_co_uk
< 250 CWD command successful
> CWD test-dir
< 550 test-dir: No such file or directory
> MKD test-dir
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0< 257 "/array1/swbackup/rssoc_co_uk/test-dir" - Directory successfully created
> CWD test-dir
< 250 CWD command successful
> EPRT |1|77.68.15.249|58751|
< 200 EPRT command successful
* Connect data stream actively
> TYPE I
< 200 Type set to I
> STOR test-file.txt
< 150 Opening BINARY mode data connection for test-file.txt
* Preparing for accepting server on data port
* Checking for server connect
* Ready to accept data connection from server
* Connection accepted from server
} [4 bytes data]
* Remembering we are in dir "array1/swbackup/rssoc_co_uk//test-dir/"
< 226 Transfer complete
100 4 0 0 0 4 0 1 --:--:-- 0:00:02 --:--:-- 1
* Connection #0 to host 80.229.31.194 left intact


root@server:~# curl -v -P - -u swbackup 'ftp://80.229.31.194/array1/swbackup/rssoc_co_uk//test-dir/test-file.txt'
Enter host password for user 'swbackup':
* Trying 80.229.31.194...
* Connected to 80.229.31.194 (80.229.31.194) port 21 (#0)
< 220 192.168.1.20 FTP server ready
> USER swbackup
< 331 Password required for swbackup
> PASS **************
< 230 User swbackup logged in
> PWD
< 257 "/" is the current directory
* Entry path is '/'
> CWD array1
* ftp_perform ends with SECONDARY: 0
< 250 CWD command successful
> CWD swbackup
< 250 CWD command successful
> CWD rssoc_co_uk
< 250 CWD command successful
> CWD test-dir
< 250 CWD command successful
> EPRT |1|77.68.15.249|44819|
< 200 EPRT command successful
* Connect data stream actively
> TYPE I
< 200 Type set to I
> SIZE test-file.txt
< 213 4
> RETR test-file.txt
< 425 Unable to build data connection: Connection timed out
* RETR response: 425
* Remembering we are in dir "array1/swbackup/rssoc_co_uk//test-dir/"
* Connection #0 to host 80.229.31.194 left intact
curl: (19) RETR response: 425
root@server:~#
 
Back
Top