Opened 16 years ago

Last modified 10 years ago

#3610 closed Bug report

FTPES - Failed retrieve directory listing

Reported by: geki007 Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: geki007, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

The LOG:

Status: Disconnected from server
Status: Resolving address of test.test.com
Status: Connecting to xxx.xxx.xxx.xxx:21...
Status: Connection established, waiting for welcome message...
Response: 220 Welcome on the test
Command: AUTH TLS
Response: 234 Proceed with negotiation.
Status: Initializing TLS...
Status: Verifying certificate...
Command: USER testuser
Status: TLS/SSL connection established.
Response: 331 Please specify the password.
Command: PASS
Response: 230 Login successful.
Command: PBSZ 0
Response: 200 PBSZ set to 0.
Command: PROT P
Response: 200 PROT now Private.
Status: Connected
Status: Retrieving directory listing...
Command: CWD /
Response: 250 Directory successfully changed.
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (xxx,xxx,xxx,xxx,xxx,xxx)
Command: LIST
Response: 150 Here comes the directory listing.

Error: Could not read from transfer socket: ECONNABORTED - Connection aborted
Response: 226 Directory send OK.
Error: Failed to retrieve directory listing

Server: Debian with VSFtp
My PC: WinXP Pro, FileZilla_3.1.0-rc1_win32-setup.exe

With FTP-Mode it works on this server.
With FileZilla_3.0.11.1_win32-setup.exe it works to.

Change History (12)

comment:1 by Tim Kosse, 16 years ago

How many files are in the directory it tries to list?

Furthermore, please attach a log with debug level set to 4 in the settings dialog.

comment:2 by geki007, 16 years ago

Only 6 subdirectories in the directory!

Debug Level 4 LOG:

Status: Resolving address of *
Status: Connecting to
*:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 Welcome on the *
Trace: CFtpControlSocket::SendNextCommand()
Command: AUTH TLS
Trace: CFtpControlSocket::OnReceive()
Response: 234 Proceed with negotiation.
Status: Initializing TLS...
Trace: CTlsSocket::Handshake()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::Handshake()
Trace: CTlsSocket::OnSend()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::Handshake()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::Handshake()
Trace: Handshake successful
Trace: Cipher: 3DES-CBC, MAC: SHA1
Status: Verifying certificate...
Trace: CFtpControlSocket::SendNextCommand()
Command: USER
*
Status: TLS/SSL connection established.
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 331 Please specify the password.
Trace: CFtpControlSocket::SendNextCommand()
Command: PASS
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 230 Login successful.
Trace: CFtpControlSocket::SendNextCommand()
Command: SYST
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 215 UNIX Type: L8
Trace: CFtpControlSocket::SendNextCommand()
Command: FEAT
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 211-Features:
Response: AUTH SSL
Response: AUTH TLS
Response: EPRT
Response: EPSV
Response: MDTM
Response: PASV
Response: PBSZ
Response: PROT
Response: REST STREAM
Response: SIZE
Response: TVFS
Response: 211 End
Trace: CFtpControlSocket::SendNextCommand()
Command: PBSZ 0
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 PBSZ set to 0.
Trace: CFtpControlSocket::SendNextCommand()
Command: PROT P
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 PROT now Private.
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Retrieving directory listing...
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::ChangeDirSend()
Command: CWD /
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 250 Directory successfully changed.
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::ChangeDirSend()
Command: PWD
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/"
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::ParseSubcommandResult(0)
Trace: CFtpControlSocket::ListSubcommandResult()
Trace: state = 1
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Trace: state = 1
Command: TYPE I
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 Switching to Binary mode.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 2
Trace: state = 1
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Trace: state = 2
Command: PASV
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 227 Entering Passive Mode (
*)
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 2
Trace: state = 2
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Trace: state = 4
Command: LIST
Trace: CTransferSocket::OnConnect
Trace: CTlsSocket::Handshake()
Trace: Skipping socket event 4, id mismatch.
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::OnSend()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::Handshake()
Trace: CFtpControlSocket::OnReceive()
Response: 150 Here comes the directory listing.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 1
Trace: state = 4
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Trace: state = 5
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::Handshake()
Trace: Handshake successful
Trace: Cipher: 3DES-CBC, MAC: SHA1
Trace: CTransferSocket::OnConnect
Trace: CTransferSocket::OnConnect
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::OnSocketEvent(): close event received
Trace: CTlsSocket::OnRead()
Trace: CTransferSocket::OnReceive(), m_transferMode=0
Trace: GnuTLS error -9: A TLS packet with unexpected length was received.
Error: Could not read from transfer socket: ECONNABORTED - Connection aborted
Trace: CTransferSocket::TransferEnd(3)
Trace: Skipping socket event 5, no socket or id mismatch.
Trace: Skipping socket event 5, no socket or id mismatch.
Trace: CFtpControlSocket::OnReceive()
Response: 226 Directory send OK.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 2
Trace: state = 5
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Trace: state = 8
Trace: CFtpControlSocket::TransferEnd()
Trace: CFtpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(2)
Trace: CFtpControlSocket::ParseSubcommandResult(2)
Trace: CFtpControlSocket::ListSubcommandResult()
Trace: state = 2
Trace: CFtpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(2)
Error: Failed to retrieve directory listing

comment:3 by Tim Kosse, 16 years ago

Your configuration seems to be improper. Please run the network
configuration wizard and follow its instructions.

As long as the test at the end of the wizard fails, your
configuration is not correct.

Without a successful test, correct transfers cannot be guaranteed.

Reopen only if the test succeeds and the problem did not go away.

comment:4 by geki007, 16 years ago

on rc2 it also dosn't work
my network wizard settings are correct

comment:5 by Tim Kosse, 16 years ago

Would it be possible to get a temporary guest account on your server?

comment:6 by geki007, 16 years ago

no sorry its only for internally use and blocked by a firewall

comment:7 by Tim Kosse, 16 years ago

Which Debian version? Which version of vsftpd? Which version of OpenSSL?

comment:8 by geki007, 16 years ago

Same on the Final 3.1!
Debian Version: Linux 2.6.18-5-vserver-amd64 #1 SMP Sat Dec 22 21:20:51 UTC 2007 x86_64 GNU/Linux
VSFTPD: 2.0.5-2
openssl: 0.9.8c-4etch3

VSFTPD is on a VSERVER not on the real SERVER.

Have a look at this page, it could be related to our problem!
http://www.mail-archive.com/lftp@uniyar.ac.ru/msg02370.html

comment:9 by Tim Kosse, 16 years ago

And if one million users have this problem, if I cannot reproduce it, I cannot fix this.

comment:10 by geki007, 16 years ago

In your forum is someone who can give you an testaccount :
"If an account is required the developer can contact"
I hope it helps!

http://forum.filezilla-project.org/viewtopic.php?f=2&t=7465

comment:11 by Tim Kosse, 16 years ago

I have reason to believe that this is a problem in vsftpd and that older versions of FileZilla just did not detect the error condition properly.

comment:12 by Tim Kosse, 16 years ago

This is a bug in the server, it does not perform an orderly TLS shutdown like it's supposed to do.

Note: See TracTickets for help on using tickets.