Topic "Help with 'Ignore Permission Errors'"

Author Message
Guest

Guest


Hi,

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

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_options

Here is the output of my log:
Quote:

. 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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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?
_________________
Martin Prikryl
Guest

Guest


Hi,

Unfortunately, I am not able to provide you the address of the SSH/SFTP server (confidential Razz). 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:- http://i3.photobucket.com/albums/y85/hykyit/winscp_settings.jpg

Hopefully you can help me out here. Thank you very much for your help again.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Guest wrote:
Unfortunately, I am not able to provide you the address of the SSH/SFTP server (confidential Razz).

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

Quote:
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.
_________________
Martin Prikryl
Guest

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 Smile. Have a nice day!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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".
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License