EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElSimpleFTPSClient.RemoveFile method doesn't work sometimes. (ref_cl_simpleftpsclient_mtd_removefile.xml)

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#35809
Posted: 02/02/2016 04:55:27
by Wei Luo (Basic support level)
Joined: 02/02/2016
Posts: 3

Hi,

I tried the SecureBlackbox.SFTP trial version in C#, and call the TElSimpleFTPSClient.RemoveFile as the pseudo code:
Code
TElSimpleFTPSClient.Open();
TElSimpleFTPSClient.DownloadStream();
TElSimpleFTPSClient.RemoveFile();
TElSimpleFTPSClient.Close(true);


And sometimes the method RemoveFile doesn't work, sometimes works. It means the specified file cannot be delete in SFTP server, and there is no error message or exception when invoking this method.

PS: TElSimpleFTPSClient.AuthenticationTypes = 6;

Any suggestions would be appreciated.

Thank you,
Luo Wei
#35810
Posted: 02/02/2016 05:01:05
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Looks like a server side bug. Does the same problem occur if you try to delete a file using some third-party client like FileZilla?

What SFTP protocol version is adjusted after login? Please check TElSimpleSFTPClient.Version property.

Try to change the protocol version using TElSimpleSFTPClient.Versions property and check if the same problem exists with different protocol versions.
#35811
Posted: 02/02/2016 05:03:15
by Vsevolod Ievgiienko (EldoS Corp.)

Quote
I tried the SecureBlackbox.SFTP


Quote
TElSimpleFTPSClient.RemoveFile


Also could you please clarify if SFTP or FTPS component is used. My answer was related to SFTP.
#35838
Posted: 02/04/2016 00:23:43
by Wei Luo (Basic support level)
Joined: 02/02/2016
Posts: 3

Sorry, it is SFTP:
Code
TElSimpleSFTPClient.Open();
TElSimpleSFTPClient.DownloadStream();
TElSimpleSFTPClient.RemoveFile();
TElSimpleSFTPClient.Close(true);


The Versions is 124.
#35839
Posted: 02/04/2016 03:24:20
by Vsevolod Ievgiienko (EldoS Corp.)

So as I wrote above, try to change the protocol version using TElSimpleSFTPClient.Versions property and check if the same problem exists with different protocol versions: https://www.eldos.com/documentation/sb...sions.html
#35840
Posted: 02/04/2016 08:33:40
by Eugene Mayevski (EldoS Corp.)

It looks like the server doesn't close the file immediately after you download it. In this case it can't delete the file. There's not much you can do other than take several attempts with some interval between the attempts.


Sincerely yours
Eugene Mayevski
#35891
Posted: 02/16/2016 00:57:13
by Wei Luo (Basic support level)
Joined: 02/02/2016
Posts: 3

We find out the root cause, it was not caused by the SecureBlackbox, it is caused by the backup system in the SFTP server, it need to delete the "mirror" file. Thank you all.

Regards,
Luo Wei
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 2427 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!