Page 1 of 1

Error: Failed to retrieve directory listing

Posted: 2015-07-09 16:32
by msoporito
Cant seem to get the directory to show up. Not sure what I am doing wrong. I tried active and passive modes. Any help would be appreciated.

Passive Mode:
Status: Connecting to 10.148.100.13:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current working directory.
Command: TYPE I
Response: 200 Type is IMAGE.
Command: PASV
Response: 227 Entering passive mode (10,148,100,13,131,213)
Command: MLSD
Response: 500 Sorry, no such command.
Error: Failed to retrieve directory listing

Active Mode:
Status: Connecting to 10.148.100.13:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current working directory.
Command: TYPE I
Response: 200 Type is IMAGE.
Command: PORT 10,148,50,55,223,172
Response: 200 PORT command OK.
Command: MLSD
Response: 500 Sorry, no such command.
Error: Failed to retrieve directory listing

Re: Error: Failed to retrieve directory listing

Posted: 2015-07-09 16:36
by boco
Could you post a log from the first connection after having restarted FileZilla? There should be a FEAT command in there and the server reply to it.

Re: Error: Failed to retrieve directory listing

Posted: 2015-07-09 16:50
by msoporito
I closed Filezilla, reopened, then attempted to reconnect. Here is the log from that connection.

Status: Connecting to 10.148.100.13:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current working directory.
Command: TYPE I
Response: 200 Type is IMAGE.
Command: PORT 10,148,50,55,226,173
Response: 200 PORT command OK.
Command: MLSD
Response: 500 Sorry, no such command.
Error: Failed to retrieve directory listing

Re: Error: Failed to retrieve directory listing

Posted: 2015-07-09 17:22
by botg
Please right-click the message log and send the FEAT custom command. What does it output?

Re: Error: Failed to retrieve directory listing

Posted: 2015-07-09 17:29
by msoporito
Excuse my ignorance. Is this what you were looking for?

Command: FEAT
Response: 221-Features:
Response: MDTM
Response: MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*
Response: 221 End

Re: Error: Failed to retrieve directory listing

Posted: 2015-07-09 17:54
by botg
Thanks, yes.

According to the FEAT output, the server does support MLSD. As per RFC 3659, MLSD support is indicated by the MLST line in the FEAT reply.



It seems your server is lying in its FEAT output, it includes MLST but does not actually support MLSD. Furthermore, your server's FEAT reply is slightly malformed.

Please contact your server administrator or server hosting provider for assistance so that the server can be fixed.

Re: Error: Failed to retrieve directory listing

Posted: 2015-07-11 15:07
by davidt1044
EDIT TO ADD: disregard the following, resolved by setting protocol to SFTP. Leaving in case it may help others.

Regards,




--------------------------
Hello,

After a php update to the server, I get the same error to the MLSD command. Following the above instructions, I issued the FEAT command. And the output is shown below. Any help will be greatly appreciated.

Thanks
Command: FEAT
Response: 211-Extensions supported:
Response: EPRT
Response: IDLE
Response: MDTM
Response: SIZE
Response: MFMT
Response: REST STREAM
Response: MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response: MLSD
Response: AUTH TLS
Response: PBSZ
Response: PROT
Response: UTF8
Response: TVFS
Response: ESTA
Response: PASV
Response: EPSV
Response: SPSV
Response: ESTP
Response: 211 End.