Error copying file from remote site

Advertisement

jsstern
Guest

Error copying file from remote site

We received an error when trying to copy a file from a remote site to our server via WinSCP. I am attaching the log file, but here is an excerpt:
. 2024-10-16 08:36:03.236 Copying 1 files/directories to local directory "d:\edi\live\LabChem-SPS-Orders\Inbound" - total size: 770
. 2024-10-16 08:36:03.236   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: 
. 2024-10-16 08:36:03.236   TM: A; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2024-10-16 08:36:03.236   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2024-10-16 08:36:03.236 File: '/labchem/out/CTL-53354071492.txt' [2024-10-16T12:32:11.000Z] [770]
. 2024-10-16 08:36:03.237 Copying "/labchem/out/CTL-53354071492.txt" to local directory started.
. 2024-10-16 08:36:03.237 Ascii transfer mode selected.
. 2024-10-16 08:36:03.238 Opening remote file.
> 2024-10-16 08:36:03.238 Type: SSH_FXP_OPEN, Size: 49, Number: 1283
< 2024-10-16 08:36:03.252 Type: SSH_FXP_STATUS, Size: 24, Number: 1028
. 2024-10-16 08:36:03.253 Discarding reserved response
< 2024-10-16 08:36:03.255 Type: SSH_FXP_HANDLE, Size: 13, Number: 1283
> 2024-10-16 08:36:03.255 Type: SSH_FXP_FSTAT, Size: 13, Number: 1544
< 2024-10-16 08:36:03.265 Type: SSH_FXP_STATUS, Size: 24, Number: 4109
< 2024-10-16 08:36:03.265 Status code: 0
. 2024-10-16 08:36:03.265 Copying finished: Transferred: 1,549, Elapsed: 0:00:00, CPS: 6,322/s
> 2024-10-16 08:36:03.266 Script: bye
. 2024-10-16 08:36:03.266 Script: Exit code: 0
. 2024-10-16 08:36:03.266 Closing connection.
. 2024-10-16 08:36:03.266 Sending special code: 1
< 2024-10-16 08:36:03.270 Type: SSH_FXP_ATTRS, Size: 37, Number: 1544
. 2024-10-16 08:36:03.270 Confirming overwriting of file.
> 2024-10-16 08:36:03.272 Type: SSH_FXP_READ, Size: 25, Number: 1797
. 2024-10-16 08:36:03.281 Session sent command exit status 0
. 2024-10-16 08:36:03.281 Main session channel closed
. 2024-10-16 08:36:03.281 All channels closed
< 2024-10-16 08:36:03.289 Type: SSH_FXP_STATUS, Size: 24, Number: 1797
< 2024-10-16 08:36:03.290 Status code: 4, Message: 1797, Server: Failure, Language:  
> 2024-10-16 08:36:03.292 Type: SSH_FXP_CLOSE, Size: 13, Number: 2052
* 2024-10-16 08:36:03.292 (ECommand) **Copying files from remote side failed.**
* 2024-10-16 08:36:03.292 General failure (server should provide error description).
* 2024-10-16 08:36:03.292 Error code: 4
* 2024-10-16 08:36:03.292 Error message from server: Failure
* 2024-10-16 08:36:03.292 
* 2024-10-16 08:36:03.292 Common reasons for the Error code 4 are:
* 2024-10-16 08:36:03.292 - Renaming a file to a name of already existing file.
* 2024-10-16 08:36:03.292 - Creating a directory that already exists.
* 2024-10-16 08:36:03.293 - Moving a remote file to a different filesystem (HDD).
* 2024-10-16 08:36:03.293 - Uploading a file to a full filesystem (HDD).
* 2024-10-16 08:36:03.293 - Exceeding a user disk quota.
< 2024-10-16 08:36:03.293 Script: Copying files from remote side failed.
We have never had any problems in the past. This was a 2-line text file. There was no file with the same name in the target directory.
Can you let me know what could have caused this error and how we can prevent it from reoccurring?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: Error copying file from remote site

It looks like you are running multiple same scripts in parallel. It seems that one instance was trying to download a file that was at the same time deleted by another instance.

Reply with quote

Advertisement

You can post new topics in this forum