EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP failed to open local file

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#15737
Posted: 02/11/2011 04:21:30
by Frank Munsberg (Standard support level)
Joined: 06/04/2009
Posts: 47

On some machine we regularly seem to have an Exception when downloading that says "Failed to open local file" in the logs. The users reported like 9 out of 10 it fails for a file and then the download just works.

local file sounds like the SimpleSFTP client can't open the target file on the local disk for writing but serverside things should be fine right?

SBB 8.1 should be used there.
#15739
Posted: 02/11/2011 04:54:48
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

We can give you more detailed answer if you will provide a Secureblackbox exception error code, but on the first point of view it is not a serverside error and client can't open the target file on the local disk for writing.
#15740
Posted: 02/11/2011 05:01:04
by Eugene Mayevski (EldoS Corp.)

What you can do for diagnostics is replace DownloadFile method with DownloadStream method and allocate the local file stream yourself. This way you would have fine-grain control over how exactly the file is opened/created and why creation fails (as you can play with different access flags etc).


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 2791 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!