Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 431404

Summary: net-ftp/filezilla-3.5.3 and 3.6.0: FTPES upload with TLS data connection always times out after fixed number of bytes sent
Product: Gentoo Linux Reporter: Andreas Prieß <ap>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED FIXED    
Severity: normal CC: net-ftp
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://trac.filezilla-project.org/ticket/7837
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
Filezilla debug log with upload failing multiple times
Filezilla-3.6.0 with GnuTLS 3.1.4 debug log with upload failing multiple times

Description Andreas Prieß 2012-08-14 16:37:47 UTC
File uploads with FTPES over a TLS data conection always fail after 144 KB are sent. A timeout occurs and filezilla resumes the upload just to fail again after another 144 KB sent.

The problem is reported in the filezilla bug tracker here:
http://trac.filezilla-project.org/ticket/7837

The Problem is also discussed in the filezilla forum at diffenent locations, most specifically here:
http://forum.filezilla-project.org/viewtopic.php?f=2&t=23600&start=15

So it seems to come down to changes in GnuTLS that are not yet reflected in the way filezilla uses the library.

In my case the problem occurs with a vsftpd-3.0.0 server. It works from the same client host with lftp. Since different peolpe have reported the problem with different ftp servers, with and without firewalls, it probably is not a problem on the network / firewall / router level.

Reproducible: Always

Steps to Reproduce:
To reproduce connect to a FTP server like vsftpd, that is configured to encrypt both the control and the data connection with SSL/TLS, in mode FTP(E)S. Then try to upload a large file (over 1 MB should be sufficient to trigger the problem).
Comment 1 Andreas Prieß 2012-08-14 16:39:11 UTC
Created attachment 321338 [details]
emerge --info
Comment 2 Andreas Prieß 2012-08-14 16:40:32 UTC
Created attachment 321340 [details]
Filezilla debug log with upload failing multiple times
Comment 3 Bernard Cafarelli gentoo-dev 2012-11-11 21:02:09 UTC
Can you try with 3.6.0 (I just added it to tree, it should appear soon in your rsync) + gnutls-3.1? Changelog for 3.6.0 indicates TLS fixes/enhancements with gnutls-3.x
Comment 4 Andreas Prieß 2012-11-12 17:23:32 UTC
(In reply to comment #3)
> Can you try with 3.6.0 (I just added it to tree, it should appear soon in
> your rsync) + gnutls-3.1? Changelog for 3.6.0 indicates TLS
> fixes/enhancements with gnutls-3.x

It also does not work with version 3.6.0 and GnuTLS 3.1.4.
Same problem as before, I'm going to attach a new log.

Filezilla 3.6.0 builds with GnuTLS 2.12.20, but fails to connect immediately:

Status:	Initializing TLS...
Error:	GnuTLS error -50: The request is invalid.
Error:	Failed to initialize TLS.
Error:	Could not connect to server

So the ebuild should probably require GnuTLS > 3.1.
Comment 5 Andreas Prieß 2012-11-12 17:27:48 UTC
Created attachment 329358 [details]
Filezilla-3.6.0 with GnuTLS 3.1.4 debug log with upload failing multiple times
Comment 6 Bernard Cafarelli gentoo-dev 2012-11-15 09:49:34 UTC
Well, it was worth the try... Thanks for the version check on gnutls, I updated the ebuild to require >=3.1

Let's see if the bug update upstream will help
Comment 7 Bernard Cafarelli gentoo-dev 2012-11-30 16:31:38 UTC
3.6.0.2 mentions "Fix problems with stalling FTP over TLS uploads". Let's cross fingers for this new version (I just added it to tree)
Comment 8 Andreas Prieß 2012-12-07 12:57:49 UTC
The Problem is fixed in filezilla 3.6.0.2.
Tested with gnutls-3.1.5 on amd64.