Error: 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
jgmoss
500 Command not understood
Posts: 2
Joined: 2008-08-23 19:16
First name: James
Last name: Moss

Re: Error: Failed to retrieve directory listing

#16 Post by jgmoss » 2008-08-24 18:59

Just read your post Shotsbyscott and I feel your pain. I am experiencing the same problem. After years of using Cute FTP with no problems accessing and transferring files, a couple of months ago, any FTP program I use (Cute FTP, Smart FTP & Filezilla) has given me the same or similar error message: "Failed to retrieve directory listing". Although they initially connect and log me in using my userid and password, the connection is dropped when trying to retrieve my directory listing. My server techs cannot explain why this is happening and I am at a loss for a solution. I have disabled the Windows firewall and have tried the active and passive connection modes with no luck. Does anyone have any suggestions as to what I might try?

shotsbyscott
500 Command not understood
Posts: 3
Joined: 2008-08-24 12:26
First name: Scott
Last name: Jones

Re: Error: Failed to retrieve directory listing

#17 Post by shotsbyscott » 2008-08-24 19:08

Thank for the reply JGMoss. I am getting ready to call my web hosting service for the 4th time to try to resolve this problem. I just have a sneaky suspicion that the problem is on their end. I will post my results whether good or bad.

shotsbyscott
500 Command not understood
Posts: 3
Joined: 2008-08-24 12:26
First name: Scott
Last name: Jones

Re: Error: Failed to retrieve directory listing

#18 Post by shotsbyscott » 2008-08-27 11:56

My FileZilla is now working!! I change it to Active Mode and now it work just fine. Why it worked in Passive mode for so long and then had to change to active is a mystery to me!

jgmoss
500 Command not understood
Posts: 2
Joined: 2008-08-23 19:16
First name: James
Last name: Moss

Re: Error: Failed to retrieve directory listing

#19 Post by jgmoss » 2008-08-27 16:31

To all who may be experiencing this problem: If you are connecting through a router, update the firmware and the problem may be solved. I'm connecting through a Linksys Wireless Router (WRT54GS). I updated the firmware and am no longer having the problem with my FTP server.

da chicken
226 Transfer OK
Posts: 619
Joined: 2005-11-02 06:41

Re: Error: Failed to retrieve directory listing

#20 Post by da chicken » 2008-08-27 18:49

Try removing your router if you can and connecting your PC directly to the modem.

(Note: If you're running Windows please make sure your OS is fully up to date before doing this!)

rps63ifid
500 Syntax error
Posts: 12
Joined: 2007-08-20 16:12

Re: Error: Failed to retrieve directory listing

#21 Post by rps63ifid » 2008-08-28 15:33

I've used FZ for years, and until recently had few problems. Since upgrading to 3.1.1.1 last week, FZ seems no longer able to retrieve a directory listing from my primary SFTP server. Prior to upgrading, I was running 3.1.0.1 without problems. The 3.1.2-rc1 build behaves the same as 3.1.1.1. I've tried toggling between active and passive mode with no discernible difference...

I've also moved to a different box here where a co-worker has 3.0.10 installed, and I can sign in on this same server with my same account without problems.

Here is the debug output from 3.1.2-rc1 (sanitized to remove username, hostname, and IP)...

Status: Connecting to servername...
Trace: Going to execute "C:\Tools\FileZilla FTP Client\fzsftp.exe"
Response: fzSftp started
Trace: CSftpControlSocket::ConnectParseResponse(fzSftp started)
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ConnectSend()
Command: open "username@servername" 22
Trace: Looking up host "servername"
Trace: Connecting to 0.0.0.0 port 22
Trace: Server version: SSH-2.0-VShell_2_1_4_157 VShell
Trace: Using SSH protocol version 2
Trace: We claim version: SSH-2.0-PuTTY_Local:_Aug_24_2008_14:04:42
Trace: Doing Diffie-Hellman group exchange
Trace: Doing Diffie-Hellman key exchange with hash SHA-1
Command: Trust new Hostkey: Yes
Trace: Host key fingerprint is:
Trace: ssh-dss 1024 62:fd:0c:bd:90:bd:cb:3f:de:3f:09:84:53:5c:d6:0c
Trace: Initialised AES-256 CBC client->server encryption
Trace: Initialised HMAC-SHA1 client->server MAC algorithm
Trace: Initialised AES-256 CBC server->client encryption
Trace: Initialised HMAC-SHA1 server->client MAC algorithm
Command: Pass: ********
Trace: Sent password
Trace: Access granted
Trace: Opened channel for session
Trace: Started a shell/command
Status: Connected to servername
Trace: CSftpControlSocket::ConnectParseResponse()
Trace: CSftpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Retrieving directory listing...
Trace: CSftpControlSocket::SendNextCommand()
Trace: CSftpControlSocket::ChangeDirSend()
Command: pwd
Response: Current directory is: "Developer:/"
Trace: ControlSocket.cpp(356): Failed to parse returned path. caller=0p1119118
Trace: CSftpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(2)
Trace: CSftpControlSocket::ParseSubcommandResult(2)
Trace: CSftpControlSocket::ListSubcommandResult()
Trace: state = 1
Trace: CSftpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(2)
Error: Failed to retrieve directory listing

Any thoughts on what has gone sideways with 3.1.1.1 and later builds?

--
/ron

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

Re: Error: Failed to retrieve directory listing

#22 Post by botg » 2008-08-28 16:12

Use the site manager and cycle through the available server types.

rps63ifid
500 Syntax error
Posts: 12
Joined: 2007-08-20 16:12

Re: Error: Failed to retrieve directory listing

#23 Post by rps63ifid » 2008-08-28 17:38

Server types "VMS", "DOS", "HP NonStop" all retrieve the initial directory listing on the server (which is a Windows 2000-based box under the hood). Of those, however, only "DOS" allows me to list the contents of folders other than the initial folder. Once connected, each time I expand the folders as I navigate down to subsequently lower levels of folders, both 3.1.1.1 and 3.1.2-rc1 then are doing something odd with the folders, slashes, etc.:

When I initially connect, the "remote site" panel shows "Developer:/\" and the tree below it shows
[+] Developer:/\

If I expand that folder, it behaves as expected and shows

[-] Developer:/\
|--- folder1
|--- folder2
|--- folder3

and all of the folder icons have a question mark overlaid on them; none of them have the little [+] expand icon.

If I click on "folder2", the "remote site" panel shows "Developer:/folder2\", and the tree panel looks exactly as above, but now includes

[+] Developer:/folder2\

as the last entry (the entry at the bottom). Expanding that entry, shows the folders, again with blue q-marks overlaid. Selecting a subfolder again puts the selected folder in the "remote site" panel, and adds yet another entry on the bottom of the tree... so now my "tree" looks like

[-] Developer:/\
|--- folder1
|--- folder2
|--- folder 3
...
[-] Developer:/folder2\
|--- subfolder1
|--- subfolder2
|--- subfolder3
...
[-] Developer:/folder2/subfolder2\
|--- subsubfolder1
|--- subsubfolder2
|--- subsubfolder3
|--- file-a.txt
|--- file-b.txt
...

That's way different than what I've seen in the past (i.e., before 3.1.1.1), where the tree was actually nested in a manner that looked and acted like a tree and without the goofiness with the differing slashes...

Any additional ideas?

--
/ron

Methen
504 Command not implemented
Posts: 7
Joined: 2008-09-10 13:33

Re: Error: Failed to retrieve directory listing

#24 Post by Methen » 2010-02-16 00:31

Thsi is what I did and it worked fine
Right click on the main directory or file you are trying to delete
click file permissions change to 777 check the recurse into subdirectorys
then choose apply to all files and directorys click ok.

d4bdn_one
500 Command not understood
Posts: 1
Joined: 2010-06-24 07:06
First name: Maytus
Last name: Aurelius

Re: Error: Failed to retrieve directory listing

#25 Post by d4bdn_one » 2010-06-24 07:11

Ok, maybe its a little too late but i think I luckily fixed the problem... in the server settings I changed within Passive mode settings the second option "use the following ip" (I use a free dns service but I think the IP would also work if its your case) I wrote user.dyndns.org and now I dont have problems login in, I want to comment that I disabled the firewall just to test and I could log in, after reenable the firewall I did this change in filezilla server and now it works just fine ^^

*Update

I could see the folders but when I tried to see the files I had the problem again, here is the resolution:

In your filezilla client :

■Open Filezilla, go to Edit -> Settings
■Click on Connection -> FTP: Choose Active
■Click on Connection -> FTP -> Active Mode: Select "Ask your operating system for the external IP address"
■Click on Connection -> FTP -> Passive Mode: Choose Fall Back to Active Mode
■Press OK.

I hope posting links is not against the forum laws

http://www.nodans.com/index.cfm/2008/4/ ... ry-Listing

etterk
500 Command not understood
Posts: 1
Joined: 2010-07-07 17:18

Re: Error: Failed to retrieve directory listing

#26 Post by etterk » 2010-07-07 17:30

Hey there all

I've experienced the same issue just now. Running Ubuntu 10.04. After enabling the firewall and opening a port for logging into ftp, FileZilla would authenticate and then display the error that directory listing could not be retrieved.

It turns out that ProFTPD server uses additional ports for passive traffic. After setting a specific range of ports to use on the server and opening these in the firewall it works perfectly. There was no additional configuration required in FileZilla apart from the normal setup.

Not sure if this would be the case for other FTP servers, but tried with a number of FTP clients, FileZilla being one of them and there we go.

:P

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

Re: Error: Failed to retrieve directory listing

#27 Post by boco » 2010-07-07 23:58

Not sure if this would be the case for other FTP servers
All FTP servers need to be set up for Passive mode that way.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

alwinbok
500 Command not understood
Posts: 4
Joined: 2010-07-09 14:04
First name: Alwin

Re: Error: Failed to retrieve directory listing

#28 Post by alwinbok » 2010-07-09 14:44

I have seen various references to the above problem but none seem to resolve my issue. In my case FileZilla was working before and suddenly I am unable to connect to my server.
FileZilla is able to find the server and log on but unable to receive a directory listing after the LIST command. This is the case when accessing my server from the outside. When being on the intranet, using the intranet IP, it is able to receive the directory listing. Therefore, it seems there might be something with the firewall? However, as I said, I had everything configured properly before and it was working. Configuration still is the same in the router firewall. See below log.

My router is a Duolink SW24 which allows connecting to WAN connections.

Status: Resolving address of ********
Status: Connecting to 187.67.106.212:32000...
Status: Connection established, waiting for welcome message...
Response: 220 NASFTPD Turbo station 2.x 1.3.1rc2 Server (ProFTPD) [192.168.0.252]
Command: USER ****
Response: 331 Password required for ****
Command: PASS **********
Response: 230 User **** logged in
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: UTF8
Response: REST STREAM
Response: SIZE
Response: 211 End
Command: OPTS UTF8 ON
Response: 200 UTF8 set to on
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PORT 10,161,74,136,9,234
Response: 200 PORT command successful
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing
Attachments
20100709 - 11_33_39 AM Screenshot.png
Server configuration
20100709 - 11_33_39 AM Screenshot.png (53.97 KiB) Viewed 37662 times
20100709 - 11_30_11 AM Screenshot.png
port forwarding in router firewall
20100709 - 11_30_11 AM Screenshot.png (6.2 KiB) Viewed 37662 times
20100709 - 11_30_01 AM Screenshot.png
port forwarding in router firewall
20100709 - 11_30_01 AM Screenshot.png (6.2 KiB) Viewed 37662 times

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

Re: Error: Failed to retrieve directory listing

#29 Post by boco » 2010-07-09 16:48

Command: PORT 10,161,74,136,9,234
Response: 200 PORT command successful
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing
You're using Active (PORT) mode, so you must configure your client and client network. In other words, you must define, open and forward an Active port range on the client side. Additionally, your clients sends out the wrong (internal) IP.

On the other hand, maybe you just accidentally switched to Active mode? Try if Passive mode works (server configuration is ONLY for Passive mode).
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

alwinbok
500 Command not understood
Posts: 4
Joined: 2010-07-09 14:04
First name: Alwin

Re: Error: Failed to retrieve directory listing

#30 Post by alwinbok » 2010-07-09 17:15

Yes it was still on active. I had been trying default, active and passive before, so it was still on active. however, before the problem started it was on passive and even on passive now it still does not work. On the client side I have no control over the ports and forwarding, but nothing else changed and it was working before from the location where I am now. I switched back to passive but as I said, it still fails to retrieve the directory listing.
Status: Connecting to 187.67.106.212:32000...
Status: Connection established, waiting for welcome message...
Response: 220 NASFTPD Turbo station 2.x 1.3.1rc2 Server (ProFTPD) [192.168.0.252]
Command: USER ****
Response: 331 Password required for ****
Command: PASS **********
Response: 230 User **** logged in
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: UTF8
Response: REST STREAM
Response: SIZE
Response: 211 End
Command: OPTS UTF8 ON
Response: 200 UTF8 set to on
Status: Connected
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 (192,168,0,252,125,12).
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

Following is the same attempt but using SmartFTP:
[14:22:52] Detected Server Software: ProFTPD
[14:22:52] PWD
[14:22:52] 257 "/" is the current directory
[14:22:52] TYPE A
[14:22:52] 200 Type set to A
[14:22:52] PASV
[14:22:52] 227 Entering Passive Mode (192,168,0,252,125,7).
[14:22:52] Passive ip address returned from server different from server ip.
[14:22:52] Replacing received PASV address 192.168.0.252 by server address 187.67.106.212.
[14:22:52] Opening data connection to 187.67.106.212 Port: 32007
[14:22:52] LIST -aL
[14:23:13] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Last edited by alwinbok on 2010-07-09 17:19, edited 1 time in total.

Post Reply