Articles in this section

FTP connection to a Plesk server is dropped randomly on FileZilla when the Transfer mode is set to Default: ECONNREFUSED - Connection refused by server

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • An FTP connection to the Plesk server with the IP address 203.0.113.2 is dropped randomly when FileZilla client is used. The following error is shown in FileZilla:

    PLESK_INFO: Error: The data connection could not be established: ECONNREFUSED - Connection refused by server.

  • On failed attempts to connect, the following error can be found in the /var/log/auth.log log file:

    CONFIG_TEXT: plesk proftpd[10414]: 0.0.0.0 (203.0.113.2[203.0.113.2]) - mod_tls/2.7: unexpected OpenSSL error, disconnecting

Cause

A combination of unstable Internet connection, blocked FTP active mode, and FileZilla's settings:

  • Port 20 is reported to be filtered on the server:

    # nmap 203.0.113.3 -p 20 
    20/tcp filtered ftp-data

    The incoming traffic to port 20/tcp(ftp-data) has to be allowed in order to establish the FTP data transfer while connecting via FTP in Active Mode.

  • By default, in FileZilla client > Site Manager > Transfer Settings > Transfer mode is set to Default. In this mode, FileZilla first establishes a connection with the FTP server using Passive mode. After a short Internet connectivity issue, in an attempt to reconnect to FTP it will try using Active mode instead, which is not allowed on the server's side.

Resolution

Use one of the possible solutions:

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.