Article ID: 7059, created on Dec 25, 2009, last review on Aug 12, 2014

  • Applies to:
  • Plesk 9.2 for Linux/Unix
  • Plesk 9.0 for Linux/Unix

Symptoms

I am trying to change Personal FTP Repository Settings through Domain -> Backup Manager -> Personal FTP repository. However, every time I try, the Parallels Plesk Panel (PP) server just hangs.

What is the cause of this problem and how do I fix it?

Cause

The remote FTP server runs in passive mode, and PP's utility ftp_filemng uses active mode only when working with a remote server.

The following error is shown in the PP log file:

/var/log/sw-cp-server/error_log
--->8---
ftp_filemng: error: cURL execution failed: couldn't connect to host
---8<---


The same error is generated by curl when trying to connect to a server working in passive mode:

~# curl ftp://<FTP.HOSTNAME> --user <FTP USER>:<FTP PASSORD>
curl: (7) couldn't connect to host
~#

NOTE: curl uses passive mode by default.
The problem may be fixed if you disable the use of the EPSV command when doing passive FTP transfers:

~# curl --disable-epsv ftp://<FTP.HOSTNAME> --user <FTP USER>:<FTP PASSORD> 
~#


The utility ftp_filemng of Parallels Plesk Panel 9.x cannot send such an option.

Resolution

The utility ftp_filemng will be fixed in a future update of Parallels Plesk Panel that will be released after version 9.5.
To resolve the problem for Parallels Panel 9.x, it is recommended that you reconfigure the FTP server in active mode.

Hotfixes for Parallels Plesk Panel 9.2.3, CentOS5, 32-bit, and Parallels Plesk Panel 9.5.4 for SuSe 11, 64-bit are attached. To install the hotfix, download the archive and unpack it. Replace the existing file /usr/local/psa/admin/sbin/ftp_filemng with the fixed one.
Please remember to back up the old file and correct the permissions. You may use the following commands:

For Parallels Plesk Panel 9.2.3:

~# wget http://kb.sp.parallels.com/Attachments/11766/Attachments/ftp_filemng.zip
~# unzip
ftp_filemng.zip
~# mv /usr/local/psa/admin/sbin/ftp_filemng /usr/local/psa/admin/sbin/ftp_filemng.bak
~# mv ftp_filemng /usr/local/psa/admin/sbin/ftp_filemng
~# chown root:psaadm /usr/local/psa/admin/sbin/ftp_filemng
~# chmod 440 /usr/local/psa/admin/sbin/ftp_filemng


For Parallels Plesk Panel 9.5.4:

~# wget http://kb.sp.parallels.com/Attachments/11766/Attachments/ftp_filemng.1011.zip
~# unzip ftp_filemng.1011.zip
~# mv /usr/local/psa/admin/sbin/ftp_filemng /usr/local/psa/admin/sbin/ftp_filemng.bak
~# mv ftp_filemng.1011 /usr/local/psa/admin/sbin/

Create file ftp_filemng:

/usr/local/psa/admin/sbin/ftp_filemng
--->8---
#!/bin/sh

/usr/local/psa/admin/sbin/ftp_filemng.1011 $* --ftp-passive-mode off
---8<---

~# chown root:psaadm /usr/local/psa/admin/sbin/ftp_filemng
~# chmod 440 /usr/local/psa/admin/sbin/ftp_filemng

Attachments

4f57df935e9acf8d18830757d2346419 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 6ef0db7f1685482449634a455d77d3f4 11a46d8a188d618564f4f0cead9a50f3 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF