You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
given name "~syncthing~xxx.tmp" differs from name in filesystem "~syncthing~XXX.tmp" #6973
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Share a folder with a lot of files from A to B. I used a folder with 10,000 of 0-byte-sized text files.
While still syncing, delete the files on A, and wait for the deletions to sync on B. I actually had to restart the folder on B to get the two in sync.
Two folders are reported as "Up to Date" at this point.
Create the same 10,000 files in the folder on A, but this time with a different case.
Some of the newly created files fail to sync to B, because the previously created ~syncthing~<filename>.tmp~ files are still present in the folder.
[NISVV] 2020/09/09 08:25:08.279993 folder_sendrecv.go:684: DEBUG: sendreceive/uqzch-bwmvk@0xc0000fea80 parent not missing 368test.txt
[NISVV] 2020/09/09 08:25:08.279993 folder_sendrecv.go:1108: DEBUG: sendreceive/uqzch-bwmvk@0xc0000fea80 need file 368test.txt; copy 1, reused 0
[NISVV] 2020/09/09 08:25:08.279993 folder_sendrecv.go:1554: DEBUG: sendreceive/uqzch-bwmvk@0xc0000fea80 closing 368test.txt
[NISVV] 2020/09/09 08:25:08.279993 folder_sendrecv.go:1790: DEBUG: sendreceive/uqzch-bwmvk@0xc0000fea80 new error for 368test.txt: opening temp file: given name "~syncthing~368test.txt.tmp" differs from name in filesystem "~syncthing~368TEST.txt.tmp"
The obvious workaround is to manually delete the temp files, but I think that Syncthing should apply the case sensitivity detection logic to the temp files too.
This is the case sensitivity kicking in and complaining that when creating the new temp file, there is already a file on disk with the same name except case. And we should indeed catch that error and just rename the tempfile to the new name. Thanks for reporting!
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
imsodin commentedon Sep 9, 2020
This is the case sensitivity kicking in and complaining that when creating the new temp file, there is already a file on disk with the same name except case. And we should indeed catch that error and just rename the tempfile to the new name. Thanks for reporting!
lib/model: Don't fail over case-conflict on tempfile (fixes syncthing…
Merge branch 'main' into cdc