SFTP Issue
Good Afternoon,
We need your help to properly address some technical issue we are having when copying files on SFTP channel.
We have several flows which moves high number of files on the channel and quite often we are getting error message during the file copy.
As I said, the problem seems to be random, sometimes it could happen after having copied already 2000 files, sometimes it could happen after having copied 100 files, in some other case doesn’t even happen.
Inside the log we have this information:
WinSCP version 6.3.2.14890
OS Windows Server 2016
Thanks in advance
Gianluca
We need your help to properly address some technical issue we are having when copying files on SFTP channel.
We have several flows which moves high number of files on the channel and quite often we are getting error message during the file copy.
As I said, the problem seems to be random, sometimes it could happen after having copied already 2000 files, sometimes it could happen after having copied 100 files, in some other case doesn’t even happen.
Inside the log we have this information:
We use this WinSCP Scripting (wsf), below a part:Answer: Abort
(ESkipFile) **Upload of file 'XXXX.XML' was successful, but error occurred while setting the permissions and/or timestamp.**
If the problem persists, turn off setting permissions or preserving timestamp. Alternatively you can turn on 'Ignore permission errors' option.
General failure (server should provide error description).
Error code: 4
Error message from server: failed to set attributes: /Home/XXXX.XML
Common reasons for the Error code 4 are:
- 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.
Copying finished: Transferred: 6,923,883, Elapsed: 0:03:03, CPS: 37,655/s
Script: Failed
Script: exit
Script: Exit code: 1
Set sessionOptions = WScript.CreateObject("WinSCP.SessionOptions") With sessionOptions .Protocol = Protocol_SFtp .HostName = "xxxx" .UserName = "xxxx" .Password = "xxxx" .SshHostKeyFingerprint = "xxxx" End With session.Open sessionOptions transferOptions.TransferMode = TransferMode_Binary transferOptions.FilePermissions = Nothing transferOptions.PreserveTimestamp = False transferOptions.AddRawSettings "IgnorePermErrors", "1" transferOptions.filemask = "*.xml" Set transferResult = session.PutFiles ("D:\HOME\*.xml", "/HOME/", False, transferOptions) session.Close
OS Windows Server 2016
Thanks in advance
Gianluca