Articles in this section

Unable to connect to a server via FTP with ProFTPd installed from Atomicorp repository: Fatal: ScoreboardFile: : unable to use '/var/run/proftpd/scoreboard': No such file or directory

Plesk for Linux kb: technical ABT: Group B

Applicable to:

  • Plesk for Linux

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:

    CONFIG_TEXT: 421 Service not available, remote server has closed connection

    OR

    CONFIG_TEXT: 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):

    CONFIG_TEXT: 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

    CONFIG_TEXT: 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:

    PLESK_ERROR: 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
  1. Connect to the server via SSH

  2. 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
  1. Connect to the server via SSH

  2. Create the required directory manually:

    # mkdir /var/run/proftpd/

  3. 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

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.