fsync: access is denied on one folder, but not others.


(Kasper) #1

Hi

I have used Syncthing to setup a sync-connection between my production and backup servers. I have set all the folders on the production server to be “Send-Only”, and the backup server is set to “Send & Receive” on all folders. I am logged into an administrator account on both servers, and should have full read/write access.

All but a folder or two are syncing as they should, but on a fraction of the files i get this error:

[4WVPB] 11:27:40 INFO: fsync "\\\\?\\F:\\KBHKOMMUNE\\archive\\KK\\basis\\UPR00003\\0000397C.___" failed: open \\?\F:\KBHKOMMUNE\archive\KK\basis\UPR00003\0000397C.___: Access is denied.
[4WVPB] 11:27:40 INFO: fsync "\\\\?\\F:\\KBHKOMMUNE\\archive\\KK\\basis\\UPR00005\\00005C55.___" failed: open \\?\F:\KBHKOMMUNE\archive\KK\basis\UPR00005\00005C55.___: Access is denied.
[4WVPB] 11:27:40 INFO: fsync "\\\\?\\F:\\KBHKOMMUNE\\archive\\KK\\basis\\UPR0000C\\0000C6C9.msg" failed: open \\?\F:\KBHKOMMUNE\archive\KK\basis\UPR0000C\0000C6C9.msg: Access is denied.
[4WVPB] 11:27:40 INFO: fsync "\\\\?\\F:\\KBHKOMMUNE\\archive\\KK\\basis\\UPR0000D\\0000DD93.msg" failed: open \\?\F:\KBHKOMMUNE\archive\KK\basis\UPR0000D\0000DD93.msg: Access is denied.

I have NOT checked the “Ignore Permissions” box, as it is stated that it should be used on FAT file system, and mine is NTFS.


(Jakob Borg) #2

I suspect this is a bug. We open files once extra after updating them to fsync them: ensure that contents are in fact written to disk and not just in cache. But this happens after setting permissions, and I’m guessing these files are read only? Please feel free to open an issue on Github for this.

The error is “harmless” in that the file is already synced properly. You can work around it by unchecking the fsync option for the folder in Actions -> Advanced.


(Kasper) #3

Thank you for your answer. I have disabled fsync in the options menu, but now the log is spammed with:

[4WVPB] 13:22:54 INFO: Puller (folder "u4aai-wjm4f", file "archive\\KK\\basis\\UPR0000C\\ft0000CB37.txt"): pull: peers who had this file went away, or the file has changed while syncing. will retry later
[4WVPB] 13:22:54 INFO: Puller (folder "u4aai-wjm4f", file "archive\\KK\\basis\\UPR00001\\ft00001906.txt"): pull: peers who had this file went away, or the file has changed while syncing. will retry later

Any ideas?


(Kasper) #4

I forgot to reply, see my post above.


(system) #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.