FTP Error Encountered: 421.

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5 or 6

Issue

  • Occasionally the following error is observed in var/log/messages on the FTP server:
FTP Error Encountered: 421.

Resolution

  • Check the limit of the vsftpd service:
# grep processes /proc/$(pidof vsftpd)/limits
Max processes             1024                 967610               processes
  • Manually increase the maximum number of processes limit for the vsftpd process.
  • Edit /etc/rc.d/init.d/vsftpd and add the following 2 lines, around line 31 :
start() {
        # ulimit increase      
        ulimit -u 10000       
  • Component
  • ftp

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments