The support forum

Function: MoveFileEx Error: already exists

mmateoo :

Sep 21, 2017

Hi, I'm getting this error every time I run the backup, it happens for multiple files (>1k)

C+1) 2 2         27. Updating file 2017_08_27\IMG_5738.JPG
2017.09.21 21:19:37.654 (UTC+1) 3 3             Details
2017.09.21 21:19:37.654 (UTC+1) 3 4                 Source: 904.71 KB, created  2017.08.30 21:18:08.592, modified  2017.08.30 21:26:42.866, archived
2017.09.21 21:19:37.654 (UTC+1) 3 5                     Raw: 926428 / 131485942885926541 / 131485948028660067 / 00000020
2017.09.21 21:19:37.654 (UTC+1) 3 4                 Backup: 904.71 KB, created  1601.01.01 02:00:01.697, modified  2017.08.30 21:26:42.866, archived
2017.09.21 21:19:37.654 (UTC+1) 3 5                     Raw: 926428 / 16975111 / 131485948028660067 / 00000020
2017.09.21 21:19:39.085 (UTC+1) 0 3             Error: already exists
2017.09.21 21:19:39.085 (UTC+1) 3 4                 Function: MoveFileEx
2017.09.21 21:19:39.085 (UTC+1) 3 4                 Context: \\?\K:\***\2017_08_27\IMG_5738.JPG.bvckup \\?\K:\***\2017_08_27\IMG_5738.JPG
2017.09.21 21:19:39.126 (UTC+1) 3 3             Not completed


I tried enabling conf.ctime_match 1 but didn't help much.
I went through the logs and found the first time the file was copied:

2017.09.15 00:07:50.236 (UTC+1) 2 2         791. Copying file 2017_08_27\IMG_5738.JPG
2017.09.15 00:07:50.236 (UTC+1) 3 3             904.71 KB, created  2017.08.30 21:18:08.592, modified  2017.08.30 21:26:42.866, archived
2017.09.15 00:07:51.969 (UTC+1) 0 3             GetOverlappedResult() failed with 6
2017.09.15 00:07:51.969 (UTC+1) 3 4                 Context: \\?\K:\***\2017_08_27\IMG_5738.JPG
2017.09.15 00:07:51.969 (UTC+1) 3 4                 I/O details
2017.09.15 00:07:51.969 (UTC+1) 3 5                     Read: 926428 bytes, 0 requests pending, EOF 0/0
2017.09.15 00:07:51.969 (UTC+1) 3 5                     Check: 0 bytes
2017.09.15 00:07:51.969 (UTC+1) 3 5                     Write: 327680 bytes, 598748 bytes pending in 1 requests, last write at 327680
2017.09.15 00:07:51.969 (UTC+1) 3 4                 Cancelling pending write requests...
2017.09.15 00:07:52.973 (UTC+1) 3 3             Not completed


Any way to override these files? It's like 2k files out of 13k failing every time. They're copied onto a Lenovo EMC NAS.

Alex Pankratov :

Sep 21, 2017

2017.09.21 21:19:39             Error: already exists
2017.09.21 21:19:39                 Function: MoveFileEx


This is a bug in your NAS firmware. It doesn't correctly handle "replace existing" directive that Bvckup2 issues together with MoveFileEx request.

You can try and work around this issue with the following override (this needs to go into the job's settings.ini):

        conf.copying.use_staged_copier    0

This will force the program to copy source files directly into their backup copies instead of first copying them into a temporary file and then moving them in place with a "rename" command.

2017.09.15 00:07:51             GetOverlappedResult() failed with 6


This is either the NAS or the network caving under the load. "Error 6" stands for "Invalid handle", likely meaning that the connection to the NAS was aborted for some reason. In fact, it's likely to be on the NAS side rather than in the network, because it's a odd error to have for this case.

mmateoo :

Sep 23, 2017

Hi, thanks a lot for a quick answer.
It indeed helped!

Besides, I had to adjust conf.mtime_gran to 10000001 as there was 1 sec difference in mtime for some files.

Great app! Very flexible, even if you have a crappy NAS. Any recommendations about which company produces home NAS where you don't get this type of problems?

Alex Pankratov :

Sep 23, 2017

Re: NAS - I'll reply privately.

justbackmeup :

Sep 23, 2017

I cannot speak to your specific issue, but I've been using a Synology DS916+ for several months now and am very happy with it.

New topic

Create
Made by Pipemetrics in Switzerland
Support


Follow
Twitter
Dev blog
Miscellanea Press resources
Testimonials
On robocopy
Company
Imprint

Legal Terms
Privacy