Failed to retrieve Directory Listing

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

Moderator: Project members

Message
Author
Furious
500 Command not understood
Posts: 1
Joined: 2008-07-10 22:09
First name: Glen
Last name: Hastings

Failed to retrieve Directory Listing

#1 Post by Furious » 2008-07-10 22:15

Hi guys,

I have read the network guide and a bunch of on-line "how to's" and think I've done everything right (but I probably havn't).

Anyway, I've installed FileZilla Server and can access it from internally, but externally I get this message.

Status: Connecting to 203.206.183.174:21...
Status: Connection established, waiting for welcome message...
Response: 220-FileZilla Server version 0.9.24 beta
Response: 220-written by Tim Kosse (Tim.Kosse@gmx.de)
Response: 220 Please visit http://sourceforge.net/projects/filezilla/
Command: USER pd
Response: 331 Password required for pd
Command: PASS **
Response: 230 Logged on
Command: SYST
Response: 215 UNIX emulated by FileZilla
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: REST STREAM
Response: SIZE
Response: MLST type*;size*;modify*;
Response: MLSD
Response: UTF8
Response: CLNT
Response: MFMT
Response: 211 End
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (203,206,183,174,214,224)
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing


It seems like it can log on etc, but for what ever reason can't do any more. Can anyone help please?

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: Failed to retrieve Directory Listing

#2 Post by boco » 2008-07-11 07:39

If, after reading the Network Configuration Guide and following it to the letter, you still get errors, it's either a software (Windows Firewall anyone?) or a hardware interfering with/blocking the traffic. Uninstall firewalls and test again. Disabling doesn't get rid of the firewall btw.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

ronan
500 Syntax error
Posts: 12
Joined: 2008-06-28 12:37

Re: Failed to retrieve Directory Listing

#3 Post by ronan » 2008-07-16 12:54

I've got almost exactly the same problem. This is what I get;
Status: Resolving IP-Address for www.newtownstewartgolf.talktalk.net
Status: Connecting to 62.24.128.168:21...
Status: Connection established, waiting for welcome message...
Response: 220-Welcome to Pure-FTPd.
Response: 220-You are user number 576 of 1000 allowed.
Response: 220-This is a private system - No anonymous login
Response: 220 You will be disconnected after 5 minutes of inactivity.
Command: USER newtownstewartgolf@talktalk.net
Response: 331 User newtownstewartgolf@talktalk.net OK. Password required
Command: PASS ***********
Response: 230-User newtownstewartgolf@talktalk.net has group access to: ftpgroup
Response: 230-OK. Current restricted directory is /
Response: 230 11286 Kbytes used (11%) - authorized: 102400 Kb
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Extensions supported:
Response: EPRT
Response: IDLE
Response: MDTM
Response: SIZE
Response: REST STREAM
Response: MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response: MLSD
Response: TVFS
Response: ESTP
Response: PASV
Response: EPSV
Response: SPSV
Response: ESTA
Response: 211 End.
Status: Connected
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
Response: 227 Entering Passive Mode (62,24,128,168,205,40)
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

Looks familiar? I've turned off Windows firewall and my antivirus but it has made no difference. If you find a solution I'd be very interested to hear about it.

ExploreMN
500 Command not understood
Posts: 1
Joined: 2008-07-16 16:02

Re: Failed to retrieve Directory Listing

#4 Post by ExploreMN » 2008-07-16 16:07

Actually I think you are looking at a bug and not a firewall issue. I get the same problem and this worked for almost 2 weeks then just stopped. Rebooting the machine and reinstalling does not make a difference.

Status: Resolving IP-Address for hidden.url
Status: Connecting to "our IP address":21...
Status: Connection established, waiting for welcome message...
Response: 220 Remote Directory
Command: USER "username"
Response: 331 Password required for "username"
Command: PASS ***********
Response: 230 Logged on
Command: SYST
Response: 215 UNIX emulated by FileZilla
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: REST STREAM
Response: SIZE
Response: MLST type*;size*;modify*;
Response: MLSD
Response: UTF8
Response: CLNT
Response: MFMT
Response: 211 End
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode ("ip information here")
Command: LIST
Response: 150 Connection accepted
Response: 226 Transfer OK
Error: Connection timed out
Error: Failed to retrieve directory listing

Again, this was working for several weeks and then just stopped with this problem.

ronan
500 Syntax error
Posts: 12
Joined: 2008-06-28 12:37

Re: Failed to retrieve Directory Listing

#5 Post by ronan » 2008-07-27 12:16

I have had the same problem for weeks. Now I think I've cracked it (with the help of advice from a lot of very helpful members). I changed from Passive to Active mode, then I ticked "Ask your operating system for external IP address."
Now I'm transferring files.
Can some one now tell me how to increase the time before it cuts out because of inactivity. The default seems to be 5 mins.

bjdea1
500 Command not understood
Posts: 2
Joined: 2009-05-28 02:44
First name: Brett

Re: Failed to retrieve Directory Listing

#6 Post by bjdea1 » 2009-05-28 02:51

I'm a server administrator and after changing over to FTPES I also had many of my clients complaining that they couldn't connect using FileZilla

Since currently FileZilla and FireFTP are the only 2 free FTPES/FTPS (secure) ftp clients worth using, I had no other option but to solve this problem fully for my clients if I wanted our servers to be secure.

I found that this had nothing to do with FileZilla nor my clients PC or network firewalls. Instead it required extra configuration and setup of our pure-ftpd servers. It is explained fully in this article:

http://www.theserverpages.com/articles/ ... perly.html

Basically the server needs to have a passive ftp port range opened in its own firewall and then pureftpd also needs to be configured to use this passive port range. Once we made this configuration change on our servers Filezilla began working for everyone in secure FTPES mode.

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

Re: Failed to retrieve Directory Listing

#7 Post by botg » 2009-05-28 08:29

This is also explained in the Network Configuration guide. The instructions are meant for FileZilla but can be easily employed on all other servers.

uk2k05
500 Command not understood
Posts: 1
Joined: 2009-06-02 14:05
First name: Stuart
Last name: Donnachie

Re: Failed to retrieve Directory Listing

#8 Post by uk2k05 » 2009-06-02 14:17

In my situation I required filezilla to run off port 2122, local connections were fine however after forwarding port 2122 from the router, users outside my LAN would have the same issue you experience.

To resolve this I had to turn on passive mode from within the client software.

I don't use filezilla's client software myself if that is what your using, but look out for this option and try to enable it.

ericvl
500 Command not understood
Posts: 1
Joined: 2010-03-18 07:40
First name: Eric
Last name: ValLau

Re: Failed to retrieve Directory Listing

#9 Post by ericvl » 2010-03-18 08:02

I had the same problem and before spending too much time reading all the documentation and fiddling with your router and firewall, try this:

I have a windows 2000 server with no firewall (b/c I couldn't find it) and a Linksys Corporate router.

-Open FileZilla Server Interface
-Go to the menu [Server]->[Active] - ensure that it is checked "Active"

That was the first thing. Then things started working and connecting instead of just EconnREFUSED...

Finally, the listing of directories. I had my port configured at 21.

But one thing that fixed the issue for me was going to the interface and:
-Menu [Edit]->[Settings]
-Go to [Passive Mode Settings]
-Check [Use Customer port range] and I keyed in 21 to 21 (could be different for anyone else)

Everything started working fine.... always a simpler solution before going to the complicated stuff and i don't even think the Network Configuration doc covered that, but hope this helps!!!

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

Re: Failed to retrieve Directory Listing

#10 Post by botg » 2010-03-18 19:29

ericvl, no offense but those settings are totally wrong.

Please read the Network Configuration guide for the correct instructions.

devknob
500 Command not understood
Posts: 3
Joined: 2010-05-29 06:16
First name: devon
Last name: averswald
Location: Colorado Springs

Re: Failed to retrieve Directory Listing

#11 Post by devknob » 2010-05-29 06:21

ericvl. TY so much. those settings are totally working for me.

devknob
500 Command not understood
Posts: 3
Joined: 2010-05-29 06:16
First name: devon
Last name: averswald
Location: Colorado Springs

Re: Failed to retrieve Directory Listing

#12 Post by devknob » 2010-05-29 06:27

hrm. idk wtf fixed my problem now. Works with 50000-50999 while it was not working for 40000-50000 ... whatev. It works.

robajz
504 Command not implemented
Posts: 9
Joined: 2010-11-10 16:24
First name: Robin
Last name: Kaňjak

Re: Failed to retrieve Directory Listing

#13 Post by robajz » 2014-03-02 16:21

Good afternoon,

I am using FZ Client for many years without a problem, but now I tried to set FZ Server and have the same issues with this message.

The server should be set correctly (listening port 21, passive mode with filled "following IP" and without custom port range), on hw-firewall before FZ Server forwarded (21) and in sw-firewall enabled port 21 too.

The log from FZ Client is:
Status: Connecting to 178.248.248.10:21...
Status: Connection established, waiting for welcome message...
Response: 220-FileZilla Server version 0.9.43 beta
Response: 220 Welcome to FTP
Command: USER user
Response: 331 Password required for user
Command: PASS ***********************
Response: 230 Logged on
Command: SYST
Response: 215 UNIX emulated by FileZilla
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: REST STREAM
Response: SIZE
Response: MLST type*;size*;modify*;
Response: MLSD
Response: UTF8
Response: CLNT
Response: MFMT
Response: 211 End
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: ZZZZEntering Passive Mode (178,248,248,10,7,25)
Command: PORT 192,168,1,1,58,153
Response: 500 Syntax error, command unrecognized.
Error: Failed to retrieve directory listing

What is curious on my home-pc (Win 7, Asus router without special settings) can I connect normally (from FZ Client only, Total Commander or web browser does not work), but from a few other locations not.

I tried to read many arctiles (incl. Network Configuration), but unfortunately it did not help me.

Any advice will be appreciated.

Thanks.

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: Failed to retrieve Directory Listing

#14 Post by boco » 2014-03-03 19:50

If that log you posted is genuine, you have something (most probably the router or a firewall) on your PC or network sabotaging FTP.
Response: ZZZZEntering Passive Mode (178,248,248,10,7,25)
Here it sabotages Passive mode by overwriting the response code.
Command: PORT 192,168,1,1,58,153
Response: 500 Syntax error, command unrecognized.
Here it probably sabotages Active mode, also, although you would have to provide the server's log, too, to check this.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

robajz
504 Command not implemented
Posts: 9
Joined: 2010-11-10 16:24
First name: Robin
Last name: Kaňjak

Re: Failed to retrieve Directory Listing

#15 Post by robajz » 2014-03-06 13:25

Hi boco,

thanks for reply. Sorry for that, here is the server log:

(000135)6.3.2014 14:14:52 - (not logged in) (46.23.53.15)> Connected, sending welcome message...
(000135)6.3.2014 14:14:52 - (not logged in) (46.23.53.15)> 220-FileZilla Server version 0.9.43 beta
(000135)6.3.2014 14:14:52 - (not logged in) (46.23.53.15)> 220 Welcome to praha-server (ROSENBERG)!
(000135)6.3.2014 14:14:52 - (not logged in) (46.23.53.15)> USER user
(000135)6.3.2014 14:14:52 - (not logged in) (46.23.53.15)> 331 Password required for dluhy
(000135)6.3.2014 14:14:52 - (not logged in) (46.23.53.15)> PASS ***********
(000135)6.3.2014 14:14:52 - dluhy (46.23.53.15)> 230 Logged on
(000135)6.3.2014 14:14:52 - dluhy (46.23.53.15)> PWD
(000135)6.3.2014 14:14:52 - dluhy (46.23.53.15)> 257 "/" is current directory.
(000135)6.3.2014 14:14:52 - dluhy (46.23.53.15)> TYPE I
(000135)6.3.2014 14:14:52 - dluhy (46.23.53.15)> 200 Type set to I
(000135)6.3.2014 14:14:52 - dluhy (46.23.53.15)> PASV
(000135)6.3.2014 14:14:52 - dluhy (46.23.53.15)> 227 Entering Passive Mode (178,248,248,10,7,0)
(000135)6.3.2014 14:14:52 - dluhy (46.23.53.15)> ZZZZ 192,168,1,1,13,205
(000135)6.3.2014 14:14:52 - dluhy (46.23.53.15)> 500 Syntax error, command unrecognized.

I do not know, what should sabotage this connection. I have checked firewalls on either side (software/hardware) and as I wrote already, on my home-pc can I connect safely.

Thanks.

Post Reply