FTPES disconnects
Moderator: Project members
FTPES disconnects
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
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
Re: FTPES disconnects
Is there any pattern in the used ports when this happens?
Re: FTPES disconnects
None that I can see, here are some of the ports it has happened on.botg wrote:Is there any pattern in the used ports when this happens?
11593
15938
29794
32309
35934
37067
37194
38009
39529
42719
44780
57329
60612
61427
62446
64492
65333
Re: FTPES disconnects
Which version of GnuTLS is FileZilla linked against?
Re: FTPES disconnects
I'm running Windows 7, so it comes with the one you included, version 2.10.4.botg wrote:Which version of GnuTLS is FileZilla linked against?
Re: FTPES disconnects
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.
Re: FTPES disconnects
I have no firewall or antivirus on my system, any firewall-like settings are disabled within my router.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 suppose I could try without the router entirely.
Re: FTPES disconnects
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.
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.
Re: FTPES disconnects
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?
For clarification, which versions of vsftpd were you testing against?
Re: FTPES disconnects
I've tried versions 2.2.2, 2.3.5 and 3.0.0, it happens on all of them.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?
Re: FTPES disconnects
Weird. I'll try to reproduce it.
Re: FTPES disconnects
Any update on this?botg wrote:Weird. I'll try to reproduce it.
Thanks
Re: FTPES disconnects
Cannot reproduce
-
- 500 Syntax error
- Posts: 16
- Joined: 2012-02-16 08:16
- First name: Sachin
- Last name: Shetty
Re: FTPES disconnects
Did we find any solution to this problem? I am hitting the same problem with FTPS and exactly at an hour
Re: FTPES disconnects
Read the post directly above yours. The developer cannot reproduce (and thus not fix/explain) the problem.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org