Re-trying Syncthing after a gap of maybe 5 years. Initial setup is quite simple:
- Two Windows 10 machines on a LAN
- Each machine has a drive (D:) set up for files to be synced
- Syncthing set up to run as a service
Set up a Syncthing folder share as follows:
- Label: Shared (common)
- Path: D:\Shared
- Versioning: Off
- Ignore Patterns: (none)
- Folder Type: Send & Receive (both machines)
- Advanced options: Sync Ownership
On both machines the user account SyncthingServiceAcct
has Modify
permission applied at the root of the D: drive.
The Shared folder is quite large, comprising 39,248 files in 2,446 folders.
The Problem
At the end of the initial sync the folder status showed:
Global State | 39,248 2,446 ~487 GiB |
---|---|
Local State | 39,248 2,446 ~487 GiB |
Out of Sync Items | 2,446 items, ~306 KiB |
Failed Items | 2,446 items |
The number of failed items is suspiciously exactly the same as the number of subfolders in the sync set, so I assume this is where the problem lies.
Looking at the log on the sending machine I see a long stream of errors of this form:
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "music\\Library\\Snow Patrol\\Eyes Open"): syncing: handling dir (setting metadata): Access is denied.
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "music\\Library\\Various Artists\\The Best Of Movie Tunes"): syncing: handling dir (setting metadata): Access is denied.
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "photo\\~Incoming\\Me\\2005-01 PreSchool Teachers"): syncing: handling dir (setting metadata): Access is denied.
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "photo\\~Incoming\\Me\\2008-02\\CaptureOne\\Cache\\Proxies"): syncing: handling dir (setting metadata): Access is denied.
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "archive\\Software\\Windows Apps\\Apps+Utilities"): syncing: handling dir (setting metadata): Access is denied.
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "archive\\Pictures\\Masked Images\\w_acc"): syncing: handling dir (setting metadata): Access is denied.
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "music\\Library\\Lynyrd Skynyrd"): syncing: handling dir (setting metadata): Access is denied.
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "archive\\Admin\\Win10\\ProgramData\\_scripts\\.git\\objects\\27"): syncing: handling dir (setting metadata): Access is denied.
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "music\\Library\\Meat Loaf"): syncing: handling dir (setting metadata): Access is denied.
2024-10-19 19:36:22 Puller (folder "Shared (common)" (icdyz-xd4y5), item "music\\MP3\\Funeral for a Friend"): syncing: handling dir (setting metadata): Access is denied.
The Syncthing docs say that giving the Syncthing service “Modify” permissions is sufficent, but clearly there is a permissions problem here.
Using the “Advanced Security Settings” on the root of the D drive on the receiving machine, if I check the Effective Access for the SyncthingServiceAcct
user I see a red cross (no permission) for the following items:
- Full control
- Delete subfolders and files
- Change permissions
- Take ownership
My understanding of Windows ACLs is sketchy, I am more familiar with Unix permissions, but I can’t see how the Syncthing service can do what it needs to do to maintain the synced folders WITHOUT the last 3 of the above 4 permissions.
So, is the documentation misleading. Does SyncthingServiceAcct
really need Full Control
access to the synced folders to be able to copy not just data but also ownership and permissions between devices?