Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Guest wrote:

though I am still not sure why 'Ignore Permission Errors' did not work out

Because it is not permission error, but "general failure".
Guest

Sorry for the late reply.

Seems like I can use the mask to exclude empty files, which really helps (though I am still not sure why 'Ignore Permission Errors' did not work out).

I want to thank you once more for all the help handed out to me. I really appreciate it :). Have a nice day!
martin

Guest wrote:

Unfortunately, I am not able to provide you the address of the SSH/SFTP server (confidential :P).

I do not ask for address. Just for software you use.

But is it possible to have settings on a folder/directory to disable empty files or such?

Yes, you can exclude empty files. See documentation.
Guest

Hi,

Unfortunately, I am not able to provide you the address of the SSH/SFTP server (confidential :P). But is it possible to have settings on a folder/directory to disable empty files or such?

Here is the screenshot of my WinSCP settings:- <invalid hyperlink removed by admin>

Hopefully you can help me out here. Thank you very much for your help again.
martin

Re: Help with 'Ignore Permission Errors'

I do not know what is cause of the problem. It may be server-side issue. What is your SSH/SFTP server?
Anyway, have you tried to set Ignore permission errors as suggested in the the message?
Guest

Help with 'Ignore Permission Errors'

Hi,

I am encountering this problem when i try to transfer files over using the GUI and also scripting by SFTP:

Upload of file 'file.txt' was successful, but error occurred while setting the permissions and/or timestamp.
If the problem persists, turn on 'Ignore permission errors' option.
General failure (server should provide error description).
Error code: 4
Error message from server:
Request code: 9
(A)bort, (R)etry, (S)kip, Ski(p) all:


I have checked my settings and has ensured that they are the same with this: https://winscp.net/eng/docs/ui_transfer_custom#upload

Here is the output of my log:

. 2008-07-30 08:58:22.029 Copying 1 files/directories to remote directory "/"
. 2008-07-30 08:58:22.029 PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: Yes (Yes); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2008-07-30 08:58:22.029 TM: M; ClAr: No; ExclM(No):
. 2008-07-30 08:58:22.029 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2008-07-30 08:58:22.044 File: "D:\file.txt"
. 2008-07-30 08:58:22.044 Copying "D:\file.txt" to remote directory started.
. 2008-07-30 08:58:22.044 Binary transfer mode selected.
. 2008-07-30 08:58:22.044 Opening remote file.
> 2008-07-30 08:58:22.044 Type: SSH_FXP_OPEN, Size: 56, Number: 2563
< 2008-07-30 08:58:22.044 Type: SSH_FXP_STATUS, Size: 40, Number: 2308
. 2008-07-30 08:58:22.044 Discarding reserved response
< 2008-07-30 08:58:22.154 Type: SSH_FXP_HANDLE, Size: 50, Number: 2563
> 2008-07-30 08:58:22.154 Type: SSH_FXP_CLOSE, Size: 50, Number: 3076
> 2008-07-30 08:58:22.154 Type: SSH_FXP_SETSTAT, Size: 56, Number: 2825
< 2008-07-30 08:58:22.263 Type: SSH_FXP_STATUS, Size: 40, Number: 3076
< 2008-07-30 08:58:22.263 Status/error code: 0
< 2008-07-30 08:58:22.373 Type: SSH_FXP_STATUS, Size: 17, Number: 2825
< 2008-07-30 08:58:22.373 Status/error code: 4, Message: 2825, Server: , Language:
* 2008-07-30 08:58:22.373 (ETerminal) General failure (server should provide error description).
* 2008-07-30 08:58:22.373 Error code: 4
* 2008-07-30 08:58:22.373 Error message from server:
* 2008-07-30 08:58:22.373 Request code: 9
. 2008-07-30 08:58:22.373 Asking user:
. 2008-07-30 08:58:22.373 Upload of file 'file.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option. ("General failure (server should provide error description).
. 2008-07-30 08:58:22.373 Error code: 4
. 2008-07-30 08:58:22.373 Error message from server:
. 2008-07-30 08:58:22.373 Request code: 9")
* 2008-07-30 08:58:23.904 (EScpSkipFile) Upload of file 'file.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
* 2008-07-30 08:58:23.904 General failure (server should provide error description).
* 2008-07-30 08:58:23.904 Error code: 4
* 2008-07-30 08:58:23.904 Error message from server:
* 2008-07-30 08:58:23.904 Request code: 9
. 2008-07-30 08:58:23.904 Listing directory "/".
> 2008-07-30 08:58:23.904 Type: SSH_FXP_OPENDIR, Size: 10, Number: 3339
< 2008-07-30 08:58:24.013 Type: SSH_FXP_HANDLE, Size: 20, Number: 3339
> 2008-07-30 08:58:24.013 Type: SSH_FXP_READDIR, Size: 20, Number: 3596
< 2008-07-30 08:58:24.216 Type: SSH_FXP_NAME, Size: 14875, Number: 3596
> 2008-07-30 08:58:24.216 Type: SSH_FXP_READDIR, Size: 20, Number: 3852
< 2008-07-30 08:58:24.388 Type: SSH_FXP_NAME, Size: 14791, Number: 3852
> 2008-07-30 08:58:24.388 Type: SSH_FXP_READDIR, Size: 20, Number: 4108
< 2008-07-30 08:58:24.482 Type: SSH_FXP_NAME, Size: 14405, Number: 4108
> 2008-07-30 08:58:24.482 Type: SSH_FXP_READDIR, Size: 20, Number: 4364
< 2008-07-30 08:58:24.810 Type: SSH_FXP_NAME, Size: 14105, Number: 4364
> 2008-07-30 08:58:24.810 Type: SSH_FXP_READDIR, Size: 20, Number: 4620
< 2008-07-30 08:58:24.919 Type: SSH_FXP_NAME, Size: 14173, Number: 4620
> 2008-07-30 08:58:24.935 Type: SSH_FXP_READDIR, Size: 20, Number: 4876
< 2008-07-30 08:58:25.013 Type: SSH_FXP_NAME, Size: 6656, Number: 4876
> 2008-07-30 08:58:25.013 Type: SSH_FXP_READDIR, Size: 20, Number: 5132
< 2008-07-30 08:58:25.326 Type: SSH_FXP_STATUS, Size: 40, Number: 5132
< 2008-07-30 08:58:25.326 Status/error code: 1
> 2008-07-30 08:58:25.326 Type: SSH_FXP_CLOSE, Size: 20, Number: 5380


This problem seems to happen only when the files to be transferred are empty (0 bytes).

I will really appreciate any help here. Thank you very much.