Symptoms
-
ProFTPD package is installed from the Atomicorp repository:
# rpm -qa | grep proftpd
psa-proftpd-xinetd-1.3.6-11.el7.art.x86_64
psa-proftpd-1.3.6-11.el7.art.x86_64# rpm -qi psa-proftpd-xinetd-1.3.6-11.el7.art.x86_64 | grep Vendor
Vendor : Atomicorp -
Connection to a server via FTP fails with on of the following error messages:
421 Service not available, remote server has closed connection
OR
Status: Connecting to 203.0.113.2:21...
Status: Connection established, waiting for welcome message...
Error: Could not connect to server -
The following error appears in the system logfile (
/var/log/messages
for CentOS/RHEL,/var/log/syslog
for Debian/Ubuntu):proftpd[11783]: Fatal: ScoreboardFile: : unable to use '/var/run/proftpd/scoreboard': No such file or directory on line 45 of '/etc/proftpd.conf'
xinetd[2312]: EXIT: ftp status=1 pid=11783 duration=0(sec)OR
error: cannot read configuration path '/etc/proftpd.d': Not a directory
fatal: Include: error including '/etc/proftpd.d/*.conf': Invalid argument on line 95 of '/etc/proftpd.conf' -
The directory
/var/run/proftpd/
is missing:# ls -l /var/run/proftpd/
ls: cannot access /var/run/proftpd/: No such file or directory -
The following error appears when setting up Remote FTP Storage:
Error: Unable to access the storage: Transport error: unable to list directory: Curl error: (56) Failure when receiving data from the peer: Last FTP request: Last FTP response: Make sure you have entered the correct storage settings. You can check them independently with the command: curl -v --ftp-pasv --ssl -k -u jdoe 'ftp://203.0.113.2/./'
Cause
Atomic ProFTPD incorrectly replaces ProFTPD package provided by Plesk.
Resolution
Apply one on the following solutions:
Modify the configuration to use the proper file
-
Connect to the server via SSH
-
Change the scoreboard file location to the correct one:
# sed -i 's/ScoreboardFile.*/ScoreboardFile /var/run/proftpd.scoreboard/' /etc/proftpd.conf
Add systemd-tmpfiles configuration to create /var/run/proftpd directory
-
Connect to the server via SSH
-
Create the required directory manually:
# mkdir /var/run/proftpd/
-
Create the
/usr/lib/tmpfiles.d/proftpd.conf
file to ensure the directory is created on reboot:# echo 'd /var/run/proftpd 0775 root root -' >> /usr/lib/tmpfiles.d/proftpd.conf