-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
425 Error while transfering data: ECONNABORTED - Connection aborted #41
Comments
|
1# PS C:\Users\itapksu> get-package -Name Transferetto
Name Version Source ProviderName
---- ------- ------ ------------
Transferetto 1.0.0 https://www.powershellgallery.c… PowerShellGet
PS C:\Users\itapksu> get-package -Name FluentFTP
Name Version Source ProviderName
---- ------- ------ ------------
FluentFTP 50.0.1 C:\Program Files\PackageManagem… NuGet
PS C:\Users\itapksu> Not sure if that what you ment 2# 3# Here is a now run, after getting the FluentFTP package installed. PS C:\Users\itapksu> $SQLFileName = $SQlfile.Name
$RemoteUploadPath = "./Download/DBL_Sql_Dump/"
$SQLRemotepath = $RemoteUploadPath + $SQLFileName
Send-FTPFile -Client $Client -LocalPath $SQLFile.FullName -RemotePath $SQLRemotepath -ErrorVariable MyError -ErrorHandling Throw -RemoteExists Overwrite
$TransferControl = Test-FTPFile -Client $Client -RemotePath $SQLRemotepath -ErrorVariable MyError -ErrorAction Continue
$RemoteFile = Get-FTPList -Client $Client -Path $RemoteUploadPath | Where-Object { $_.Name -like "*$SQLFileName*" }
$RemoteFile = $RemoteFile
$SQLFileDOY = $SQLFile.LastWriteTime.DayOfYear
$RemoteFileDOY = $RemoteFile.Modified.DayOfYear
if(($TransferControl -eq $true) -and ($SQLFileDOY -eq $RemoteFileDOY)){
#Deletion is complete
Write-Host "Transfered"
}else {
#Deletion failed
Write-Host "Failed"
}
Status: Testing connectivity using Socket.Poll()...
# UploadFile("C:\FTPS_Folder\SQLData\uniclogins.csv", "./Download/DBL_Sql_Dump/uniclogins.csv", Overwrite, False, None)
# FileExists("./Download/DBL_Sql_Dump/uniclogins.csv")
Command: SIZE /Download/DBL_Sql_Dump/uniclogins.csv
Status: Waiting for response to: SIZE /Download/DBL_Sql_Dump/uniclogins.csv
Response: 550 Couldn't open the file or directory [1ms]
# OpenWrite("./Download/DBL_Sql_Dump/uniclogins.csv", Binary, -1, False)
Command: TYPE I
Status: Waiting for response to: TYPE I
Response: 200 Type set to I [<1ms]
# OpenDataStream("STOR ./Download/DBL_Sql_Dump/uniclogins.csv", 0)
# OpenPassiveDataStream(AutoPassive, "STOR ./Download/DBL_Sql_Dump/uniclogins.csv", 0)
Command: EPSV
Status: Waiting for response to: EPSV
Response: 229 Entering Extended Passive Mode (|||49010|) [<1ms]
Status: Connecting to IP #1= 91.207.2.41:49010
Command: STOR ./Download/DBL_Sql_Dump/uniclogins.csv
Status: Waiting for response to: STOR ./Download/DBL_Sql_Dump/uniclogins.csv
Response: 150 Starting data transfer. [1ms]
Warning: SSL Buffering disabled because of NOOPs requested
Status: FTPS authentication successful, lib = .NET SslStream, cipher suite = Tls12 (Aes256, 44550, 255) [3ms]
Status: Uploaded 200998 bytes
Status: Closing/Disposing FtpSocketStream(data connection)
Status: Waiting for response to: STOR ./Download/DBL_Sql_Dump/uniclogins.csv
Response: 425 Error while transfering data: ECONNABORTED - Connection aborted [20ms]
Status: Failed to upload file.
Action : UploadFile
Status : False
IsSuccess : False
IsSkipped : False
IsSkippedByRule : False
IsFailed : True
LocalPath : C:\FTPS_Folder\SQLData\uniclogins.csv
RemotePath : ./Download/DBL_Sql_Dump/uniclogins.csv
Message : Failed
# FileExists("./Download/DBL_Sql_Dump/uniclogins.csv")
Command: SIZE /Download/DBL_Sql_Dump/uniclogins.csv
Status: Waiting for response to: SIZE /Download/DBL_Sql_Dump/uniclogins.csv
Response: 213 200998 [<1ms]
# GetListing("./Download/DBL_Sql_Dump", Auto)
# OpenDataStream("MLSD /Download/DBL_Sql_Dump", 0)
# OpenPassiveDataStream(AutoPassive, "MLSD /Download/DBL_Sql_Dump", 0)
Command: EPSV
Status: Waiting for response to: EPSV
Response: 229 Entering Extended Passive Mode (|||49009|) [1ms]
Status: Connecting to IP #1= 91.207.2.41:49009
Command: MLSD /Download/DBL_Sql_Dump
Status: Waiting for response to: MLSD /Download/DBL_Sql_Dump
Response: 150 Starting data transfer. [1ms]
Warning: SSL Buffering disabled because of NOOPs requested
Status: FTPS authentication successful, lib = .NET SslStream, cipher suite = Tls12 (Aes256, 44550, 255) [2ms]
+---------------------------------------+
Listing: type=file;size=200998;modify=20240521071835.664;perms=awrfd; uniclogins.csv
-----------------------------------------
Status: Closing/Disposing FtpSocketStream(data connection)
# CloseDataStream()
Status: Waiting for response to: MLSD /Download/DBL_Sql_Dump
Response: 226 Operation successful [5ms]
Status: Closing/Disposing FtpSocketStream(data connection)
Transfered
PS C:\Users\itapksu> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have no clue what is happening here.
But the check in the transfer is giving me an Failed.
But the file is getting transferred.
can you see where i'm going wrong?
As for now, i'm doing a check, to see if it's gets transferred or not.
And ignoring the output the module is giving me.
But would love to use the modules feedback...
And yes, i can download data, without getting an error.
The text was updated successfully, but these errors were encountered: