Out of Sync on Remote Device (All Items)

Out of Sync on Remote Device (All Items)

Devices

Device Version
Windows 10 (Remote Device) v1.26.0
Android 10 (Local Device) v1.26.0

Logs (from remote device)

Err:"syncing: shortcut file (setting metadata): Access is denied."}},

2023/11/14 18:53:44 INFO: Puller (folder "Document" (), item "Document\\file.pdf"): syncing: shortcut file (setting metadata): Access is denied.

2023/11/14 18:53:44 VERBOSE: Summary for folder "" is &{Errors:3599 PullErrors:3599 Invalid: GlobalFiles:3642 GlobalDirectories:157 GlobalSymlinks:0 GlobalDeleted:5284 GlobalBytes:10570426239 GlobalTotalItems:9083 LocalFiles:3642 LocalDirectories:157 LocalSymlinks:0 LocalDeleted:5275 LocalBytes:10570426239 LocalTotalItems:9074 NeedFiles:3599 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:10438272661 NeedTotalItems:3599 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:43 InSyncBytes:132153578 State:idle 18:53:44 +0800 +08 Error: Version:22466 Sequence:22466 WatchError:}

Screenshots

I am having the same exact issue, but from windows machine to windows machine.

Err:“syncing: shortcut file (setting metadata): Access is denied.”}}

Now what I’m finding out is if I sync ownership of the file or folders I get this access denied error. IF I turn that off but only sync the extended attributes it works just fine.

In my use case I have a DFS-Namespace and I want to use Syncthing to keep the two file servers in sync. I can not seem to figure out why syncing ownership is failing and doesn’t seem to be a topic most people here are familiar with. Most posts here suggest to select the option “ignore permissions” and let the destination folder determine inheritance of owner and permissions. Which in the case of your android phone it might be fine.

1 Like

You both have some sort of permissions issue, I’m not sure there’s anything relevantly same about the causes though. In your case, since you’re getting permission denied when syncing ownership, I would suggest making sure to run with permissions to set ownership, whatever that means on Windows. Local admin, local system, something?

1 Like

I ended up disabling the Sync Ownership and Send Ownership option but from all folders, I’m still having Out of Sync on one folder.

2023/11/15 08:23:19 VERBOSE: Summary for folder "id" is &{Errors:0 PullErrors:0 Invalid: GlobalFiles:2081 GlobalDirectories:184 GlobalSymlinks:0 GlobalDeleted:1132 GlobalBytes:18796992083 GlobalTotalItems:3397 LocalFiles:2079 LocalDirectories:182 LocalSymlinks:0 LocalDeleted:442 LocalBytes:18796991720 LocalTotalItems:2703 NeedFiles:1040 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:9398484247 NeedTotalItems:1040 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:1041 InSyncBytes:9398507836 State:idle 08:22:36 +0800 +08 Error: Version:5213 Sequence:5213 WatchError:}

If you click on the 1040 items ~8.75GiB link it will tell you what’s wrong with the files in there.

Very odd, that it shows 104 pages of nothing… it should show lines of file paths with error messages on each line indicating what’s wrong with each file.

How long have you tried waiting for the Out of Sync Items list to populate? Sometimes it takes a while, especially if the storage is slow in terms of I/O (e.g. a mechanical hard drive).

I let Syncthing running in the background while I use my laptop, and it does not change anything.

I let it running approximately 1 to 3 hours.

Here’s the log from the remote device after I boot it.

[id] 2023/11/16 07:22:08 VERBOSE: Summary for folder "id" is &{Errors:0 PullErrors:0 Invalid: GlobalFiles:2081 GlobalDirectories:184 GlobalSymlinks:0 GlobalDeleted:1132 GlobalBytes:18796992083 GlobalTotalItems:3397 LocalFiles:2079 LocalDirectories:182 LocalSymlinks:0 LocalDeleted:442 LocalBytes:18796991720 LocalTotalItems:2703 NeedFiles:1040 NeedDirectories:0 NeedSymlinks:0 NeedDeletes:0 NeedBytes:9398484247 NeedTotalItems:1040 ReceiveOnlyChangedFiles:0 ReceiveOnlyChangedDirectories:0 ReceiveOnlyChangedSymlinks:0 ReceiveOnlyChangedDeletes:0 ReceiveOnlyChangedBytes:0 ReceiveOnlyTotalItems:0 InSyncFiles:1041 InSyncBytes:9398507836 State:idle 07:22:08 +0800 +08 Error: Version:5216 Sequence:5216 WatchError:}

[id] 2023/11/16 07:22:08 VERBOSE: Completion for folder "id" on device ID is 49.999999906899994% (state: valid)

[id] 2023/11/16 07:49:40 INFO: Connection from ID at 192.n.n.n:n (tcp-server) rejected: already connected to this device

For what it’s worth, I just fixed a similar problem, where my Windows local machine was reporting being out of sync with my Linux server, by removing the folder from both ends and recreating it with a new ID.

I had a disk OOS event on my Linux box fairly recently, so I’m suspecting that the index was corrupted through no fault of SyncThing’s. I’m unsure why it wouldn’t have recovered on a rescan, though.

In my case, the local machine was reporting a Global State of 3300 files vs the reality of 1100. The remote machine was reporting the correct 1100 in the UI, but perhaps that’s not what was being reported to the other machine in the metadata? It might explain why there’s those pages of “ghost” files being out of sync, as I had the same experience – there isn’t actually anything that’s out of sync, but the numbers are wrong.

I tried to remove the folder and create a new ID, and it resolved the problem.

I am encountering the out of sync error, with no resolve option givenin the webUI. Here’s an example of one of the errors (they’re all the same issue, just different files):

NIN/Community Remixes/00801 - 01338 - Emptiness - Echoplex (Only Human Mix).mp3 	syncing: finishing: opening temp file: open /data/music/NIN/Community Remixes/.syncthing.00801 - 01338 - Emptiness - Echoplex (Only Human Mix).mp3.tmp: permission denied

When I connect to the system that is out of sync and attempt to list one of these tmp files that’s causing the problem (in order to confirm permissions), the file does not exist. Background info, this is (so far) over 62k files comprising over 500GB and counting worth of mp3s. The files are on a deduplicated ZFS volume, and there is more than enough space. I’ve deleted all traces of the linux server’s copy of the sync, and everything works…at first. But, by the time I get through the 79k+ worth of files the out of sync error rears it’s ugly head and it’s once again due to files that don’t even exist.

Thoughts?

another log entry, from the post-removal-re-add completion:

syncing: finishing: opening temp file: open /data/music/NIN/Community Remixes/.syncthing.00801 - 01338 - Emptiness - Echoplex (Only Human Mix).mp3.tmp: permission denied

Again, that file doesn’t even exist…

It doesn’t exist yet because Syncthing doesn’t have permission to create the temp file in the directory /data/music/NIN/Community Remixes/.

Need compare the ownership of that particular directory versus the user who Syncthing is running under.

ah yes! Thank you, can’t believe I missed that as a possibility. All fixed!

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