• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Plesk Backup Manager - Problem with ftps and curl

udoersam

New Pleskian
Hello,

on my machine with Cents 6.8 and Plesk 17 I have a problem to use FTPs within the Backup Manager.
If I enable the option to use FTPS I will get the following error in Plesk:
Unable to access to the storage: Transport error: unable to list directory: Curl error: (7) Couldn't connect to server: Last FTP request: PASV Last FTP response: 227 Entering Passive Mode (185,9,31,175,217,4)
Make sure you have entered the correct storage settings. You can check them independently with the command:
curl -v --ftp-pasv --ssl -k -u user 'server'

If I try this code in console I will get the following error:
curl: option --ssl: is ambiguous
curl: try 'curl --help' or 'curl --manual' for more information

And if I use the code like this in the console:
curl -v --ftp-pasv --sslv3 -k -u user 'server'
Everything is fine.

So my question is: How to change the option of the curl call?

Hope someone can help me.

Best regards.

udoersam
 
The problem in outdated curl version on CentOS 6:

# rpm -qi curl
Name : curl Relocations: (not relocatable)
Version : 7.19.7 Vendor: CentOS
Release : 53.el6_9 Build Date: Mon Apr 3 21:14:07 2017

# curl -v --ftp-pasv --ssl -k -u user 'server'
curl: option --ssl: is ambiguous
curl: try 'curl --help' or 'curl --manual' for more information

I have updated it with

# rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm
# yum --enablerepo=city-fan.org update curl

And now I see:

# rpm -qi curl
Name : curl Relocations: (not relocatable)
Version : 7.56.0 Vendor: city-fan.org repo Index of /ftp/contrib

# curl -v --ftp-pasv --ssl -k -u user 'server'
Enter host password for user 'user':
 
Hi,

thanks for your answer. Curl is updated right now.

No I have the problem that
# curl -v --ftp-pasv --ssl -k -u user 'server'
will cause the following error:

* Failed to connect to xxxxxx port 21: No route to host
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, Client hello (1):
curl: (7) Failed to connect to xxxxxxx port 21: No route to host

With option -sslv3 .
# curl -v --ftp-pasv --sslv3 -k -u user 'server'
everything is working fine

Is there any posibility to set --ssvl3 as default if --ssl is the option?

Thanks in advance.

Best regards.

udoersam
 
Try to add in panel.ini lines

[pmm]
ftpForbidReuseConnection = 1

and check if it helps.
 
Hi,

thanks for your answer.
The problem is still the same.

Curl error: (7) Couldn't connect to server: Last FTP request: PASV Last FTP response: 227 Entering Passive Mode(ip)

And in the terminal I have still this error:
* Failed to connect to xxxxxx port 21: No route to host
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, Client hello (1):
curl: (7) Failed to connect to xxxxxxx port 21: No route to host

Any other ideas what to do?

Thanks in advance.

Best regards

udoersam
 
Hi,

after activating the passive ftp ports to forward to the ftp-server the backup is working fine right now with ssl.

Thanks for your help.

Best regards

udoersam
 
Back
Top