• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved FTP error retreiving directory list

Cordal

Basic Pleskian
In a system with Debian 8, after updating Plesk Onix to Plex Obsidian, we observe that when an ftp connection is made to any subscription, it is done without problems, but when it is retrieving the directory listing it takes too much time and throws the following mistakes:

error: Connection timed out after 20 seconds of inactivity
error: Error retrieving directory listing

We do not know what may be due, nothing has been touched in the configuration simply updated to Obsidian and from that moment the aforementioned error occurs.

Any suggestions?
 
Thanks for your answer.

The connection to the ftp server is done without problems, the problem comes when you are trying to retrieve the directory listing, which is sometimes done without problems, but most of the time it gives the following errors:

error: Connection timed out after 20 seconds of inactivity
error: Error retrieving directory listing
 
Yes, these are exactly the symptoms of passive mode + firewall problems. The FTP protocol is using a separate TCP connection for data transfer (including directory listing).
If you did not configure your passive ports correctly and you did not activate the FTP connection tracking module in your firewall, then you will have problems.

Did you follow the steps mentioned in the 2 links I posted?
 
It's a firewall problem

Try connecting without SSL and see if the directory listing (and or up/downloading) works then.
Also make sure that you are using a passive FTP connection.

If it works, then you need to check/configure the passive ports for FTP on your ftp server as well as your firewall.

a) check/adjust passive ftp port range in the file /etc/proftpd.d/55-passive-ports.conf
b) open all these ports on your firewall for incoming TCP connections


please also make sure, that the nf_conntrack_ftp module is loaded and - depending on the OS you're using - the net.netfilter.nf_conntrack_helper sysctl value is enabled.
 
Still same thing after follow this method.

Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PORT 192,168,1,8,235,56
Response: 200 PORT command successful
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PORT 192,168,1,8,228,17
Response: 200 PORT command successful
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,196,41).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,249,35).
Command: MLSD
Error: Directory listing aborted by user
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,192,32).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,240,46).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server: ECONNABORTED - Connection aborted
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,253,125).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,205,106).
Command: MLSD
Error: Directory listing aborted by user
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,237,146).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,248,166).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing of "/httpdocs/tfm-download"...
Command: CWD /httpdocs/tfm-download
Response: 550 /httpdocs/tfm-download: No such file or directory
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,227,103).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing of "/httpdocs/tfm-download"...
Command: CWD /httpdocs/tfm-download
Response: 550 /httpdocs/tfm-download: No such file or directory
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,228,186).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Error: GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated.
Status: Server did not properly shut down TLS connection
Error: Could not read from socket: ECONNABORTED - Connection aborted
Error: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,244,39).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of tfmtool.com
Status: Connecting to 35.209.80.161:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (35,209,80,161,194,156).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
 
Hello All. I know it is already resolved, but the best way to get the issue fixed is to allow ports 21 and 49152-65535, and it should work. I used FileZilla.

Thank you all for your comments!
 
Back
Top