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:~#