ERROR_FILE_EXISTS: The file exists. [CopyFileEx]

Get help for specific problems
Posts: 3
Joined: 22 Apr 2020

alekhv

Hello.
Recently started to get "ERROR_FILE_EXISTS: The file exists. [CopyFileEx]" message in the log after syncing of server folder with local folder.
FFS creates in target folder file with correct name and type but with 0 size and shows error then.
It doesn't matter which direction (server to local ot local to server) files are copied.
Also some files in the same folders could be synced successfully, and some facing this error.
User avatar
Site Admin
Posts: 7052
Joined: 9 Dec 2007

Zenju

Sounds like the CopyFileEx bug on Samba where it first tries to create an "Extended Attribute", fails with "EAS NOT SUPPORTED", then "forgets" to report it, continues to copy the file data, but trips upon itself when it finds the file already existing (doh, CopyFileEx itself is the one who created it!). This (Microsoft) bug can be observed via Process Monitor.
Posts: 3
Joined: 22 Apr 2020

alekhv

Any solution found that time?
User avatar
Site Admin
Posts: 7052
Joined: 9 Dec 2007

Zenju

Unfortunately not.
Posts: 3
Joined: 22 Apr 2020

alekhv

Thank you, Zenju