ERROR_FILE_EXISTS [CopyFileEx] on Samba share
- Posts: 21
- Joined: 18 Feb 2020
In my case its a special character in files stored in user directory.
- Attachments
-
- Zwischenablage02.jpg (8.43 KiB) Viewed 3657 times
-
- Zwischenablage01.jpg (20.5 KiB) Viewed 3657 times
- Site Admin
- Posts: 7211
- Joined: 9 Dec 2007
I suspect there is something else going on. FreeFileSync supports Unicode fully, including emojis.In my case its a special character in files stored in user directory. donauinsel, 28 Jul 2022, 07:49
- Posts: 2451
- Joined: 22 Aug 2012
- Posts: 2
- Joined: 13 Sep 2022
beta insaller has expired
- Attachments
-
- Screenshot 2022-09-13 143445.png (11.61 KiB) Viewed 3549 times
- Posts: 3
- Joined: 18 Sep 2022
Unfortunetely looks like there's still no solution..
I just switched to a fresh Win10 installation (build 19044.2006) with FFS V11.25 and now I'm getting the same error:
ERROR_FILE_EXISTS: Die Datei ist vorhanden. [CopyFileEx]
Process monitor also shows the mentioned lines:
Get-SmbConnection shows I'm using SMB V2.1 for connection to my QNAP NAS
I will be happy to assist with testing betas etc..
I just switched to a fresh Win10 installation (build 19044.2006) with FFS V11.25 and now I'm getting the same error:
ERROR_FILE_EXISTS: Die Datei ist vorhanden. [CopyFileEx]
Process monitor also shows the mentioned lines:
13:59:47,4011888 FreeFileSync_x64.exe 13908 CreateFile
\\dose2\Daten\User\x\Backup\Favoriten\bookmark~4525.ffs_tmp
EAS NOT SUPPORTED
Desired Access: Generic Read/Write, Delete, Write DAC, Disposition: Create, Options: Sequential Access, Non-Directory File, Attributes: A, ShareMode: None, AllocationSize: 14.153
13:59:47,4153934 FreeFileSync_x64.exe 13908 CreateFile
\\dose2\Daten\User\x\Backup\Favoriten\bookmark~4525.ffs_tmp
NAME COLLISION
Desired Access: Generic Write, Read Data/List Directory, Read Attributes, Delete, Write DAC, Disposition: Create, Options: Sequential Access, Non-Directory File, Attributes: A, ShareMode: None, AllocationSize: 14.153
13:59:47,4242228 FreeFileSync_x64.exe 13908 CreateFile
\\dose2\Daten\User\x\Backup\Favoriten\bookmark~4525.ffs_tmp
NAME COLLISION
Desired Access: Generic Write, Read Attributes, Delete, Write DAC, Disposition: Create, Options: Sequential Access, Non-Directory File, Attributes: A, ShareMode: None, AllocationSize: 14.153
13:59:47,4474411 FreeFileSync_x64.exe 13908 CreateFile
\\dose2\Daten\User\x\Backup\Favoriten\bookmark~4525.ffs_tmp
NAME NOT FOUND
Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
I will be happy to assist with testing betas etc..
- Site Admin
- Posts: 7211
- Joined: 9 Dec 2007
That's definitively the SMB bug that FFS could try to workaround. I'll prepare new beta versions for testing.EAS NOT SUPPORTED schakie, 18 Sep 2022, 12:47
- Site Admin
- Posts: 7211
- Joined: 9 Dec 2007
Here are the two betas. When testing please also create a PML file so that I can verify the beta does in fact fix the issue: viewtopic.php?t=7898&start=30#p32404
Beta 1: https://www.mediafire.com/file/0lu1kov15b4rblm/FreeFileSync_11.26_%255BBeta1%255D_Windows_Setup.exe
Beta 2: https://www.mediafire.com/file/4btthv4ocdrxa3d/FreeFileSync_11.26_%255BBeta2%255D_Windows_Setup.exe
Beta 1: https://www.mediafire.com/file/0lu1kov15b4rblm/FreeFileSync_11.26_%255BBeta1%255D_Windows_Setup.exe
Beta 2: https://www.mediafire.com/file/4btthv4ocdrxa3d/FreeFileSync_11.26_%255BBeta2%255D_Windows_Setup.exe
- Posts: 3
- Joined: 18 Sep 2022
both betas are working, showing no error, copying the intended file and leaving no .ffs_tmp file behind.
Also when I reinstalled 11.25 Release version the error came back (as expected).
I sent you the PML files...
Also when I reinstalled 11.25 Release version the error came back (as expected).
I sent you the PML files...
- Site Admin
- Posts: 7211
- Joined: 9 Dec 2007
Thank you very much! The workaround is doing as expected according to the PML files. The fix will be officially available in the next version FreeFileSync 11.26.both betas are working, showing no error, copying the intended file and leaving no .ffs_tmp file behind.
Also when I reinstalled 11.25 Release version the error came back (as expected).
I sent you the PML files... schakie, 21 Sep 2022, 18:02
- Posts: 3
- Joined: 18 Sep 2022
Cool, thank you!
In the meantime I'll use the beta...
In the meantime I'll use the beta...
- Posts: 1
- Joined: 29 Jan 2024
Hi,
I am not a FFS user, however I stumbled upon this thread while trying to understand why I was getting empty files being created and weird "The destination already has a file named X" errors from Explorer while attempting to copy files to a Samba share.
This is indeed a Samba bug, and I took the liberty of filing it against them: https://bugzilla.samba.org/show_bug.cgi?id=15563
The bug happens when Samba is configured with `ea support` enabled (note this is the case by default starting from Samba 4.9) and one attempts to create a file with extended attributes and the underlying filesystem does not support user xattrs.
Probably the cleanest solution is to ensure Samba is serving from a filesystem with user xattrs support.
Otherwise, a workaround is to explicitly set `ea support` to `no` in Samba smb.conf. This will disable extended attributes, but those are rarely useful, and this makes no difference if the underlying filesystem doesn't support them anyway.
I am not a FFS user, however I stumbled upon this thread while trying to understand why I was getting empty files being created and weird "The destination already has a file named X" errors from Explorer while attempting to copy files to a Samba share.
This is indeed a Samba bug, and I took the liberty of filing it against them: https://bugzilla.samba.org/show_bug.cgi?id=15563
The bug happens when Samba is configured with `ea support` enabled (note this is the case by default starting from Samba 4.9) and one attempts to create a file with extended attributes and the underlying filesystem does not support user xattrs.
Probably the cleanest solution is to ensure Samba is serving from a filesystem with user xattrs support.
Otherwise, a workaround is to explicitly set `ea support` to `no` in Samba smb.conf. This will disable extended attributes, but those are rarely useful, and this makes no difference if the underlying filesystem doesn't support them anyway.
- Posts: 8
- Joined: 8 Sep 2019
Interesting discovery @edechamps. Thanks for your work on this and for dropping a note in here. I may see if I can fiddle with my smb conf settings on my NAS - though I haven't encountered the errors in FFS for a while now.