Can not log in via FTP

Created:

2016-11-16 12:51:12 UTC

Modified:

2017-08-11 15:53:06 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Can not log in via FTP

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Can not establish an FTP connection.

1. When checking the status of xinetd service is active and working but the following error lines are shown:

# systemctl status xinetd

...
xinetd[474]: EXIT: ftp status=1 pid=1372 duration=0(sec)
xinetd[474]: START: ftp pid=3289 from=::ffff:192.0.2.2
proftpd[3289]: fatal: ScoreboardFile: : unable to use '/var/run/proftpd/scoreboard': No such file or directory on line 28 of '/etc/proftpd.conf'
xinetd[474]: EXIT: ftp status=1 pid=3289 duration=0(sec)
xinetd[474]: START: ftp pid=3292 from=::ffff:192.0.2.2
proftpd[3292]: fatal: ScoreboardFile: : unable to use '/var/run/proftpd/scoreboard': No such file or directory on line 28 of '/etc/proftpd.conf'
xinetd[474]: EXIT: ftp status=1 pid=3292 duration=0(sec)
xinetd[474]: START: ftp pid=3293 from=::ffff:203.0.113.2
proftpd[3293]: fatal: ScoreboardFile: : unable to use '/var/run/proftpd/scoreboard': No such file or directory on line 28 of '/etc/proftpd.conf'
xinetd[474]: EXIT: ftp status=1 pid=3293 duration=0(sec)

2. While checking /etc/proftpd.conf , it can be seen that ScoreboardFile is pointing to /var/run/proftpd/scoreboard path:

# grep scoreb /etc/proftpd.conf
ScoreboardFile /var/run/proftpd/scoreboard

3. /var/run is mounted as tmpfs:

# ls -las /var/run
0 lrwxrwxrwx. 1 root root 6 Nov 21 13:00 /var/run -> ../run

# mount |grep run tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)

Cause

Some custom packages for proftpd contain a custom proftpd.conf file that points to a path mounted as temporal fs at the time it is installed, so it gets deleted in each reboot but it does not regenerate the full path, only the file.

This means that if /var/run is mounted on a tmpfs and the custom package generates a subdirectory on install like /var/run/proftpd/examplefile , whenever the server is rebooted, the directory /run becomes empty but proftpd will still look for the file into proftpd subdirectory that got deleted and not regenerated.

Resolution

Change path for scoreboard at /etc/proftpd.conf and point to /var/run/scoreboard instead of /var/run/proftpd/scoreboard

This way the file will be allways put on an existing directory.

For more details on how scoreboard file works please refer to the following documentation:

< http://www.proftpd.org/docs/howto/Scoreboard.html >

Have more questions? Submit a request
Please sign in to leave a comment.