Error Codes

Advertisement

ben@eds
Joined:
Posts:
5
Location:
USA

Error Codes

Hi! This isn't a bug but I am looking for a place that can explain the error codes. I found one link, https://winscp.net/eng/docs/sftp_codes, but it only has error codes up to 31. The error codes I see are 3 digits. For example 389 (I think it means the file is open but I am not sure). Is there a more comprehensive list of the error codes and their meanings?

Thanks,
Ben

Reply with quote

Advertisement

Guest

I am more looking for general documentation so I can proactively write some audit code. I do not have a question on a particular error at the moment. Is there somewhere that describes all of the errors?

Here is a snippet of the log:
\KBH_US_Model.xlsx' [2020-01-15T16:15:49.000Z] [22116]
. 2020-01-17 00:00:17.454 Copying "C:\Users\Away\EDS Asset Management LP\EDS Asset Management - Documents\Models\Desi Coverage\Home Builders\KBH\KBH_US_EDS_Model.xlsx" to remote directory started.
. 2020-01-17 00:00:17.454 Binary transfer mode selected.
. 2020-01-17 00:00:17.454 Opening remote file.
> 2020-01-17 00:00:17.454 Type: SSH_FXP_OPEN, Size: 107, Number: 145155
< 2020-01-17 00:00:17.469 Type: SSH_FXP_HANDLE, Size: 13, Number: 145155
* 2020-01-17 00:00:17.489 (EOSError) System Error.  Code: 395.

* 2020-01-17 00:00:17.489 Access to the cloud file is denied
. 2020-01-17 00:00:17.489 Asking user:
. 2020-01-17 00:00:17.489 Error reading file 'C:\Users\Away\EDS Asset Management LP\EDS Asset Management - Documents\Models\Desi Coverage\Home Builders\KBH\KBH_US_EDS_Model.xlsx'. ("System Error.  Code: 395.

. 2020-01-17 00:00:17.489 Access to the cloud file is denied")
< 2020-01-17 00:00:17.489 Script: Error reading file 'C:\Users\Away\EDS Asset Management LP\EDS Asset Management - Documents\Models\Desi Coverage\Home Builders\KBH\KBH_US_EDS_Model.xlsx'.
< 2020-01-17 00:00:17.489 Script: System Error.  Code: 395.

< 2020-01-17 00:00:17.489 Access to the cloud file is denied
> 2020-01-17 00:00:17.489 Type: SSH_FXP_CLOSE, Size: 13, Number: 145668
< 2020-01-17 00:00:17.505 Type: SSH_FXP_STATUS, Size: 24, Number: 145668
< 2020-01-17 00:00:17.505 Status code: 0

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

There are no WinSCP error codes.
Error codes you can see in WinSCP error messages are either codes that come from the server, which are protocol specific (like the SFTP codes that you have found). Or they can be Windows system error codes. What is the case of your error code.
https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes
Interestingly, code 395 is not documented.

Reply with quote

Advertisement

ben@eds
Joined:
Posts:
5
Location:
USA

Syncing files that are open

Hi Martin,

By default scripted syncing doesn't work for files that are open. Is there a way to get it to work by using the last saved version or is the file totally inaccessible?

Thanks,
Ben

Reply with quote

martin
Site Admin
martin avatar

Re: Syncing files that are open

ben@eds wrote:

By default scripted syncing doesn't work for files that are open. Is there a way to get it to work by using the last saved version or is the file totally inaccessible?
There are methods to access the file. But WinSCP do not support them.

Reply with quote

Advertisement

You can post new topics in this forum