Syncthing not detecting missing/removed files on Mac OS X

Hello, I’ve got Syncthing running on my NAS at home sharing a folder (as master) with some pictures. 752 pictures, ~216MiB, according to dashboard.

The folder is sync’d with my laptop, currently at work. The folder was perfectly in sync. Then, as a test, I removed several hundred pictures from the laptop.

My laptop Synthing says I’m connected to my NAS via relay. I started ST with STTRACE=scanner and I can see that every 60 seconds the scanner runs to look for changes.

But the scanner doesn’t find any files missing.

[2RDQN] 2016/06/22 17:33:03.364941 folderscan.go:34: DEBUG: &{60000000000 0xc820ef88c0 0xc820815440 0xc8208154a0} next rescan in 1m11.970612571s
[2RDQN] 2016/06/22 17:33:12.434440 rwfolder.go:228: DEBUG: rwFolder/SFPin-cRoQL@0xc8211a23c0 skip (curVer == prevVer) 1131 true
[2RDQN] 2016/06/22 17:33:22.438551 rwfolder.go:228: DEBUG: rwFolder/SFPin-cRoQL@0xc8211a23c0 skip (curVer == prevVer) 1131 true

Clicking on “Rescan” or “Rescan All” makes no difference.

What’s going on here? I just restarted the client on my laptop. Here’s some info:

[2RDQN] 2016/06/22 17:35:54.717146 rwfolder.go:201: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 remote index updated, rescheduling pull
[2RDQN] 2016/06/22 17:35:54.722308 rwfolder.go:239: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 pulling 0 1131
[2RDQN] 2016/06/22 17:35:54.722397 rwfolder.go:349: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 c 1 p 16
[2RDQN] 2016/06/22 17:35:54.725788 rwfolder.go:249: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 changed 0
[2RDQN] 2016/06/22 17:35:54.725834 rwfolder.go:269: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 next pull in 10s
[2RDQN] 2016/06/22 17:35:54.725883 rwfolder.go:201: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 remote index updated, rescheduling pull
[2RDQN] 2016/06/22 17:35:54.725981 rwfolder.go:239: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 pulling 0 1131
[2RDQN] 2016/06/22 17:35:54.726033 rwfolder.go:349: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 c 1 p 16
[2RDQN] 2016/06/22 17:35:54.729711 progressemitter.go:236: DEBUG: progress emitter: bytes completed for SFPin-cRoQL: 0
[2RDQN] 2016/06/22 17:35:54.729744 model.go:449: DEBUG: model@0xc82008c000 NeedSize("SFPin-cRoQL"): 0 0
[2RDQN] 2016/06/22 17:35:54.729905 rwfolder.go:249: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 changed 0
[2RDQN] 2016/06/22 17:35:54.729944 rwfolder.go:269: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 next pull in 10s
[2RDQN] 2016/06/22 17:35:54.732932 model.go:399: DEBUG: model@0xc82008c000 Completion(ROBPV3C-P4CHIJI-YVXXLLT-2AAW6LQ-LNEDN6W-D4FNUDM-OGNGM3H-XT6X3AW, "SFPin-cRoQL"): 99.996103 (8836 / 226737609 = 0.000039)
[2RDQN] 2016/06/22 17:36:04.734560 rwfolder.go:228: DEBUG: rwFolder/SFPin-cRoQL@0xc82008c8c0 skip (curVer == prevVer) 1131 true

Still seems to believe all files are present, which is not the case.

ls -laR ~/Pictures/WThumbs/ | grep jpg | wc -l
471

Should be 752.

The scanner will not find any files missing, you deleted them and it knows it.

What were you expecting to happen?

The master will not override the latest data from the cluster unless you tell it to.

I’m expecting Syncthing to go “Hey! This directory is no longer in sync! Files are missing from this local copy! I need to sync and copy them from the master!”

What’s the point of having a process to keep two folders in sync if it doesn’t actually keep things in sync?

If you look at the GUI on the master device you will be presented an option to override changes. This is not done automatically. Search the forum for reasons why.

Your laptop doesn’t know that your NAS is a master. Syncthing doesn’t work like that.

Master doesn’t mean “All other nodes should keep the files exactly as I have, no matter what” but more like “I don’t care, if other nodes change something, I will keep it as it is”.

1 Like

Ok. This is contrary to a feature of BTSync (https://help.getsync.com/hc/en-us/articles/204754279-Is-one-way-synchronization-possible-) that I was looking for in Syncthing.

On BTSync, by checking this box ‘Overwrite any changed files’ on my laptop, if I change any files (delete, modify), deleted files are restored from the ‘master’ copy.

I guess I’ll have to file a feature request for such a thing in Syncthing.

Yes. But search for “override” “automatic” and so on here on the forum. There’s been a lot of discussion around this and the current setup is the way it is for good reasons.

You can run a cronjob (on the master) that automatically overrides via the rest api to get something similar. Documentation currently only in the PR here: https://github.com/syncthing/docs/pull/193

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