You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to upload a file to a FileZilla Server on my local machine using TLS I get the following error:
425 Error while transfering data: ECONNABORTED - Connection aborted
The file seems to be uploaded correctly, but the FTPStatus is failed.
This is possibly a duplicate / closely related to #771, which is still open but supposedly was fixed.
Code:
FtpClient client = new FtpClient(url, login, password);
//TODO: UNSAFE!
client.ValidateAnyCertificate = true;
// connect to the server and automatically detect working FTP settings
client.AutoConnect();
var response = client.UploadStream(ms, filepath, FtpRemoteExists.Overwrite);
// disconnect! good bye!
client.Disconnect();
Logs :
FluentFTP:
# UploadStream("Test/Hello World2.txt", Overwrite, False)
# FileExists("Test/Hello World2.txt")
Command: PWD
Response: 257 "/" is current directory.
Command: SIZE /Test/Hello World2.txt
Response: 213 50320
# DeleteFile("Test/Hello World2.txt")
Command: DELE Test/Hello World2.txt
Response: 250 File deleted successfully.
# OpenWrite("Test/Hello World2.txt", Binary)
# GetFileSize("Test/Hello World2.txt")
Command: SIZE Test/Hello World2.txt
Response: 550 Couldn't open the file or directory
Command: TYPE I
Response: 200 Type set to I
# OpenPassiveDataStream(PASV, "STOR Test/Hello World2.txt", 0)
Command: PASV
Response: 227 Entering Passive Mode (127,0,0,1,25,39)
Status: Connecting to ***:6439
Command: STOR Test/Hello World2.txt
Response: 150 Starting data transfer.
Status: FTPS Authentication Successful
Status: Time to activate encryption: 0h 0m 0s. Total Seconds: 0,0029907.
Status: Disposing FtpSocketStream...
Response: 425 Error while transfering data: ECONNABORTED - Connection aborted
Command: QUIT
Response: 221 Goodbye.
Status: Disposing FtpSocketStream...
Nearly a month ago PR #944 addressed exactly this problem. Merged into master on September 10.
It came into Nuget Release V41.0.0 on October 2.
#944 explicitely mentions the wrong order of ssl stream shutdown, as seen from a vsftp server. This happened on any server type - and each server type reacts differently to this. Some more lenient and some less so.
If you read #944 and also read the article mentioned therein (this), you will agree it is the same problem as yours.
FTP OS: Windows 10
FTP Server: FileZilla Server 1.5.1
Computer OS: Windows 10
FluentFTP Version: 39.4.0
Framework: .NET Framework 4.8
When I try to upload a file to a FileZilla Server on my local machine using TLS I get the following error:
425 Error while transfering data: ECONNABORTED - Connection aborted
The file seems to be uploaded correctly, but the FTPStatus is failed.
This is possibly a duplicate / closely related to #771, which is still open but supposedly was fixed.
Code:
Logs :
FluentFTP:
FileZilla Server:
The text was updated successfully, but these errors were encountered: