FTPES disconnects

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Message
Author
xeon
226 Transfer OK
Posts: 128
Joined: 2009-08-19 03:18

FTPES disconnects

#1 Post by xeon » 2012-06-23 04:08

Hello,

I am getting seemingly random disconnects when using FTPES with any version of vsftpd.

It seems to happen randomly when opening a data connection for a file download.

It will close the connection then automatically reconnect and start the transfer again.

Here are the relevant logs showing what I described above.

23:53:49 Status: Starting download of /test/test.mkv
23:53:49 Command: PASV
23:53:49 Response: 227 Entering Passive Mode (68,21,121,188,255,165).
23:53:49 Command: RETR test.mkv
23:53:49 Response: 150 Opening BINARY mode data connection for test.mkv (452398571 bytes).
23:53:49 Error: GnuTLS error -59: GnuTLS internal error.
23:53:49 Error: Transfer connection interrupted: ECONNABORTED - Connection aborted
23:53:49 Error: GnuTLS error -8: A record packet with illegal version was received.
23:53:49 Error: Disconnected from server: ECONNABORTED - Connection aborted
23:53:49 Error: File transfer failed

23:53:49 Status: Connecting to 68.21.121.188:21...
23:53:49 Status: Connection established, waiting for welcome message...
23:53:49 Response: 220 (vsFTPd 3.0.0)
23:53:49 Command: AUTH TLS
23:53:49 Response: 234 Proceed with negotiation.
23:53:49 Status: Initializing TLS...
23:53:50 Status: Verifying certificate...
23:53:50 Command: USER testing
23:53:50 Status: TLS/SSL connection established.
23:53:50 Response: 331 Please specify the password.
23:53:50 Command: PASS **************
23:53:50 Response: 230 Login successful.
23:53:50 Command: OPTS UTF8 ON
23:53:50 Response: 200 Always in UTF8 mode.
23:53:50 Command: PBSZ 0
23:53:50 Response: 200 PBSZ set to 0.
23:53:50 Command: PROT P
23:53:50 Response: 200 PROT now Private.
23:53:50 Status: Connected
23:53:50 Status: Starting download of /test/test.mkv
23:53:50 Command: CWD /test
23:53:50 Response: 250 Directory successfully changed.
23:53:50 Command: TYPE I
23:53:50 Response: 200 Switching to Binary mode.
23:53:50 Command: PASV
23:53:50 Response: 227 Entering Passive Mode (68,21,121,188,140,26).
23:53:50 Command: RETR test.mkv
23:53:50 Response: 150 Opening BINARY mode data connection for test.mkv (452398571 bytes).
23:55:20 Response: 226 Transfer complete.
23:55:20 Status: File transfer successful, transferred 452,398,571 bytes in 90 seconds

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

Re: FTPES disconnects

#2 Post by botg » 2012-06-23 21:39

Is there any pattern in the used ports when this happens?

xeon
226 Transfer OK
Posts: 128
Joined: 2009-08-19 03:18

Re: FTPES disconnects

#3 Post by xeon » 2012-06-23 23:45

botg wrote:Is there any pattern in the used ports when this happens?
None that I can see, here are some of the ports it has happened on.

11593
15938
29794
32309
35934
37067
37194
38009
39529
42719
44780
57329
60612
61427
62446
64492
65333

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

Re: FTPES disconnects

#4 Post by botg » 2012-06-24 06:54

Which version of GnuTLS is FileZilla linked against?

xeon
226 Transfer OK
Posts: 128
Joined: 2009-08-19 03:18

Re: FTPES disconnects

#5 Post by xeon » 2012-06-24 19:15

botg wrote:Which version of GnuTLS is FileZilla linked against?
I'm running Windows 7, so it comes with the one you included, version 2.10.4.

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

Re: FTPES disconnects

#6 Post by botg » 2012-06-25 06:00

The error being sporadic could indicate some firewall interfering with the connection on certain octet sequences. For a test, try getting rid of all firewalls or programs with firewall-like functionality.

xeon
226 Transfer OK
Posts: 128
Joined: 2009-08-19 03:18

Re: FTPES disconnects

#7 Post by xeon » 2012-06-25 17:41

botg wrote:The error being sporadic could indicate some firewall interfering with the connection on certain octet sequences. For a test, try getting rid of all firewalls or programs with firewall-like functionality.
I have no firewall or antivirus on my system, any firewall-like settings are disabled within my router.

I suppose I could try without the router entirely.

xeon
226 Transfer OK
Posts: 128
Joined: 2009-08-19 03:18

Re: FTPES disconnects

#8 Post by xeon » 2012-06-28 16:36

I did some more testing today and I'm now able to reproduce it consistently.

It seems to happen approximately every 1 hour when transferring a folder full of 600MB files the entire time over FTPES.

I have no firewall/antivirus or any 'security' software on my system.

I also completely removed my router, so I'm connected directly from my modem.

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

Re: FTPES disconnects

#9 Post by botg » 2012-06-28 19:28

This seems weird, there's no time-based code in the TLS code of FileZilla that could cause this. My first guess would be a problem with the TLS session resuming not working quite as advertised.

For clarification, which versions of vsftpd were you testing against?

xeon
226 Transfer OK
Posts: 128
Joined: 2009-08-19 03:18

Re: FTPES disconnects

#10 Post by xeon » 2012-06-28 19:45

botg wrote:This seems weird, there's no time-based code in the TLS code of FileZilla that could cause this. My first guess would be a problem with the TLS session resuming not working quite as advertised.

For clarification, which versions of vsftpd were you testing against?
I've tried versions 2.2.2, 2.3.5 and 3.0.0, it happens on all of them.

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

Re: FTPES disconnects

#11 Post by botg » 2012-06-29 06:33

Weird. I'll try to reproduce it.

xeon
226 Transfer OK
Posts: 128
Joined: 2009-08-19 03:18

Re: FTPES disconnects

#12 Post by xeon » 2012-08-09 08:32

botg wrote:Weird. I'll try to reproduce it.
Any update on this?

Thanks

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

Re: FTPES disconnects

#13 Post by botg » 2012-08-11 09:37

Cannot reproduce :(

sachintheonly
500 Syntax error
Posts: 16
Joined: 2012-02-16 08:16
First name: Sachin
Last name: Shetty

Re: FTPES disconnects

#14 Post by sachintheonly » 2012-09-22 19:04

Did we find any solution to this problem? I am hitting the same problem with FTPS and exactly at an hour

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

Re: FTPES disconnects

#15 Post by boco » 2012-09-22 19:51

Read the post directly above yours. The developer cannot reproduce (and thus not fix/explain) the problem.
### 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.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

Post Reply