sftp_codes » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2017-01-31 | 2017-01-31 | ||
no summary (223.30.65.67) (hidden) (untrusted) | no summary (223.30.65.67) (hidden) (untrusted) | ||
Line 6: | Line 6: | ||
The %%SFTP%% server should also provide a meaningful textual description of the error itself. WinSCP includes the server-side description in its error message, labeled "Error message from server". Such description can include more detailed information than WinSCP can possibly deduce from the numerical code. | The %%SFTP%% server should also provide a meaningful textual description of the error itself. WinSCP includes the server-side description in its error message, labeled "Error message from server". Such description can include more detailed information than WinSCP can possibly deduce from the numerical code. | ||
- | |||
- | ===== [[code_4]] Code 4 (Failure) ===== | ||
- | Note that not all servers use all codes. Most SSH/SFTP servers, including the most commonly used OpenSSH, support only %%SFTP%% version 3 that defines only codes ''0'' to ''8''. | ||
- | |||
- | These servers would generally use code ''4'' (Failure) for many errors for which there is a specific code defined in the later versions of %%SFTP%% protocol, such as: | ||
- | * Renaming a file to a name of already existing file. | ||
- | * Creating a directory that already exists. | ||
- | * Moving a remote file to a different filesystem (HDD). | ||
- | * Uploading a file to a full filesystem (%%HDD%%). | ||
- | * Exceeding a user disk quota. | ||
- | |||
- | In this case the server is required to provide meaningful description of the error itself (see above). Unfortunately, OpenSSH SFTP server uses always description "Failure". Is such case, there is unfortunately no way to tell a reason of the failure. | ||