FTP Data Handshake failed

Website URL

When trying to connect to upload files to Htdocs using FileZilla or other ftp clients I get the subject error and -21468993052 followed by ABOR.

This has occured for past 2 weeks

Please provide full ftp logs

6 Likes

Status: Connecting to 185.27.134.11:21…
Status: Connection established, initializing TLS…
Error: GnuTLS error -15: An unexpected TLS packet was received.
Status: Connection attempt failed with “ECONNABORTED - Connection aborted”.
Error: Could not connect to server
Status: Waiting to retry…
Status: Resolving address of ftpupload.net
Status: Connecting to 185.27.134.11:21…
Status: Connection established, initializing TLS…
Error: GnuTLS error -15: An unexpected TLS packet was received.
Status: Connection attempt failed with “ECONNABORTED - Connection aborted”.
Error: Could not connect to server

What is the TLS version?

5 Likes

Same as your screenshot

Can you go through these?

5 Likes

If I use a different client - I can connect but can’t see files.

In FZ I now get:

21:51:33 Status: Logged in
21:51:33 Status: Retrieving directory listing…
21:51:33 Command: PWD
21:51:33 Response: 257 / is your current location
21:51:33 Command: TYPE I
21:51:33 Response: 200 TYPE is now 8-bit binary
21:51:33 Command: PASV
21:51:34 Response: 227 Entering Passive Mode (185,27,134,11,164,193)
21:51:34 Command: MLSD
21:51:34 Error: GnuTLS error -110: The TLS connection was non-properly terminated.
21:51:34 Status: Server did not properly shut down TLS connection
21:51:34 Error: The data connection could not be established: ECONNABORTED - Connection aborted

FZ connects occasionally - but can’t upload files

22:26:39 Status: Resolving address of ftpupload.net
22:26:39 Status: Connecting to 185.27.134.11:21…
22:26:39 Status: Connection established, waiting for welcome message…
22:26:40 Status: Initializing TLS…
22:26:41 Status: TLS connection established.
22:26:42 Status: Logged in
22:26:42 Status: Starting upload of C:\Temp\UKRAILMAPS WEBPAGE\index2.html
22:26:43 Status: Retrieving directory listing of /htdocs…
22:26:43 Command: TYPE I
22:26:43 Response: 200 TYPE is now 8-bit binary
22:26:43 Command: PORT 192,168,1,108,252,92
22:26:43 Response: 500 I won’t open a connection to 192.168.1.108 (only to 122.150.228.33)
22:26:43 Command: PASV
22:26:43 Response: 227 Entering Passive Mode (185,27,134,11,144,197)
22:26:43 Command: MLSD
22:26:44 Response: 150 Accepted data connection
22:26:44 Response: 226-Options: -a -l
22:26:44 Response: 226 92 matches total
22:26:55 Command: TYPE A
22:26:56 Response: 200 TYPE is now ASCII
22:26:56 Command: PORT 192,168,1,108,252,113
22:26:56 Response: 500 I won’t open a connection to 192.168.1.108 (only to 122.150.228.33)
22:26:56 Command: PASV
22:26:56 Response: 227 Entering Passive Mode (185,27,134,11,180,38)
22:26:56 Command: STOR index2.html
22:26:57 Error: GnuTLS error -110: The TLS connection was non-properly terminated.
22:26:57 Status: Server did not properly shut down TLS connection
22:26:57 Error: The data connection could not be established: ECONNABORTED - Connection aborted
22:27:23 Response: 421 Timeout
22:27:23 Error: File transfer failed

Some strange things are happening with your FTP connection. The initial connection succeeds, but switching to Passive Mode to do the data transfer doesn’t work.

My best guess is that this might be a firewall or virus scanner in between messing with the connection and breaking it.

Can you please try connecting from a different device or network?

6 Likes

Hi - Thanks for the response
I have tried with and without firewall enabled both DOmain and Private - Also with VPN on / off and via another device altogether and still cannot see files.
Other device says FTP Port command failed; which appears to be the same issue.

I noticed that too, but I skipped over it for brevity.

The thing is that the PORT command is associated with Active FTP mode. The error message you see there is exactly what you’d expect to see when you try to use Active FTP on a residential connection: it doesn’t work. Passive FTP exists exactly for that reason, but passive FTP does not use the PORT command.

It does appear to use Passive FTP afterward, which is odd, because I was under the impression that you can tell FileZilla to only use one of the two, it won’t try both.

5 Likes

As an off chance I uninstalled / reinstall AVG - seems to have resolved the issue with my other client.
FileZilla still does not work even though I uninstalled / reinstalled it.

Virus scanners can also intentionally block or unintentionally break FTP connections, especially if they come with features that intercept and inspect all network traffic. It’s possible that AVG is also causing the issues you have with FileZilla.

5 Likes

WinSCP connects and I see /htdocs but when I try to STOR files I get dialogue box with:

Timeout detected. (control connection)
Copying files to remote side failed.

OK - So I changed to an old SurfacePro and the same thing is happening. No Antivirus installed on it - No firewall enabled. I have also changed from the modem to my phones hotspot connection.

I have to think the issue is at the server.
If I do get the file list and try to delete a file I get put into passive mode then MLSD and file list disappears

How long does it take between the file listing to appear and you initiating the file upload or delete? If it’s more than 20 seconds, then the connection is closed by the server. The server has a finite number of connection slots, so we don’t want people to keep slots occupied while they are not using them.

That’s completely normal behavior. If that happens, just disconnect and reconnect and continue from there. FileZilla has buttons to do that right next to each other in that bar of icons at the top of the screen.

If so, there is no server problem and no connection problem. Just a little bit of expectation management (and FTP clients generally not handling dropped connections very well).

4 Likes

Once it fails (taking more than 20 secs) then I find I cannot reconnect at all (I only ever see around 600 slots of 6900 used so maybe 20 secs is too low). I never had this problem in Canada - but maybe the Australian internet connection is much slower.

I don’t think we quite understand each other.

Once the connection drops, FileZilla is very bad in detection that and will take a long time to detect the failure. That’s why you should manually disconnect and reconnect (using the buttons I referred to before) when you try to do some FTP operation and it appears to be “stuck”.

On a fresh connection, or a freshly reconnected connection, you should have no problem managing your files.


The number of available connection slots is much higher than is needed for day to day operations, yes. But due to circumstances, sometimes there are big spikes in FTP usage. Last time that happened, all the connection slots got used up and many people were unable to connect due to congestion, leaving them without access to their files when they needed it most.

So our FTP server is set up to be able to handle these spikes in usage. That’s why the limit is much higher than it needs to be, and why we are not going to use that capacity just so people can fill them with idle connections (i.e. increase the inactivity timeout).

5 Likes

Hi

I understand.
Not sure how I go forward now - I get
Connect OK!
CWD / htdocs

250 OK. Current directory is /htdocs
PWD
257 “/htdocs” is your current location
Get directory
TYPE A
200 Type is now ASCII
PASV
227 Entering Passive Mode (185.27.134.11.62.135)
Connected to PASV port
MLSD
Data handshake failed -2146893052
ABOR

I see /htdocs - but no files and connection is lost

As I result I am unabel to maintain / update my webpage