-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
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.
Connect-FTP -Server 'host IP' -Verbose -Credential $MyCredential -EncryptionMode Implicit -DataConnectionType AutoPassive -ValidateAnyCertificate -Port 990
PS C:\Users\itapksu> test-FTPFile -Client $Client -RemotePath $SQLRemotepath -ErrorAction Continue
# 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]
False
PS C:\Users\itapksu>
PS C:\Users\itapksu> Send-FTPFile -Client $Client -LocalPath $SQLFile.FullName -RemotePath $SQLRemotepath
# UploadFile("C:\FTPS_Folder\SQLData\uniclogins.csv", "./Download/DBL_Sql_Dump/uniclogins.csv", Skip, 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)
# OpenDataStream("STOR ./Download/DBL_Sql_Dump/uniclogins.csv", 0)
# OpenPassiveDataStream(PASV, "STOR ./Download/DBL_Sql_Dump/uniclogins.csv", 0)
Command: PASV
Status: Waiting for response to: PASV
Response: 227 Entering Passive Mode (10,21,2,20,191,203) [1ms]
Status: PASV advertised a non-routable IPAD. Using original connect dnsname/IPAD
Status: Connecting to IP #1= 91.207.2.41:49099
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. [2ms]
Warning: SSL Buffering disabled because of NOOPs requested
Status: FTPS authentication successful, lib = .NET SslStream, cipher suite = Tls12 (Aes256, 44550, 255) [2ms]
Status: Uploaded 200554 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 [9ms]
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
PS C:\Users\itapksu> test-FTPFile -Client $Client -RemotePath $SQLRemotepath -ErrorAction Continue
# 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 200554 [1ms]
True
PS C:\Users\itapksu> Metadata
Metadata
Assignees
Labels
No labels