WinSCP removes/deletes files from SFTP server after transfer
Hi All,
I have set up a daily upload of some files on the SFTP server using WinSCP. I have noticed that during every second-time upload, WinSCP partially overwrites and partially deletes some CSV files on the SFTP server.
For example, two days ago, all files were uploaded on the SFTP, yesterday I have noticed the missed ones, and today all files are present again. Those three automated uploads were successfully completed, but every second time I witness missing files.
Here are some logs uploading of two files. One of them was successfully uploaded, but WinSCP deleted the second.
My question is:
what is the root cause of the issue?
What do I need to do to get this fixed?
Thanks in advance,
Alex
I have set up a daily upload of some files on the SFTP server using WinSCP. I have noticed that during every second-time upload, WinSCP partially overwrites and partially deletes some CSV files on the SFTP server.
For example, two days ago, all files were uploaded on the SFTP, yesterday I have noticed the missed ones, and today all files are present again. Those three automated uploads were successfully completed, but every second time I witness missing files.
Here are some logs uploading of two files. One of them was successfully uploaded, but WinSCP deleted the second.
23:45:13.878 [sshd-SftpSubsystem-thread-1] INFO c.e.d.e.s.s.s.f.S3BufferedFileWriter - *****_aesd**_**************/52.24.156.220:59507: Uploading part #1 of gg4l-ftp1/685860/schools.csv 23:45:14.041 [task-34208] INFO c.e.d.e.s.s.s.f.S3BufferedFileWriter - Upload complete: dz-stage-ftp/****-ftp1/685860/schools.csv by user: *****_aesd**_**************/52.24.156.220:59507 -------------------------------------------------------------------------- 23:45:14.683 [sshd-SftpSubsystem-thread-1] INFO c.e.d.e.s.s.s.f.S3BufferedFileWriter - *****_aesd**_**************/52.24.156.220:59507: Uploading part #1 of ****-ftp1/685860/sections.csv 23:45:14.836 [sshd-SftpSubsystem-thread-1] INFO c.e.d.e.s.s.s3.S3FileSystemProvider - User with id and username: 97 *****_aesd**_**************, [b]trying to delete file by path[/b]: ****-ftp1/685860/sections.csv 23:45:14.905 [task-34210] INFO c.e.d.e.s.s.s.f.S3BufferedFileWriter - Upload complete: dz-stage-ftp/****-ftp1/685860/sections.csv by user: *****_aesd**_**************/52.24.156.220:59507
My question is:
what is the root cause of the issue?
What do I need to do to get this fixed?
Thanks in advance,
Alex