Hi,
This is a strange problem, I have a big folder A (around 100GB, 300k files,69k sub-folders) to sync, however there is small part of subfolders/files in A are not scanned(I manually checked via rest db api) and I didn’t find any error msg in log.
however if I add missed subfolder directly as syncthing folder, then it gets scanned without issue. for example, subfolder B under A didn’t get scanned if I add A as syncthing folder; but there is no issue if I add B as the syncthing folder.
Please check the log for anything that would help understand what’s happening here. You may want to rescan the folder while watching the log.
If that doesn’t show anything of value, I would suggest you turn on each of these debug facilities (one at a time), to see if there are messages that help: sync, fs, scanner.
I had a similar problem this weekend setting up Syncthing (using SyncTrayzor) on two new Windows laptop computers to sync with each other. The source was Windows 10, the target was Windows 11. I was syncing the Documents folder containing about 60,000+ files.
SyncTrayzor on the source only identified about 55,000 files. Rescanning did not find the extra folders and files. I went ahead with the sync process.
Once the 50,000+ files were synced to the target, I ran the following statements on each laptop from a command prompt in the Documents folder to get a list of just the top-level directories on each machine. Comparing the two outputs showed me which top-level folders didn’t get synced to the target. There were several.
dir /b /ad > files-source-dir.txt
dir /b /ad > files-target-dir.txt
I MOVED the “missing” folders to C:\Temp on the source and then immediately moved them back to Documents. This caused SyncTrayzor/Syncthing to pick them up and sync them to the target. Once the sync was complete again, SyncTrayzor matches on both laptops (number of files, folders and size). Screenshot below (same on both laptops).
When I right click on Documents in File Explorer and choose Properties on BOTH the source and target computers, those file/folder/size numbers match as well, but they are different than what SyncTrayzor is showing.
So everything now appears to be synced, but SyncTrayzor doesn’t match up. In summary, my questions are:
Why didn’t Syncthing pick up all of the files and folders initially?
Why did moving the missing folders out and back in cause them to be picked up in the source?
Why does SyncTrayzor show different files/folders/size than File Explorer?
This is usually caused by some type of permission-related issues, however if installed via SyncTrayzor, this really shouldn’t be the case with Documents and other folders located in the user profile folder.
Slight differences are expected, because Syncthing doesn’t count its internal folders with their contents, e.g. .stfolder, and especially .stversions if you’re using File Versioning.