Failed to retrieve directory listing - How do you get over it?

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
naary
500 Command not understood
Posts: 5
Joined: 2023-11-06 22:27
First name: boaz
Last name: shalom

Failed to retrieve directory listing - How do you get over it?

#1 Post by naary » 2023-11-07 08:10

The software tells me that I have connected to the site, but there is a failure in receiving folders.
[By the way, I have another computer on the same network, which manages to connect with an unsecured connection]
I tried disabling antivirus, installing another, and nothing helped.
What could cause this failure?

Below is the report of the Failzilla login attempt:

Status: Disconnected from server
Status: Resolving address of gator****.hostgator.com
Status: Connecting to 50.87.145.***:21...
Status: Connection established, waiting for welcome message...
Status: Plain FTP is insecure. Please switch to FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Error: Disconnected from server: ECONNABORTED - Connection aborted
Error: Failed to retrieve directory listing

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Failed to retrieve directory listing - How do you get over it?

#2 Post by botg » 2023-11-07 08:25

Failure to receive a reply to the PASV command is virtually always caused by a broken firewall or NAT router intentionally sabotaging FTP traffic.

You can use https://ftptest.net/ to figure out whether the issue is on your end (the test succeeds) or whether it's a server-side issue (the test fails).

naary
500 Command not understood
Posts: 5
Joined: 2023-11-06 22:27
First name: boaz
Last name: shalom

Re: Failed to retrieve directory listing - How do you get over it?

#3 Post by naary » 2023-11-07 09:15

thank you for your quick response!
I have now performed a test in two modes, below are the results:
----------------------------------
TEST 2

Status: Resolving address of gator3***.hostgator.com

Status: Connecting to 50.87.145.***

Warning: The entered address does not resolve to an IPv6 address.

Status: Connected, waiting for welcome message...

Reply: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------

Reply: 220-You are user number 1 of 150 allowed.

Reply: 220-Local time is now 04:02. Server port: 21.

Reply: 220-IPv6 connections are also welcome on this server.

Reply: 220 You will be disconnected after 15 minutes of inactivity.

Command: CLNT https://ftptest.net on behalf of 147.234.64.55

Reply: 530 You aren't logged in

Command: AUTH TLS

Reply: 234 AUTH TLS OK.

Status: Performing TLS handshake...

Status: TLS handshake successful, verifying certificate...

Status: Received 3 certificates from server.

Status: cert[0]: subject='CN=*.hostgator.com' issuer='C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Domain Validation Secure Server CA'

Status: cert[1]: subject='C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Domain Validation Secure Server CA' issuer='C=US,ST=New Jersey,L=Jersey City,O=The USERTRUST Network,CN=USERTrust RSA Certification Authority'

Status: cert[2]: subject='C=US,ST=New Jersey,L=Jersey City,O=The USERTRUST Network,CN=USERTrust RSA Certification Authority' issuer='C=GB,ST=Greater Manchester,L=Salford,O=Comodo CA Limited,CN=AAA Certificate Services'

Command: USER ***@***

Reply: 331 User ***@*** OK. Password required

Command: PASS ****************

Reply: 230 OK. Current restricted directory is /

Command: SYST

Reply: 215 UNIX Type: L8

Command: FEAT

Reply: 211-Extensions supported:

Reply: UTF8

Reply: EPRT

Reply: IDLE

Reply: MDTM

Reply: SIZE

Reply: MFMT

Reply: REST STREAM

Reply: MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;

Reply: MLSD

Reply: PRET

Reply: AUTH TLS

Reply: PBSZ

Reply: PROT

Reply: TVFS

Reply: ESTA

Reply: PASV

Reply: EPSV

Reply: ESTP

Reply: 211 End.

Command: PBSZ 0

Reply: 200 PBSZ=0

Command: PROT P

Reply: 200 Data protection level set to "private"

Command: PWD

Reply: 257 "/" is your current location

Status: Current path is /

Command: TYPE I

Reply: 200 TYPE is now 8-bit binary

Command: PASV

Reply: 227 Entering Passive Mode (50,87,145,176,136,173)

Command: MLSD

Status: Data connection established, performing TLS handshake...

Status: TLS handshake successful, verifying certificate...

Status: Received 3 certificates from server.

Status: cert[0]: subject='CN=*.hostgator.com' issuer='C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Domain Validation Secure Server CA'

Status: cert[1]: subject='C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Domain Validation Secure Server CA' issuer='C=US,ST=New Jersey,L=Jersey City,O=The USERTRUST Network,CN=USERTrust RSA Certification Authority'

Status: cert[2]: subject='C=US,ST=New Jersey,L=Jersey City,O=The USERTRUST Network,CN=USERTrust RSA Certification Authority' issuer='C=GB,ST=Greater Manchester,L=Salford,O=Comodo CA Limited,CN=AAA Certificate Services'

Status: TLS session of transfer connection has been resumed.

Reply: 150 Accepted data connection

Listing: type=dir;sizd=4096;modify=20231017012009;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gb008ea; shonot

Listing: type=dir;sizd=4096;modify=20210220010338;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821ga5003b; cgi-bin

Listing: type=dir;sizd=4096;modify=20230814114703;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gb10b2f; tanach_en

Listing: type=dir;sizd=4096;modify=20200131000820;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gaa08cb; gmara

Listing: type=dir;sizd=4096;modify=20230818094314;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821ga8032e; en_yacov

Listing: type=pdir;sizd=4096;modify=20231028235812;UNIX.mode=0750;UNIX.uid=1051;UNIX.gid=99;unique=821ga5003a; ..

Listing: type=dir;sizd=4096;modify=20231030090022;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821ga70327; asulin

Listing: type=dir;sizd=4096;modify=20140921210508;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gb008eb; sratim_hidavrut_mp4

Listing: type=file;size=218;modify=20211012082622;UNIX.mode=0644;UNIX.uid=1051;UNIX.gid=1052;unique=821ga53045; .htaccess

Listing: type=dir;sizd=4096;modify=20131217011549;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gb10b30; tehilim_a

Reply: 226 41 matches total

Status: Skipped display of 31 listing lines

Status: Success

Results

Your server is working and assorted routers/firewalls have been correctly configured for explicit FTP over TLS as performed by this test. However there have been warnings about compatibility issues, not all users will be able to use your server.

For maximum compatibility, consider resolving these warnings.


----------------------------------------------------------------

TEST 2
Allow fallback to plain FTP (insecure)


Warning: Allowing fallback to plaintext FTP is insecure. You should use explicit FTP over TLS.

Status: Resolving address of gator3***.hostgator.com

Status: Connecting to 50.87.145.***

Warning: The entered address does not resolve to an IPv6 address.

Status: Connected, waiting for welcome message...

Reply: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------

Reply: 220-You are user number 1 of 150 allowed.

Reply: 220-Local time is now 04:07. Server port: 21.

Reply: 220-IPv6 connections are also welcome on this server.

Reply: 220 You will be disconnected after 15 minutes of inactivity.

Command: CLNT https://ftptest.net on behalf of 147.234.64.55

Reply: 530 You aren't logged in

Command: AUTH TLS

Reply: 234 AUTH TLS OK.

Status: Performing TLS handshake...

Status: TLS handshake successful, verifying certificate...

Status: Received 3 certificates from server.

Status: cert[0]: subject='CN=*.hostgator.com' issuer='C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Domain Validation Secure Server CA'

Status: cert[1]: subject='C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Domain Validation Secure Server CA' issuer='C=US,ST=New Jersey,L=Jersey City,O=The USERTRUST Network,CN=USERTrust RSA Certification Authority'

Status: cert[2]: subject='C=US,ST=New Jersey,L=Jersey City,O=The USERTRUST Network,CN=USERTrust RSA Certification Authority' issuer='C=GB,ST=Greater Manchester,L=Salford,O=Comodo CA Limited,CN=AAA Certificate Services'

Command: USER ***@***

Reply: 331 User ***@*** OK. Password required

Command: PASS ****************

Reply: 230 OK. Current restricted directory is /

Command: SYST

Reply: 215 UNIX Type: L8

Command: FEAT

Reply: 211-Extensions supported:

Reply: UTF8

Reply: EPRT

Reply: IDLE

Reply: MDTM

Reply: SIZE

Reply: MFMT

Reply: REST STREAM

Reply: MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;

Reply: MLSD

Reply: PRET

Reply: AUTH TLS

Reply: PBSZ

Reply: PROT

Reply: TVFS

Reply: ESTA

Reply: PASV

Reply: EPSV

Reply: ESTP

Reply: 211 End.

Command: PBSZ 0

Reply: 200 PBSZ=0

Command: PROT P

Reply: 200 Data protection level set to "private"

Command: PWD

Reply: 257 "/" is your current location

Status: Current path is /

Command: TYPE I

Reply: 200 TYPE is now 8-bit binary

Command: PASV

Reply: 227 Entering Passive Mode (50,87,145,176,117,122)

Command: MLSD

Status: Data connection established, performing TLS handshake...

Reply: 150 Accepted data connection

Status: TLS handshake successful, verifying certificate...

Status: Received 3 certificates from server.

Status: cert[0]: subject='CN=*.hostgator.com' issuer='C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Domain Validation Secure Server CA'

Status: cert[1]: subject='C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Domain Validation Secure Server CA' issuer='C=US,ST=New Jersey,L=Jersey City,O=The USERTRUST Network,CN=USERTrust RSA Certification Authority'

Status: cert[2]: subject='C=US,ST=New Jersey,L=Jersey City,O=The USERTRUST Network,CN=USERTrust RSA Certification Authority' issuer='C=GB,ST=Greater Manchester,L=Salford,O=Comodo CA Limited,CN=AAA Certificate Services'

Status: TLS session of transfer connection has been resumed.

Listing: type=dir;sizd=4096;modify=20231017012009;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gb008ea; shonot

Listing: type=dir;sizd=4096;modify=20210220010338;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821ga5003b; cgi-bin

Listing: type=dir;sizd=4096;modify=20230814114703;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gb10b2f; tanach_en

Listing: type=dir;sizd=4096;modify=20200131000820;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gaa08cb; gmara

Listing: type=dir;sizd=4096;modify=20230818094314;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821ga8032e; en_yacov

Listing: type=pdir;sizd=4096;modify=20231028235812;UNIX.mode=0750;UNIX.uid=1051;UNIX.gid=99;unique=821ga5003a; ..

Listing: type=dir;sizd=4096;modify=20231030090022;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821ga70327; asulin

Listing: type=dir;sizd=4096;modify=20140921210508;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gb008eb; sratim_hidavrut_mp4

Listing: type=file;size=218;modify=20211012082622;UNIX.mode=0644;UNIX.uid=1051;UNIX.gid=1052;unique=821ga53045; .htaccess

Listing: type=dir;sizd=4096;modify=20131217011549;UNIX.mode=0755;UNIX.uid=1051;UNIX.gid=1052;unique=821gb10b30; tehilim_a

Reply: 226 41 matches total

Status: Skipped display of 31 listing lines

Status: Success

Results

Your server is working and assorted routers/firewalls have been correctly configured for plain basic FTP as performed by this test. However there have been warnings about compatibility issues, not all users will be able to use your server.

For maximum compatibility, consider resolving these warnings.

naary
500 Command not understood
Posts: 5
Joined: 2023-11-06 22:27
First name: boaz
Last name: shalom

Re: Failed to retrieve directory listing - How do you get over it?

#4 Post by naary » 2023-11-07 12:24

As I wrote - this is a test I did.
I would appreciate it if you could tell me what you understand from the analysis of the data?

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Failed to retrieve directory listing - How do you get over it?

#5 Post by botg » 2023-11-07 14:05

The test succeeds.

This means that there is some firewall or NAT router on your end of the connection that is breaking the connection.

naary
500 Command not understood
Posts: 5
Joined: 2023-11-06 22:27
First name: boaz
Last name: shalom

Re: Failed to retrieve directory listing - How do you get over it?

#6 Post by naary » 2023-11-08 12:10

Thanks for the diagnosis.
I tried to remove Defender firewall - and it doesn't help.
I installed Nod32 antivirus [which disables Defender] and still does not connect.
I tried to connect with another computer to the same router - and it does manage to connect.
Is it possible to do some kind of test on my computer to see what is causing the problem?
Thanks

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Failed to retrieve directory listing - How do you get over it?

#7 Post by botg » 2023-11-08 15:58

Have you yet tried wiping the hard disk and reinstalling Windows?

naary
500 Command not understood
Posts: 5
Joined: 2023-11-06 22:27
First name: boaz
Last name: shalom

Re: Failed to retrieve directory listing - How do you get over it?

#8 Post by naary » 2023-11-08 22:00

I won't do that...
It's too much work then to install all my software...

Post Reply