Error: Failed to retrieve directory listing
Moderator: Project members
Error: Failed to retrieve directory listing
I'm encountering this difficulty, even with getting a complete A-Okay on the network test - which requires me to completely disable my Windows Firewall, which I'm unwilling to do; exceptions, however handled, do not work. Leaving that aside, it still won't connect to my server. I'm trying to get it to work and am willing to disable the firewall just to see if I can finally manage. I am getting
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type Binary
Command: PASV
Error: Disconnected from server
Error: Failed to retrieve directory listing
Does the server work? I can answer with a resounding 'Yes'. I can use the Windows builtin command line FTP. The difficulty with that one is that the file names of the stuff I need to move to/from work include spaces, can be really, really lengthy, and are found within directories containing hundreds of files. It's impossible to do this with a text-only FTP.
Please note that I have gone over, under, and through every related and unrelated post on this entire message board and tried everything I saw, before creating an account and posting this. I simply can't come up with a reason that built-in Windows XP ftp will work, but Filezilla won't.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type Binary
Command: PASV
Error: Disconnected from server
Error: Failed to retrieve directory listing
Does the server work? I can answer with a resounding 'Yes'. I can use the Windows builtin command line FTP. The difficulty with that one is that the file names of the stuff I need to move to/from work include spaces, can be really, really lengthy, and are found within directories containing hundreds of files. It's impossible to do this with a text-only FTP.
Please note that I have gone over, under, and through every related and unrelated post on this entire message board and tried everything I saw, before creating an account and posting this. I simply can't come up with a reason that built-in Windows XP ftp will work, but Filezilla won't.
Windows' FTP.exe uses Active Mode, Filezilla uses Passive Mode by default. It seems you are having difficulties getting Passive mode to work. Try switching to Active Mode and test again, please (connection settings).
If the problems persist, complete logs from both the server and the client would be great.
If the problems persist, complete logs from both the server and the client would be great.
Yeppers, tried Active Mode already, all the usual stuff. And I'm the server administrator, and the server appears to be fine. Tried ws_ftp client from home (a really old one) and that works fine, so now I'm really baffled. What am I supposed to fix on the server? I'll see about getting some more log info (I'll have to re-run tests from scratch tonight). I appreciate the rapid replies! Just wanted to say that Active Mode isn't it.
Re: Error: Failed to retrieve directory listing
Hi Smyslov:
I am having a similar problem, but with Active mode. Everything works great with the CoreFTP client and most other folks using v2/3 of FileZilla. I am seeing a line item in the logging events that seems to be pointed back to the IP of the client instead of the server:
Command: PORT 10,33,6,162,5,197
Response: 200 PORT Command successful.
Command: LIST
Response: 150 Opening ASCII mode data connection for /bin/ls.
Response: 426 Data connection closed, transfer aborted.
Error: Could not retrieve directory listing
In successful attempts with the v2 client, I am not seeing this line. Where is this controlled in the settings and what would cause this?
Thanks,
Stephen
I am having a similar problem, but with Active mode. Everything works great with the CoreFTP client and most other folks using v2/3 of FileZilla. I am seeing a line item in the logging events that seems to be pointed back to the IP of the client instead of the server:
Command: PORT 10,33,6,162,5,197
Response: 200 PORT Command successful.
Command: LIST
Response: 150 Opening ASCII mode data connection for /bin/ls.
Response: 426 Data connection closed, transfer aborted.
Error: Could not retrieve directory listing
In successful attempts with the v2 client, I am not seeing this line. Where is this controlled in the settings and what would cause this?
Thanks,
Stephen
Re: Error: Failed to retrieve directory listing
PORT = active mode
PASV = passive mode (recommended)
PASV = passive mode (recommended)
Re: Error: Failed to retrieve directory listing
I get this and after Wiresharking what was happening...
Wireshark helpfully translates the port specification as:
Passive port: 61556
However the LIST command information is:
Transmission Control Protocol, Src Port: 2409 (2409), Dst Port: ftp (21), Seq: 53, Ack: 237, Len: 6
So it's not using the given passive port. So either it's not liking something and attempting to fall back to active, which I turned off, or someone messed up the passive code...
Code: Select all
220 ProFTPD 1.3.1rc2 Server (hosting5.multiplay.co.uk) [85.236.96.31]
USER **
331 Password required for **
PASS **
230 User **logged in
PWD
257 "/" is the current directory
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (85,236,96,31,240,116).
LIST
Passive port: 61556
However the LIST command information is:
Transmission Control Protocol, Src Port: 2409 (2409), Dst Port: ftp (21), Seq: 53, Ack: 237, Len: 6
So it's not using the given passive port. So either it's not liking something and attempting to fall back to active, which I turned off, or someone messed up the passive code...
Re: Error: Failed to retrieve directory listing
Please read the Network Configuration guide to understand the Wireshark output.
Re: Error: Failed to retrieve directory listing
I understand it just fine, btw your link has been forumised. My point is:
227 Entering Passive Mode (85,236,96,31,240,116). <-- i.e. please use port 61556
Then the command I'm sending to get the list:
Transmission Control Protocol, Src Port: 2409 (2409), Dst Port: ftp (21), Seq: 53, Ack: 237, Len: 6
Wrong port. This is a fresh install...
227 Entering Passive Mode (85,236,96,31,240,116). <-- i.e. please use port 61556
Then the command I'm sending to get the list:
Transmission Control Protocol, Src Port: 2409 (2409), Dst Port: ftp (21), Seq: 53, Ack: 237, Len: 6
Wrong port. This is a fresh install...
Re: Error: Failed to retrieve directory listing
The command you're sending to get the list is "LIST".
Re: Error: Failed to retrieve directory listing
Yes, FileZilla is sending the LIST command but it's sending the command to PORT 21 on the server and NOT the passive port it was told to use...
Re: Error: Failed to retrieve directory listing
Follow the link I've posted before. There everything gets explained.
Re: Error: Failed to retrieve directory listing
Sorry I didn't see this thread previously since I am having the same problem. I just posted another message about it, but don't mind receiving the answer here.
Could you repost the link you are talking about? I don't see it listed in the answers.
Thanks!
Albert
Could you repost the link you are talking about? I don't see it listed in the answers.
Thanks!
Albert
Re: Error: Failed to retrieve directory listing
Hello,
OK, I see that I had my Site Manager transfer settings incorrect. That solved the problem with the initial directory. But, now I am having a problem with a sub directory. Here is the transcript:
Trace: CFtpControlSocket::SendNextCommand(0)
Command: CDUP
Trace: CFtpControlSocket::OnReceive()
Response: 250 CDUP command successful.
Command: PWD
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/public_html" is current directory.
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: CFtpControlSocket::ListSend(0)
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Directory listing successful
It says directory listing successful, but the directory is not listed. If I try to send a file I get this:
Status: Directory listing successful
Status: Resolving IP-Address for [**removed**]
Trace: ControlSocket.cpp(962): CRealControlSocket::ContinueConnect(01258C60) m_pEngine=01222B08 caller=0126DC40
Status: Connecting to 64.27.88.120:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 ProFTPD 1.2.5 Server (FTP Server) [[**removed**]]
Command: USER tfup
Trace: CFtpControlSocket::OnReceive()
Response: 331 Password required for tfup.
Command: PASS *********
Trace: CFtpControlSocket::OnReceive()
Response: 230 User tfup logged in.
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::FileTransfer()
Status: Starting upload of C:\Documents and Settings\astatti\My Documents\My Pictures\100449.jpg
Trace: CFtpControlSocket::SendNextCommand(0)
Command: CWD /public_html/
Trace: CFtpControlSocket::OnReceive()
Response: 250 CWD command successful.
Command: PWD
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/public_html" is current directory.
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: FileTransferSend()
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: CFtpControlSocket::TransferSend(0)
Command: TYPE I
Trace: CFtpControlSocket::OnReceive()
Response: 200 Type set to I.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: PASV
Trace: CFtpControlSocket::OnReceive()
Response: 227 Entering Passive Mode (64,27,88,120,18,14).
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: STOR 100449.jpg
Trace: CTransferSocket::OnConnect
Trace: CTransferSocket::TransferEnd(1)
Trace: CFtpControlSocket::TransferEnd()
Trace: CFtpControlSocket::OnReceive()
Response: 550 100449.jpg: Permission denied
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(2)
Trace: CFtpControlSocket::SendNextCommand(2)
Trace: FileTransferSend()
Trace: CFtpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(6)
Error: Critical error
I checked the permissions and I should be the owner of this directory and the owner has rwx permissions. Any ideas?
Thanks,
Albert
OK, I see that I had my Site Manager transfer settings incorrect. That solved the problem with the initial directory. But, now I am having a problem with a sub directory. Here is the transcript:
Trace: CFtpControlSocket::SendNextCommand(0)
Command: CDUP
Trace: CFtpControlSocket::OnReceive()
Response: 250 CDUP command successful.
Command: PWD
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/public_html" is current directory.
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: CFtpControlSocket::ListSend(0)
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Directory listing successful
It says directory listing successful, but the directory is not listed. If I try to send a file I get this:
Status: Directory listing successful
Status: Resolving IP-Address for [**removed**]
Trace: ControlSocket.cpp(962): CRealControlSocket::ContinueConnect(01258C60) m_pEngine=01222B08 caller=0126DC40
Status: Connecting to 64.27.88.120:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 ProFTPD 1.2.5 Server (FTP Server) [[**removed**]]
Command: USER tfup
Trace: CFtpControlSocket::OnReceive()
Response: 331 Password required for tfup.
Command: PASS *********
Trace: CFtpControlSocket::OnReceive()
Response: 230 User tfup logged in.
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::FileTransfer()
Status: Starting upload of C:\Documents and Settings\astatti\My Documents\My Pictures\100449.jpg
Trace: CFtpControlSocket::SendNextCommand(0)
Command: CWD /public_html/
Trace: CFtpControlSocket::OnReceive()
Response: 250 CWD command successful.
Command: PWD
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/public_html" is current directory.
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: FileTransferSend()
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: CFtpControlSocket::TransferSend(0)
Command: TYPE I
Trace: CFtpControlSocket::OnReceive()
Response: 200 Type set to I.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: PASV
Trace: CFtpControlSocket::OnReceive()
Response: 227 Entering Passive Mode (64,27,88,120,18,14).
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: STOR 100449.jpg
Trace: CTransferSocket::OnConnect
Trace: CTransferSocket::TransferEnd(1)
Trace: CFtpControlSocket::TransferEnd()
Trace: CFtpControlSocket::OnReceive()
Response: 550 100449.jpg: Permission denied
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(2)
Trace: CFtpControlSocket::SendNextCommand(2)
Trace: FileTransferSend()
Trace: CFtpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(6)
Error: Critical error
I checked the permissions and I should be the owner of this directory and the owner has rwx permissions. Any ideas?
Thanks,
Albert
-
- 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
My FileZilla just started not receiving directory listings, it just times out when I try to upload my photos to my web page. I have talked to my web hosting company 3 times and they see no problem on their end. I get the same results when I try to up load using a different computer at my home. If I use different FTP software I still get the same results. I have been using FlieZilla for many months with no problem with the firewall turned on and all virus protection on. I have turned everything off and still no fix. I have my settings correct too but nothing seems to work. I have talked to my Internet provider (Bellsouth) and still no results. I am at a loss and I must fix this problem quickly. I am a photographer and make my living selling photos. Any thoughts will be much appreciated.