Applicable to:
- Plesk for Linux
Symptoms
-
In an attempt to create a Plesk scheduled backup to a remote FTP server the process fails with the error:
PLESK_ERROR: pmm-ras failed (Error code = 1):
STDOUT: Curl error: Unable to resume an interrupted download: (28) Timeout was reached: Last FTP request: PASS *****: Last FTP response: 421 I can't accept more than 3 connections as the same user: Connection to the FTP server has lost - The similar or the following error can be found in
usr/local/psa/PMM/logs/backup-XX/backup.log
file:
CONFIG_TEXT: Curl error: (21) Quote command returned error: Last FTP request: QUIT Last FTP response: 221 Goodbye [common/plesk-utils/PMM/repository-transport/transport.cpp:1010] virtual void plesk::tRepositoryFtp::Delete(const string&) INFO: pmm-ras finished. Exit code: 126
-
The following errors can be found in
/var/log/plesk/PMM/backup-XX/pmmcli.log
and/var/log/plesk/PMM/pmmcli.log
files:CONFIG_TEXT: [type 'exceptions.TypeError'] cannot concatenate 'str' and 'list' objects
TypeError: cannot concatenate 'str' and 'list' objects
[error][module]pmmcli[/module][operation]<type 'exceptions.TypeError'>[/operation][message]cannot concatenate 'str' and 'list' objects at File "/usr/local/psa/admin/sbin/pmmcli", line 6, in <module>
Cause
This is a Plesk bug with the ID #PPPM-8749, which will be fixed in the next Plesk update releases.
Resolution
Until the bug will be fixed, apply the following workaround:
- Log into Plesk.
- Go to Extensions > My Extensions > Panel.ini Editor > Open > Editor.
Note: in case the Panel.ini Editor extension is missing, install it using this article.
- Add the line below under the
[pmm]
section:
CONFIG_TEXT: ftpForbidReuseConnection = 1
- Scroll down and press the Save button.
-
Log into the server via SSH.
- Execute the command below to open
/usr/local/psa/admin/conf/panel.ini
in the vi text editor:
# plesk conf panel.ini
-
Add the line below under the
[pmm]
section:CONFIG_TEXT: ftpForbidReuseConnection = 1
- Save the changes.
Comments
2 comments
Add the line below under the
[pmm]
section:ftpForbidReuseConnection = 1
Add the following line in the
<Global>
section of the/etc/proftpd.conf
file:AllowStoreRestart on
But the error occurs periodically:
Unable to create remote backup. Error: Unable to export backup: Transport error: unable to list directory: Curl error: (28) Timeout was reached: Last FTP request: PASS ***** Last FTP response: 331 Password required for ftp_login
What and where is wrong in the settings?
After Timeout 30s
INFO: pmm-ras finished. Exit code: 126
INFO: pmm-ras finished. Exit code: 0
I made this edit and still did not connect to ftp server. My local server is Ubuntu20.04 and VSFTP is enabled and working. I can login and upload files but Plesk continues to refuse to connect.
curl -v --ftp-pasv --ssl -k -u tbones 'ftp://xxx.xxx.xxx.xxx/vhost/backup/'
Enter host password for user 'tbones':
* Trying xxx.xxx.xxx.xxx:21...
* Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 21 (#0)
< 220 (vsFTPd 3.0.3)
> AUTH SSL
< 234 Proceed with negotiation.
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Request CERT (13):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS handshake, Certificate (11):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* Server certificate:
* subject: C=US; ST=Illinois; L=Chicago; O=440Music Entetinament Co; OU=Studio; CN=home.440music.net; emailAddress=admin@440music.com
* start date: Nov 16 06:21:57 2021 GMT
* expire date: Nov 14 06:21:57 2031 GMT
* issuer: C=US; ST=Illinois; L=Chicago; O=440Music Entetinament Co; OU=Studio; CN=home.440music.net; emailAddress=admin@440music.com
* SSL certificate verify result: self signed certificate (18), continuing anyway.
> USER tbones
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< 331 Please specify the password.
> PASS xxxxxxxxx
* TLSv1.3 (OUT), TLS alert, protocol version (582):
* OpenSSL SSL_read: error:1408F10B:SSL routines:ssl3_get_record:wrong version number, errno 0
* Closing connection 0
curl: (56) OpenSSL SSL_read: error:1408F10B:SSL routines:ssl3_get_record:wrong version number, errno 0
Please sign in to leave a comment.