Page 1 of 5
Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-23 18:38
by chromoplastic
I've upgraded to version 3.1.0 and i cannot connect to one of the servers i work width TLS/SSL (it runs Gene6 FTP server). I don't own or access this server other then trough FTP. I can connect to my servers tough (they run Filezilla Server).
It shows this error:
Could not read from transfer socket: ECONNABORTED - Connection aborted
To solve the problem i downgraded to version 3.0.11.1.
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-23 19:24
by botg
Please post a log (using copy and paste, not some screenshot) with debug level set to 4 in the settings dialog.
Furthermore, how many files does the directory you are trying to list contain?
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-23 21:24
by bunnyhero
i'm having exactly the same problem (connection is fine in earlier filezilla client 3.0, error with filezilla client 3.1.0), except that the ftp server software is vsftpd running on freeBSD 6.3.
my log is below (hope it's ok that i starred x'd out the hostname and username). also, that directory contains 79 files and 48 directories.
Code: Select all
Status: Resolving address of xxxxxxxxx.com
Status: Connecting to xxx.xxx.xxx.xxx:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 (vsFTPd 2.0.6)
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 xxxxx
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: OPTS UTF8 ON
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 Always in UTF8 mode.
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 /xxxxxxxxx
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 "/xxxxxxxxx"
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 (xxx,xxx,xxx,xxxx,131,96)
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::OnSend()
Trace: CTlsSocket::OnRead()
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: CTlsSocket::OnRead()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::OnSocketEvent(): close event received
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::TransferEnd()
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 226 Directory send OK.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 2
Trace: state = 7
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
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-23 21:31
by cakruege
same here, I think this is the problem
GnuTLS error -9: A TLS packet with unexpected length was received.
Code: Select all
Status: Resolving address of ftp.servage.net
Status: Connecting to 77.232.67.26:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 FTP Server #5
Trace: CFtpControlSocket::SendNextCommand()
Command: AUTH TLS
Trace: CFtpControlSocket::OnReceive()
Response: 234 AUTH TLS successful
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: CTlsSocket::OnRead()
Trace: CTlsSocket::Handshake()
Trace: Handshake successful
Trace: Cipher: AES-128-CBC, MAC: SHA1
Status: Verifying certificate...
Trace: CFtpControlSocket::SendNextCommand()
Command: USER ******
Status: TLS/SSL connection established.
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 331 Password required for ******
Trace: CFtpControlSocket::SendNextCommand()
Command: PASS ******
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 230 User ****** logged in
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: MDTM
Response: AUTH TLS
Response: PBSZ
Response: PROT
Response: REST STREAM
Response: SIZE
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 211 End
Trace: CFtpControlSocket::SendNextCommand()
Command: PBSZ 0
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 PBSZ 0 successful
Trace: CFtpControlSocket::SendNextCommand()
Command: PROT P
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 Protection set to Private
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Retrieving directory listing...
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::ChangeDirSend()
Command: PWD
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/" is the current directory
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 Type set to I
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 (77,232,67,26,218,235).
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: CTlsSocket::OnSend()
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 150 Opening ASCII mode data connection for file list
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: CTlsSocket::OnRead()
Trace: CTlsSocket::Handshake()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::Handshake()
Trace: Handshake successful
Trace: Cipher: AES-128-CBC, MAC: SHA1
Trace: CTransferSocket::OnConnect
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::OnSocketEvent(): close event received
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::TransferEnd()
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 226 Transfer complete
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 2
Trace: state = 7
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
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-23 22:41
by chromoplastic
Here's the complete log. As you can see, the FTP server is Gene6 FTP Server v3.1.0.
The server root contains 56 directories and 2 files.
Code: Select all
Status: Resolving address of xxxx
Status: Connecting to x.x.x.x:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 Gene6 FTP Server v3.1.0 (Build 70) ready...
Trace: CFtpControlSocket::SendNextCommand()
Command: AUTH TLS
Trace: CFtpControlSocket::OnReceive()
Response: 234 AUTH command ok; starting SSL connection.
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: AES-128-CBC, MAC: SHA1
Status: Verifying certificate...
Trace: CFtpControlSocket::SendNextCommand()
Command: USER xxxxx
Status: TLS/SSL connection established.
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 331 Password required for xxx.
Trace: CFtpControlSocket::SendNextCommand()
Command: PASS ***********
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 230 User xxx logged in.
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-Extensions supported:
Response: AUTH TLS
Response: PBSZ
Response: PROT
Response: CLNT
Response: MDTM
Response: MLST type*;size*;created;modify*;
Response: MODE Z
Response: PASV
Response: REST STREAM
Response: SIZE
Response: SSCN
Response: TVFS
Response: UTF8
Response: XCRC "filename" SP EP
Response: XMD5 "filename" SP EP
Response: 211 End.
Trace: CFtpControlSocket::SendNextCommand()
Command: CLNT FileZilla
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 Noted.
Trace: CFtpControlSocket::SendNextCommand()
Command: OPTS UTF8 ON
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 UTF8 OPTS ON
Trace: CFtpControlSocket::SendNextCommand()
Command: PBSZ 0
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 PBSZ=0
Trace: CFtpControlSocket::SendNextCommand()
Command: PROT P
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 200 PROT command successful.
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Retrieving directory listing...
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::ChangeDirSend()
Command: PWD
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/" is current directory.
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 Type set to I.
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 (x,x,x,x,39,23)
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: CTlsSocket::OnSend()
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 150 Data connection accepted from x.x.x.x:26868; transfer starting.
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: CTlsSocket::OnRead()
Trace: CTlsSocket::Handshake()
Trace: Handshake successful
Trace: Cipher: AES-128-CBC, MAC: SHA1
Trace: CTransferSocket::OnConnect
Trace: CTlsSocket::OnRead()
Trace: CFtpControlSocket::OnReceive()
Response: 226 Transfer ok.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 2
Trace: state = 5
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Trace: state = 8
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::OnSocketEvent(): close event received
Trace: CTransferSocket::OnReceive(), m_transferMode=0
Listing: drw-rw-rw- 1 user group 0 Mar 31 2006 dir01
Listing: drw-rw-rw- 1 user group 0 Jun 30 04:58 dir02
Listing: drw-rw-rw- 1 user group 0 Jul 06 16:57 dir03
Listing: drw-rw-rw- 1 user group 0 Jan 03 05:00 dir04
Listing: drw-rw-rw- 1 user group 0 Jun 27 17:43 dir05
Listing: drw-rw-rw- 1 user group 0 Jun 28 17:41 dir06
Listing: drw-rw-rw- 1 user group 0 Nov 29 2005 dir07
Listing: drw-rw-rw- 1 user group 0 Aug 16 2006 dir08
Listing: drw-rw-rw- 1 user group 0 Nov 29 2005 dir09
Listing: drw-rw-rw- 1 user group 0 Jun 13 2006 dir10
Listing: drw-rw-rw- 1 user group 0 May 30 04:30 dir11
Listing: drw-rw-rw- 1 user group 0 May 15 02:45 dir12
Listing: drw-rw-rw- 1 user group 0 Apr 15 17:24 dir13
Listing: drw-rw-rw- 1 user group 0 Jul 15 06:11 dir14
Listing: drw-rw-rw- 1 user group 0 May 15 17:45 dir15
Listing: drw-rw-rw- 1 user group 0 Jul 20 2007 dir16
Listing: drw-rw-rw- 1 user group 0 Jul 10 04:33 dir17
Listing: drw-rw-rw- 1 user group 0 Jun 04 23:21 dir18
Listing: drw-rw-rw- 1 user group 0 Mar 15 2007 dir19
Listing: drw-rw-rw- 1 user group 0 Mar 26 16:59 dir20
Listing: drw-rw-rw- 1 user group 0 Apr 15 03:04 dir21
Listing: drw-rw-rw- 1 user group 0 Mar 21 2007 dir22
Listing: drw-rw-rw- 1 user group 0 Mar 09 2007 dir23
Listing: drw-rw-rw- 1 user group 0 Oct 29 2007 dir24
Listing: drw-rw-rw- 1 user group 0 Mar 17 20:00 dir25
Listing: drw-rw-rw- 1 user group 0 Mar 14 08:03 dir26
Listing: drw-rw-rw- 1 user group 0 May 15 17:47 dir27
Listing: drw-rw-rw- 1 user group 0 Apr 23 23:27 dir28
Listing: drw-rw-rw- 1 user group 0 May 30 2007 dir29
Listing: drw-rw-rw- 1 user group 0 Sep 21 2006 dir30
Listing: drw-rw-rw- 1 user group 0 May 05 17:23 dir31
Listing: drw-rw-rw- 1 user group 0 Sep 26 2006 dir32
Listing: drw-rw-rw- 1 user group 0 Nov 25 2006 dir33
Listing: drw-rw-rw- 1 user group 0 Mar 06 23:28 dir34
Listing: drw-rw-rw- 1 user group 0 May 15 17:49 dir35
Listing: drw-rw-rw- 1 user group 0 Jun 13 2006 dir36
Listing: drw-rw-rw- 1 user group 0 Nov 25 2006 dir37
Listing: drw-rw-rw- 1 user group 0 May 15 17:49 dir38
Listing: drw-rw-rw- 1 user group 0 Mar 04 00:16 dir39
Listing: drw-rw-rw- 1 user group 0 May 08 14:33 dir40
Listing: drw-rw-rw- 1 user group 0 Jul 16 22:43 dir41
Listing: -rw-rw-rw- 1 user group 2070645 Jul 16 00:40 dir42
Listing: drw-rw-rw- 1 user group 0 Nov 15 2007 dir43
Listing: drw-rw-rw- 1 user group 0 Jul 18 13:17 dir44
Listing: drw-rw-rw- 1 user group 0 Jun 16 22:16 dir45
Listing: -rw-rw-rw- 1 user group 68595506 Jun 07 05:59 dir46
Listing: drw-rw-rw- 1 user group 0 May 29 04:53 dir47
Listing: drw-rw-rw- 1 user group 0 Jan 17 16:22 dir48
Listing: drw-rw-rw- 1 user group 0 Feb 26 16:57 dir49
Listing: drw-rw-rw- 1 user group 0 May 12 02:31 dir50
Listing: drw-rw-rw- 1 user group 0 Sep 26 2006 dir51
Listing: drw-rw-rw- 1 user group 0 Mar 09 2007 dir52
Listing: drw-rw-rw- 1 user group 0 Oct 04 2007 dir53
Listing: drw-rw-rw- 1 user group 0 Jun 01 19:03 dir54
Listing: drw-rw-rw- 1 user group 0 Oct 28 2007 dir55
Listing: drw-rw-rw- 1 user group 0 May 15 17:51 dir56
Listing: drw-rw-rw- 1 user group 0 May 15 17:52 dir57
Listing: drw-rw-rw- 1 user group 0 Jun 29 14:25 dir58
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::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
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-23 22:46
by botg
I cannot reproduce this. Would it be possible to get a temporary guest account on your server to analyze this further?
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-23 22:52
by iqigravity
Same here
client: filezilla 3.1.0
server: filezilla 0.9.26
connection: TLS via LAN on 192.168.2.2
error: directory listing failed (listing is requested from server but seems never to be received?)
log (debug 4):
00:43:30 Status: Verbindung zum Server getrennt
00:43:30 Trace: CFtpControlSocket::ResetOperation(66)
00:43:30 Trace: CControlSocket::ResetOperation(66)
00:43:30 Status: Verbinde mit 192.168.2.2:5658...
00:43:30 Status: Verbindung hergestellt, warte auf Willkommensnachricht...
00:43:30 Trace: CFtpControlSocket::OnReceive()
00:43:30 Antwort: 220-FileZilla Server version 0.9.26 beta
00:43:30 Antwort: 220-
00:43:30 Antwort: 220-###################################
00:43:30 Antwort: 220-###################################
00:43:30 Antwort: 220-
00:43:30 Antwort: 220- W E L C O M E O N
00:43:30 Antwort: 220-
00:43:30 Antwort: 220- I Q I G R A V I T Y ' S
00:43:30 Antwort: 220-
00:43:30 Antwort: 220- H O M E - F T P - S E R V E R
00:43:30 Antwort: 220-
00:43:30 Antwort: 220-###################################
00:43:30 Antwort: 220 ###################################
00:43:30 Trace: CFtpControlSocket::SendNextCommand()
00:43:30 Befehl: AUTH TLS
00:43:30 Trace: CFtpControlSocket::OnReceive()
00:43:30 Antwort: 234 Using authentication type TLS
00:43:30 Status: Initialisiere TLS...
00:43:30 Trace: CTlsSocket::Handshake()
00:43:30 Trace: CTlsSocket::OnRead()
00:43:30 Trace: CTlsSocket::Handshake()
00:43:30 Trace: CTlsSocket::OnSend()
00:43:31 Trace: CTlsSocket::OnRead()
00:43:31 Trace: CTlsSocket::Handshake()
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CTlsSocket::Handshake()
00:43:32 Trace: Handshake successful
00:43:32 Trace: Cipher: AES-128-CBC, MAC: SHA1
00:43:32 Status: Überprüfe Zertifikat...
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Befehl: USER iqigravity
00:43:32 Status: TLS/SSL-Verbindung hergestellt.
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 331 Password required for iqigravity
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Befehl: PASS ********
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 230 Logged on
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Befehl: PBSZ 0
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 200 PBSZ=0
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Befehl: PROT P
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 200 Protection level set to P
00:43:32 Status: Verbunden
00:43:32 Trace: CFtpControlSocket::ResetOperation(0)
00:43:32 Trace: CControlSocket::ResetOperation(0)
00:43:32 Status: Empfange Verzeichnisinhalt...
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::ChangeDirSend()
00:43:32 Befehl: CWD /e
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 250 CWD successful. "/e" is current directory.
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::ChangeDirSend()
00:43:32 Befehl: PWD
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 257 "/e" is current directory.
00:43:32 Trace: CFtpControlSocket::ResetOperation(0)
00:43:32 Trace: CControlSocket::ResetOperation(0)
00:43:32 Trace: CFtpControlSocket::ParseSubcommandResult(0)
00:43:32 Trace: CFtpControlSocket::ListSubcommandResult()
00:43:32 Trace: state = 1
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::TransferSend()
00:43:32 Trace: state = 1
00:43:32 Befehl: TYPE I
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 200 Type set to I
00:43:32 Trace: CFtpControlSocket::TransferParseResponse()
00:43:32 Trace: code = 2
00:43:32 Trace: state = 1
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::TransferSend()
00:43:32 Trace: state = 2
00:43:32 Befehl: PASV
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 227 Entering Passive Mode (192,168,2,2,5,146)
00:43:32 Trace: CFtpControlSocket::TransferParseResponse()
00:43:32 Trace: code = 2
00:43:32 Trace: state = 2
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::TransferSend()
00:43:32 Trace: state = 4
00:43:32 Befehl: LIST
00:43:32 Trace: CTransferSocket::OnConnect
00:43:32 Trace: CTlsSocket::Handshake()
00:43:32 Trace: CTlsSocket::OnSend()
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CTlsSocket::Handshake()
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 150 Connection accepted
00:43:32 Trace: CFtpControlSocket::TransferParseResponse()
00:43:32 Trace: code = 1
00:43:32 Trace: state = 4
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::TransferSend()
00:43:32 Trace: state = 5
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CTlsSocket::Handshake()
00:43:32 Trace: Handshake successful
00:43:32 Trace: Cipher: AES-128-CBC, MAC: SHA1
00:43:32 Trace: CTransferSocket::OnConnect
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CTlsSocket::OnSocketEvent(): pending data, postponing close event
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CTransferSocket::OnReceive(), m_transferMode=0
00:43:32 Trace: CTransferSocket::TransferEnd(1)
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 226 Transfer OK
00:43:32 Trace: CFtpControlSocket::TransferParseResponse()
00:43:32 Trace: code = 2
00:43:32 Trace: state = 5
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::TransferSend()
00:43:32 Trace: state = 8
00:43:32 Trace: CFtpControlSocket::TransferEnd()
00:43:32 Trace: CFtpControlSocket::ResetOperation(0)
00:43:32 Trace: CControlSocket::ResetOperation(0)
00:43:32 Trace: CFtpControlSocket::ParseSubcommandResult(0)
00:43:32 Trace: CFtpControlSocket::ListSubcommandResult()
00:43:32 Trace: state = 2
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::TransferSend()
00:43:32 Trace: state = 2
00:43:32 Befehl: PASV
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 227 Entering Passive Mode (192,168,2,2,5,147)
00:43:32 Trace: CFtpControlSocket::TransferParseResponse()
00:43:32 Trace: code = 2
00:43:32 Trace: state = 2
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::TransferSend()
00:43:32 Trace: state = 4
00:43:32 Befehl: LIST -a
00:43:32 Trace: CTransferSocket::OnConnect
00:43:32 Trace: CTlsSocket::Handshake()
00:43:32 Trace: Skipping socket event 4, id mismatch.
00:43:32 Trace: CTlsSocket::OnSend()
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CTlsSocket::Handshake()
00:43:32 Trace: CTlsSocket::OnRead()
00:43:32 Trace: CFtpControlSocket::OnReceive()
00:43:32 Antwort: 150 Connection accepted
00:43:32 Trace: CFtpControlSocket::TransferParseResponse()
00:43:32 Trace: code = 1
00:43:32 Trace: state = 4
00:43:32 Trace: CFtpControlSocket::SendNextCommand()
00:43:32 Trace: CFtpControlSocket::TransferSend()
00:43:32 Trace: state = 5
00:43:33 Trace: CTlsSocket::OnRead()
00:43:33 Trace: CTlsSocket::Handshake()
00:43:33 Trace: Handshake successful
00:43:33 Trace: Cipher: AES-128-CBC, MAC: SHA1
00:43:33 Trace: CTransferSocket::OnConnect
00:43:33 Trace: CTlsSocket::OnSocketEvent(): pending data, postponing close event
00:43:33 Trace: CTlsSocket::OnRead()
00:43:33 Trace: CTlsSocket::OnRead()
00:43:33 Trace: CFtpControlSocket::OnReceive()
00:43:33 Antwort: 226 Transfer OK
00:43:33 Trace: CFtpControlSocket::TransferParseResponse()
00:43:33 Trace: code = 2
00:43:33 Trace: state = 5
00:43:33 Trace: CFtpControlSocket::SendNextCommand()
00:43:33 Trace: CFtpControlSocket::TransferSend()
00:43:33 Trace: state = 8
---------------------------------------------------------------
it says when i cancel the connection after waiting for listing for 10(!) min:
00:53:42 Fehler: Anzeigen des Verzeichnisinhalts vom Benutzer abgebrochen
(error - directory listing aborted by user)
it has worked with 3.0.11.1 and it is currently working with FlashFXP....only filezilla 3.1.0 has a problem.
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-23 23:00
by botg
iqigravity, you have an entirely different problem. Please don't hijack existing threads with unrelated issues.
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-23 23:09
by iqigravity
hm..ok...just saw the topic in context to my problem
perhaps you can move the post into a more suitable or even new thread?
btw...downgrading to 3.0.11.1 solved the problem for now
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-24 06:24
by Insder
Here is another one. It's vsftpd with required TLS running on a Debian Etch box. Blanked out info, as usual. If an account is required the developer can contact, this issue is not present in the previous version of Filezilla.
Code: Select all
02:19:43 Status: Resolving address of insderftp.com
02:19:43 Status: Connecting to XX.XX.XX.XX:21...
02:19:43 Status: Connection established, waiting for welcome message...
02:19:43 Trace: CFtpControlSocket::OnReceive()
02:19:43 Response: 220 Welcome to InsderFTP! Please upload safely (TLS please!).
02:19:43 Trace: CFtpControlSocket::SendNextCommand()
02:19:43 Command: AUTH TLS
02:19:43 Trace: CFtpControlSocket::OnReceive()
02:19:43 Response: 234 Proceed with negotiation.
02:19:43 Status: Initializing TLS...
02:19:43 Trace: CTlsSocket::Handshake()
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CTlsSocket::Handshake()
02:19:43 Trace: CTlsSocket::OnSend()
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CTlsSocket::Handshake()
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CTlsSocket::Handshake()
02:19:43 Trace: Handshake successful
02:19:43 Trace: Cipher: 3DES-CBC, MAC: SHA1
02:19:43 Status: Verifying certificate...
02:19:43 Trace: CFtpControlSocket::SendNextCommand()
02:19:43 Command: USER insder
02:19:43 Status: TLS/SSL connection established.
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CFtpControlSocket::OnReceive()
02:19:43 Response: 331 Please specify the password.
02:19:43 Trace: CFtpControlSocket::SendNextCommand()
02:19:43 Command: PASS *******
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CFtpControlSocket::OnReceive()
02:19:43 Response: 230 Login successful.
02:19:43 Trace: CFtpControlSocket::SendNextCommand()
02:19:43 Command: OPTS UTF8 ON
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CFtpControlSocket::OnReceive()
02:19:43 Response: 200 Always in UTF8 mode.
02:19:43 Trace: CFtpControlSocket::SendNextCommand()
02:19:43 Command: PBSZ 0
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CFtpControlSocket::OnReceive()
02:19:43 Response: 200 PBSZ set to 0.
02:19:43 Trace: CFtpControlSocket::SendNextCommand()
02:19:43 Command: PROT P
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CFtpControlSocket::OnReceive()
02:19:43 Response: 200 PROT now Private.
02:19:43 Status: Connected
02:19:43 Trace: CFtpControlSocket::ResetOperation(0)
02:19:43 Trace: CControlSocket::ResetOperation(0)
02:19:43 Status: Retrieving directory listing...
02:19:43 Trace: CFtpControlSocket::SendNextCommand()
02:19:43 Trace: CFtpControlSocket::ChangeDirSend()
02:19:43 Command: PWD
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CFtpControlSocket::OnReceive()
02:19:43 Response: 257 "/home/insder"
02:19:43 Trace: CFtpControlSocket::ResetOperation(0)
02:19:43 Trace: CControlSocket::ResetOperation(0)
02:19:43 Trace: CFtpControlSocket::ParseSubcommandResult(0)
02:19:43 Trace: CFtpControlSocket::ListSubcommandResult()
02:19:43 Trace: state = 1
02:19:43 Trace: CFtpControlSocket::SendNextCommand()
02:19:43 Trace: CFtpControlSocket::TransferSend()
02:19:43 Trace: state = 1
02:19:43 Command: TYPE I
02:19:43 Trace: CTlsSocket::OnRead()
02:19:43 Trace: CFtpControlSocket::OnReceive()
02:19:44 Response: 200 Switching to Binary mode.
02:19:44 Trace: CFtpControlSocket::TransferParseResponse()
02:19:44 Trace: code = 2
02:19:44 Trace: state = 1
02:19:44 Trace: CFtpControlSocket::SendNextCommand()
02:19:44 Trace: CFtpControlSocket::TransferSend()
02:19:44 Trace: state = 2
02:19:44 Command: PASV
02:19:44 Trace: CTlsSocket::OnRead()
02:19:44 Trace: CFtpControlSocket::OnReceive()
02:19:44 Response: 227 Entering Passive Mode (XX,XX,XX,XX,181,69)
02:19:44 Trace: CFtpControlSocket::TransferParseResponse()
02:19:44 Trace: code = 2
02:19:44 Trace: state = 2
02:19:44 Trace: CFtpControlSocket::SendNextCommand()
02:19:44 Trace: CFtpControlSocket::TransferSend()
02:19:44 Trace: state = 4
02:19:44 Command: LIST
02:19:44 Trace: CTransferSocket::OnConnect
02:19:44 Trace: CTlsSocket::Handshake()
02:19:44 Trace: Skipping socket event 4, id mismatch.
02:19:44 Trace: CTlsSocket::OnSend()
02:19:44 Trace: CTlsSocket::OnRead()
02:19:44 Trace: CFtpControlSocket::OnReceive()
02:19:44 Response: 150 Here comes the directory listing.
02:19:44 Trace: CFtpControlSocket::TransferParseResponse()
02:19:44 Trace: code = 1
02:19:44 Trace: state = 4
02:19:44 Trace: CFtpControlSocket::SendNextCommand()
02:19:44 Trace: CFtpControlSocket::TransferSend()
02:19:44 Trace: state = 5
02:19:44 Trace: CTlsSocket::OnRead()
02:19:44 Trace: CTlsSocket::Handshake()
02:19:44 Trace: CTlsSocket::OnRead()
02:19:44 Trace: CTlsSocket::Handshake()
02:19:44 Trace: Handshake successful
02:19:44 Trace: Cipher: 3DES-CBC, MAC: SHA1
02:19:44 Trace: CTlsSocket::OnRead()
02:19:44 Trace: CTlsSocket::OnSocketEvent(): close event received
02:19:44 Trace: CTransferSocket::OnConnect
02:19:44 Trace: CTransferSocket::OnReceive(), m_transferMode=0
02:19:44 Listing: drwx------ 9 ftp ftp 4096 Feb 25 04:06 Maildir
02:19:44 Trace: GnuTLS error -9: A TLS packet with unexpected length was received.
02:19:44 Error: Could not read from transfer socket: ECONNABORTED - Connection aborted
02:19:44 Trace: CTransferSocket::TransferEnd(3)
02:19:44 Trace: Skipping socket event 4, no socket or id mismatch.
02:19:44 Trace: Skipping socket event 5, no socket or id mismatch.
02:19:44 Trace: Skipping socket event 5, no socket or id mismatch.
02:19:44 Trace: CFtpControlSocket::TransferEnd()
02:19:44 Trace: CTlsSocket::OnRead()
02:19:44 Trace: CFtpControlSocket::OnReceive()
02:19:44 Response: 226 Directory send OK.
02:19:44 Trace: CFtpControlSocket::TransferParseResponse()
02:19:44 Trace: code = 2
02:19:44 Trace: state = 7
02:19:44 Trace: CFtpControlSocket::ResetOperation(2)
02:19:44 Trace: CControlSocket::ResetOperation(2)
02:19:44 Trace: CFtpControlSocket::ParseSubcommandResult(2)
02:19:44 Trace: CFtpControlSocket::ListSubcommandResult()
02:19:44 Trace: state = 2
02:19:44 Trace: CFtpControlSocket::ResetOperation(2)
02:19:44 Trace: CControlSocket::ResetOperation(2)
02:19:44 Error: Failed to retrieve directory listing
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-24 12:51
by cakruege
botg wrote:I cannot reproduce this. Would it be possible to get a temporary guest account on your server to analyze this further?
check PN
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-24 19:38
by jstuyts
Insder wrote:Here is another one. It's vsftpd with required TLS running on a Debian Etch box.
I have the same server setup and encountered the issue too. I saw that a number of logs have already been posted so I feel another one is unnecessary. If anyone is interested in my log, let me know and I will post it too.
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-24 20:16
by gosu
I have the same problem on hetzner(.de)-servers.
it allways worked great till version 3.1.0
are there any news about this issue?
thanx a lot for your help!
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-24 20:52
by kiekar
Hello,
I just wanted to say that I had the same problem as chromoplastic's post.
I did exactly what he did by reverting back to version 3.0.11.1. All is working fine now.
Karl
Re: Can't connect with TLS/SSL in version 3.1.0
Posted: 2008-07-24 21:18
by botg
This isn't a bug in FileZilla.
It is a bug in your server, it does not perform an orderly SSL/TLS shutdown like it's supposed to do.