Remote file already exists (but it does not)

Advertisement

abhishekrameshdhar@...
Guest

Remote file already exists (but it does not)

WinSCP version:
5.1.6 (Build 3394)

Trying to transfer few files to remote server but already existing error message pops up (but remote folder is empty).
Any feedback much appreciated.
. 2017-06-08 14:56:12.276 Copying 1 files/directories to remote directory "/inbound30/"
. 2017-06-08 14:56:12.276   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2017-06-08 14:56:12.276   TM: B; ClAr: No; CPS: 0; InclM: 
. 2017-06-08 14:56:12.276   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-06-08 14:56:12.276 File: "E:\data\John.txtTrace"
. 2017-06-08 14:56:12.276 Copying "E:\data\John.txtTrace" to remote directory started.
. 2017-06-08 14:56:12.276 Binary transfer mode selected.
. 2017-06-08 14:56:12.276 Checking existence of file.
> 2017-06-08 14:56:12.276 Type: SSH_FXP_LSTAT, Size: 33, Number: 27399
. 2017-06-08 14:56:12.276 Sent 37 bytes
. 2017-06-08 14:56:12.276 There are 0 bytes remaining in the send buffer
. 2017-06-08 14:56:12.276 Read 4 bytes (40 pending)
. 2017-06-08 14:56:12.276 Read 40 bytes (0 pending)
< 2017-06-08 14:56:12.276 Type: SSH_FXP_STATUS, Size: 40, Number: 27140
. 2017-06-08 14:56:12.276 Discarding reserved response
. 2017-06-08 14:56:12.276 Waiting for another 4 bytes
. 2017-06-08 14:56:12.291 Detected network event
. 2017-06-08 14:56:12.291 Received 33 bytes (0)
. 2017-06-08 14:56:12.291 Read 4 bytes (29 pending)
. 2017-06-08 14:56:12.291 Read 29 bytes (0 pending)
< 2017-06-08 14:56:12.291 Type: SSH_FXP_ATTRS, Size: 29, Number: 27399
. 2017-06-08 14:56:12.291 Checking existence of partially transfered file.
> 2017-06-08 14:56:12.291 Type: SSH_FXP_LSTAT, Size: 42, Number: 27655
. 2017-06-08 14:56:12.291 Sent 46 bytes
. 2017-06-08 14:56:12.291 There are 0 bytes remaining in the send buffer
. 2017-06-08 14:56:12.291 Waiting for another 4 bytes
. 2017-06-08 14:56:12.323 Detected network event
. 2017-06-08 14:56:12.323 Received 33 bytes (0)
. 2017-06-08 14:56:12.323 Read 4 bytes (29 pending)
. 2017-06-08 14:56:12.323 Read 29 bytes (0 pending)
< 2017-06-08 14:56:12.323 Type: SSH_FXP_ATTRS, Size: 29, Number: 27655
. 2017-06-08 14:56:12.323 Asking user:
. 2017-06-08 14:56:12.323 Target directory contains partially transfered file 'John.txtTrace'. Do you want to resume file transfer? Note: Answering 'No' would delete partially transfered file and restart transfer. ()
. 2017-06-08 14:56:12.401 Session upkeep

Reply with quote

Advertisement

abhishekrameshdhar@...
Guest

Remote file already exists (but it does not)

Seems WinSCP tried to copy file twice.
. 2017-06-08 19:20:22.399 Copying 1 files/directories to remote directory "/inbound30/"
. 2017-06-08 19:20:22.399   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: N (102400); CalcS: Yes; Mask: *.*
. 2017-06-08 19:20:22.399   TM: B; ClAr: No; CPS: 0; InclM: 
. 2017-06-08 19:20:22.399   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-06-08 19:20:22.399 File: "C:\Users\New folder\New Text Document.txt"
. 2017-06-08 19:20:22.414 Copying "C:\Users\New folder\New Text Document.txt" to remote directory started.
. 2017-06-08 19:20:22.414 Binary transfer mode selected.
. 2017-06-08 19:20:22.414 Opening remote file.
> 2017-06-08 19:20:22.414 Type: SSH_FXP_OPEN, Size: 57, Number: 12291
. 2017-06-08 19:20:22.414 Sent 61 bytes
. 2017-06-08 19:20:22.414 There are 0 bytes remaining in the send buffer
. 2017-06-08 19:20:22.414 Read 4 bytes (40 pending)
. 2017-06-08 19:20:22.414 Read 40 bytes (0 pending)
< 2017-06-08 19:20:22.414 Type: SSH_FXP_STATUS, Size: 40, Number: 12036
. 2017-06-08 19:20:22.414 Discarding reserved response
. 2017-06-08 19:20:22.414 Waiting for another 4 bytes
. 2017-06-08 19:20:22.430 Detected network event
. 2017-06-08 19:20:22.430 Received 68 bytes (0)
. 2017-06-08 19:20:22.430 Read 4 bytes (64 pending)
. 2017-06-08 19:20:22.430 Read 64 bytes (0 pending)
< 2017-06-08 19:20:22.430 Type: SSH_FXP_STATUS, Size: 64, Number: 12291
< 2017-06-08 19:20:22.430 Status code: 4, Message: 12291, Server: /inbound30/New Text Document.txt already exists, Language:  
. 2017-06-08 19:20:22.430 Cannot create new file "/inbound30/New Text Document.txt", checking if it exists already
> 2017-06-08 19:20:22.430 Type: SSH_FXP_LSTAT, Size: 41, Number: 12551
. 2017-06-08 19:20:22.430 Sent 45 bytes
. 2017-06-08 19:20:22.430 There are 0 bytes remaining in the send buffer
. 2017-06-08 19:20:22.430 Waiting for another 4 bytes
. 2017-06-08 19:20:22.461 Detected network event
. 2017-06-08 19:20:22.461 Received 33 bytes (0)
. 2017-06-08 19:20:22.461 Read 4 bytes (29 pending)
. 2017-06-08 19:20:22.461 Read 29 bytes (0 pending)
< 2017-06-08 19:20:22.461 Type: SSH_FXP_ATTRS, Size: 29, Number: 12551
. 2017-06-08 19:20:22.461 Asking user:
. 2017-06-08 19:20:22.461 Remote file 'New Text Document.txt' already exists. Overwrite?
. 2017-06-08 19:20:22.461  
. 2017-06-08 19:20:22.461 New:         4 bytes, 6/8/2017 5:25:44 PM
. 2017-06-08 19:20:22.461 Existing:    4096 bytes, 6/7/2017 10:00:00 PM ()
. 2017-06-08 19:20:22.695 Session upkeep
. 2017-06-08 19:20:23.210 Session upkeep
> 2017-06-08 19:20:23.647 Type: SSH_FXP_OPEN, Size: 57, Number: 12803
. 2017-06-08 19:20:23.647 Sent 61 bytes
. 2017-06-08 19:20:23.647 There are 0 bytes remaining in the send buffer
. 2017-06-08 19:20:23.647 Waiting for another 4 bytes
. 2017-06-08 19:20:23.678 Detected network event
. 2017-06-08 19:20:23.678 Received 49 bytes (0)
. 2017-06-08 19:20:23.678 Read 4 bytes (45 pending)
. 2017-06-08 19:20:23.678 Read 45 bytes (0 pending)
< 2017-06-08 19:20:23.678 Type: SSH_FXP_HANDLE, Size: 45, Number: 12803
. 2017-06-08 19:20:23.678 Write request offset: 0, len: 4
> 2017-06-08 19:20:23.678 Type: SSH_FXP_WRITE, Size: 61, Number: 13318
. 2017-06-08 19:20:23.678 Sent 65 bytes
. 2017-06-08 19:20:23.678 There are 0 bytes remaining in the send buffer
> 2017-06-08 19:20:23.678 Type: SSH_FXP_CLOSE, Size: 45, Number: 13572
. 2017-06-08 19:20:23.678 Sent 49 bytes
. 2017-06-08 19:20:23.678 There are 0 bytes remaining in the send buffer
> 2017-06-08 19:20:23.678 Type: SSH_FXP_SETSTAT, Size: 53, Number: 13065
. 2017-06-08 19:20:23.678 Sent 57 bytes
. 2017-06-08 19:20:23.678 There are 0 bytes remaining in the send buffer
. 2017-06-08 19:20:23.678 Waiting for another 4 bytes
. 2017-06-08 19:20:23.725 Detected network event
. 2017-06-08 19:20:23.725 Received 53 bytes (0)
. 2017-06-08 19:20:23.725 Read 4 bytes (49 pending)
. 2017-06-08 19:20:23.725 Read 49 bytes (0 pending)
< 2017-06-08 19:20:23.725 Type: SSH_FXP_STATUS, Size: 49, Number: 13318
. 2017-06-08 19:20:23.725 Waiting for another 4 bytes
. 2017-06-08 19:20:24.084 Detected network event
. 2017-06-08 19:20:24.084 Received 44 bytes (0)
. 2017-06-08 19:20:24.084 Read 4 bytes (40 pending)
. 2017-06-08 19:20:24.084 Read 40 bytes (0 pending)
< 2017-06-08 19:20:24.084 Type: SSH_FXP_STATUS, Size: 40, Number: 13572
< 2017-06-08 19:20:24.084 Status code: 0
. 2017-06-08 19:20:24.084 Preserving timestamp [2017-06-08T23:25:44.000Z]
. 2017-06-08 19:20:24.084 Waiting for another 4 bytes
. 2017-06-08 19:20:24.084 Detected network event
. 2017-06-08 19:20:24.084 Received 44 bytes (0)
. 2017-06-08 19:20:24.084 Read 4 bytes (40 pending)
. 2017-06-08 19:20:24.084 Read 40 bytes (0 pending)
< 2017-06-08 19:20:24.084 Type: SSH_FXP_STATUS, Size: 40, Number: 13065
< 2017-06-08 19:20:24.084 Status code: 0
. 2017-06-08 19:20:24.084 Listing directory "/inbound30".
> 2017-06-08 19:20:24.084 Type: SSH_FXP_OPENDIR, Size: 19, Number: 13835
. 2017-06-08 19:20:24.084 Sent 23 bytes
. 2017-06-08 19:20:24.084 There are 0 bytes remaining in the send buffer
. 2017-06-08 19:20:24.084 Waiting for another 4 bytes
. 2017-06-08 19:20:24.115 Detected network event
. 2017-06-08 19:20:24.115 Received 49 bytes (0)
. 2017-06-08 19:20:24.115 Read 4 bytes (45 pending)
. 2017-06-08 19:20:24.115 Read 45 bytes (0 pending)
< 2017-06-08 19:20:24.115 Type: SSH_FXP_HANDLE, Size: 45, Number: 13835
> 2017-06-08 19:20:24.115 Type: SSH_FXP_READDIR, Size: 45, Number: 14092
. 2017-06-08 19:20:24.115 Sent 49 bytes
. 2017-06-08 19:20:24.115 There are 0 bytes remaining in the send buffer
. 2017-06-08 19:20:24.115 Waiting for another 4 bytes
. 2017-06-08 19:20:24.130 Detected network event
. 2017-06-08 19:20:24.130 Received 44 bytes (0)
. 2017-06-08 19:20:24.130 Read 4 bytes (40 pending)
. 2017-06-08 19:20:24.130 Read 40 bytes (0 pending)
< 2017-06-08 19:20:24.130 Type: SSH_FXP_STATUS, Size: 40, Number: 14092
< 2017-06-08 19:20:24.130 Status code: 1
. 2017-06-08 19:20:24.130 Listing file "/inbound30/..".
> 2017-06-08 19:20:24.193 Type: SSH_FXP_LSTAT, Size: 22, Number: 14343
. 2017-06-08 19:20:24.193 Sent 26 bytes
. 2017-06-08 19:20:24.193 There are 0 bytes remaining in the send buffer
. 2017-06-08 19:20:24.193 Waiting for another 4 bytes
. 2017-06-08 19:20:24.208 Detected network event
. 2017-06-08 19:20:24.208 Received 33 bytes (0)
. 2017-06-08 19:20:24.208 Read 4 bytes (29 pending)
. 2017-06-08 19:20:24.208 Read 29 bytes (0 pending)
< 2017-06-08 19:20:24.208 Type: SSH_FXP_ATTRS, Size: 29, Number: 14343
. 2017-06-08 19:20:24.208 ..;D;1;2017-06-08T04:00:00.000Z;"" [0];"" [0];--x------;0
> 2017-06-08 19:20:24.224 Type: SSH_FXP_CLOSE, Size: 45, Number: 14596
. 2017-06-08 19:20:24.224 Sent 49 bytes
. 2017-06-08 19:20:24.224 There are 0 bytes remaining in the send buffer
. 2017-06-08 19:20:24.271 ..;D;1;2017-06-08T04:00:00.000Z;"" [0];"" [0];--x------;0
. 2017-06-08 19:20:24.364 Session upkeep
. 2017-06-08 19:20:24.364 Detected network event
. 2017-06-08 19:20:24.364 Received 44 bytes (0)
. 2017-06-08 19:20:24.786 Session upkeep
. 2017-06-08 19:20:25.300 Session upkeep
. 2017-06-08 19:20:25.815 Session upkeep
. 2017-06-08 19:20:26.330 Session upkeep

Reply with quote

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

Re: Remote file already exists ( but it does not )

Please upgrade to the latest version first.

If it does not fix the problem, please post a complete session log file (and less verbose for a start).

Reply with quote

abhishekrameshdhar@...
Guest

Remote file already exists ( but it does not )

Upgraded to 5.9.5 (build 7441)
Still same error:
. 2017-06-09 12:36:17.887 Copying 1 files/directories to remote directory "/inbound30/"
. 2017-06-09 12:36:17.887   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2017-06-09 12:36:17.887   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2017-06-09 12:36:17.887   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-06-09 12:36:17.888 File: 'E:\data\1234543213.txt' [2017-06-09T17:48:35.775Z] [6]
. 2017-06-09 12:36:17.889 Copying "E:\data\1234543213.txt" to remote directory started.
. 2017-06-09 12:36:17.889 Binary transfer mode selected.
. 2017-06-09 12:36:17.889 Opening remote file.
> 2017-06-09 12:36:17.889 Type: SSH_FXP_OPEN, Size: 50, Number: 2819
. 2017-06-09 12:36:17.890 Sent 54 bytes
. 2017-06-09 12:36:17.890 There are 0 bytes remaining in the send buffer
. 2017-06-09 12:36:17.890 Read 4 bytes (40 pending)
. 2017-06-09 12:36:17.890 Read 40 bytes (0 pending)
< 2017-06-09 12:36:17.890 Type: SSH_FXP_STATUS, Size: 40, Number: 2564
. 2017-06-09 12:36:17.890 Discarding reserved response
. 2017-06-09 12:36:17.890 Waiting for another 4 bytes
. 2017-06-09 12:36:17.912 Detected network event
. 2017-06-09 12:36:17.912 Received 61 bytes (0)
. 2017-06-09 12:36:17.912 Read 4 bytes (57 pending)
. 2017-06-09 12:36:17.912 Read 57 bytes (0 pending)
< 2017-06-09 12:36:17.912 Type: SSH_FXP_STATUS, Size: 57, Number: 2819
< 2017-06-09 12:36:17.912 Status code: 4, Message: 2819, Server: /inbound30/1234543213.txt already exists, Language:  
. 2017-06-09 12:36:17.912 Cannot create new file "/inbound30/1234543213.txt", checking if it exists already
> 2017-06-09 12:36:17.912 Type: SSH_FXP_LSTAT, Size: 34, Number: 3079
. 2017-06-09 12:36:17.913 Sent 38 bytes
. 2017-06-09 12:36:17.913 There are 0 bytes remaining in the send buffer
. 2017-06-09 12:36:17.913 Waiting for another 4 bytes
. 2017-06-09 12:36:17.934 Detected network event
. 2017-06-09 12:36:17.934 Received 33 bytes (0)
. 2017-06-09 12:36:17.934 Read 4 bytes (29 pending)
. 2017-06-09 12:36:17.934 Read 29 bytes (0 pending)
< 2017-06-09 12:36:17.934 Type: SSH_FXP_ATTRS, Size: 29, Number: 3079
. 2017-06-09 12:36:17.934 Asking user:
. 2017-06-09 12:36:17.934 **Overwrite remote file '1234543213.txt'?**
. 2017-06-09 12:36:17.934 
. 2017-06-09 12:36:17.934 Destination directory already contains file '1234543213.txt'.
. 2017-06-09 12:36:17.934 Choose, if you want to overwrite the file or skip this transfer and keep existing file.
. 2017-06-09 12:36:17.934  
. 2017-06-09 12:36:17.934 New:         6 bytes, 6/9/2017 10:48:35 AM
. 2017-06-09 12:36:17.934 Existing:    0 bytes, 6/8/2017 9:00:00 PM ()

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum