Very slow upload over TLS on Linux

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

Moderator: Project members

Locked
Message
Author
fingust
500 Command not understood
Posts: 1
Joined: 2018-12-25 15:51

Very slow upload over TLS on Linux

#1 Post by fingust » 2018-12-25 16:21

I am running my own VPS and ever since I've enabled TLS encryption on my vsFTPd, filezilla takes forever to upload files that are a few Kb in size and sometimes marks the upload as failed even tho the file actually uploaded and sometimes asks me if I want to overwrite the file that I am uploading into an empty folder, as if the file was already uploaded.

In the queue log the progress bar for uploading will reach 100% and will stay there until the connection times out after 20 seconds. Then it retries to upload the same file. What's really weird is that sometimes the file actually transfers even tho the filezilla says it failed, but not always.

Now I know the problem is not on the server side because this only happens on the linux version of filezilla (I am running Mint 19), windows version on the same machine works flawlessly, and I had a friend of mine tried it from his PC and it works for him too, so that rules out the server.

Here is the log from uploading 1.1 KB php file, which took over a minute (I've changed the domain name, server IP and local paths for security reasons):

Code: Select all

Status:	Resolving address of my.example.com
Status:	Connecting to server_ip_here:21...
Status:	Connection established, waiting for welcome message...
Status:	Initializing TLS...
Status:	Verifying certificate...
Status:	TLS connection established.
Status:	Logged in
Status:	Retrieving directory listing...
Status:	Directory listing of "/" successful
Status:	Retrieving directory listing of "/test"...
Status:	Directory listing of "/test" successful
Status:	Resolving address of my.example.com
Status:	Connecting to server_ip_here:21...
Status:	Connection established, waiting for welcome message...
Status:	Initializing TLS...
Status:	Verifying certificate...
Status:	TLS connection established.
Status:	Logged in
Status:	Starting upload of /mnt/HDD0/index.php
Command:	CWD /test
Response:	250 Directory successfully changed.
Command:	PWD
Response:	257 "/test" is the current directory
Command:	TYPE A
Response:	200 Switching to ASCII mode.
Command:	PASV
Response:	227 Entering Passive Mode (207,180,202,67,42,41).
Command:	STOR index.php
Response:	150 Ok to send data.
Error:	Connection timed out after 20 seconds of inactivity
Error:	File transfer failed
Status:	Disconnected from server
Status:	Resolving address of my.example.com
Status:	Connecting to server_ip_here:21...
Status:	Connection established, waiting for welcome message...
Status:	Initializing TLS...
Status:	Verifying certificate...
Status:	TLS connection established.
Status:	Logged in
Status:	Starting upload of /mnt/HDD0/index.php
Status:	Retrieving directory listing of "/test"...
Status:	Calculating timezone offset of server...
Status:	Timezone offset of server is 0 seconds.
Command:	TYPE A
Response:	200 Switching to ASCII mode.
Command:	PASV
Response:	227 Entering Passive Mode (207,180,202,67,40,223).
Command:	STOR index.php
Error:	Connection timed out after 20 seconds of inactivity
Error:	File transfer failed
Status:	Disconnected from server
Status:	Resolving address of my.example.com
Status:	Connecting to server_ip_here:21...
Status:	Connection established, waiting for welcome message...
Status:	Initializing TLS...
Status:	Verifying certificate...
Status:	TLS connection established.
Status:	Logged in
Status:	Starting upload of /mnt/HDD0/index.php
Status:	Retrieving directory listing of "/test"...
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	227 Entering Passive Mode (207,180,202,67,42,197).
Command:	LIST -a
Response:	150 Here comes the directory listing.
Response:	226 Directory send OK.
Command:	TYPE A
Response:	200 Switching to ASCII mode.
Command:	PASV
Response:	227 Entering Passive Mode (207,180,202,67,40,110).
Command:	STOR index.php
Error:	Connection timed out after 20 seconds of inactivity
Error:	File transfer failed
I've tried disabling firewalls on both sides, didn't help.

Edit: I've just tried it again on my laptop which is running Xubuntu 18.04 and it suffers from the same issue, so it appears that the problem is Linux specific.

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

Re: Very slow upload over TLS on Linux

#2 Post by botg » 2018-12-27 08:36


Locked