Sync won't complete

I have syncthing running on a few machines and am having problems with syncing, although I believe I have all the files properly synced, but I can’t be sure.

At first I had about 300 MB and 11 files that potentially had a problem. Both computers under folders said “Up to Date”. However, my linux computer said that my TrueNAS server under “Remote Devices” was only partially synced. The TrueNAS server said everything was fine.

I tried re-scanning and rebooting many times. Eventually I just completely removed the folders and remade them.

Now both devices show the folder with 152,127 files and 1.14 TB of data, however on recreating the folders my linux computer says “Up to Date” and that the TrueNAS remote device is 88% 209 GB out of sync. The TrueNAS server says its folder is “Out of sync” but shows the same number of files, but specifies 38.051 items out of sync.

Linux computer:

TrueNAS server:

Linux computer logs: grep -i “zata” syncthing.log

[DGMAV] 2025/04/02 12:38:19 INFO: Unsharing folder "zata" (sv4vq-t7t7t) with MF2YDJU as introducer D6E6F2Y no longer shares the folder with that device
[DGMAV] 2025/04/02 12:38:19 INFO: Ready to synchronize "zata" (sv4vq-t7t7t) (sendreceive)
[DGMAV] 2025/04/02 12:38:19 INFO: Restarted folder "zata" (sv4vq-t7t7t) (sendreceive)
[DGMAV] 2025/04/02 12:38:25 INFO: Failed initial scan of sendreceive folder "zata" (sv4vq-t7t7t)
[DGMAV] 2025/04/02 12:39:42 INFO: Unexpected folder "zata" (z7yy2-72iqk) sent from device "D6E6F2Y"; ensure that the folder exists and that this device is selected under "Share With" in the folder configuration.
[DGMAV] 2025/04/02 12:40:07 INFO: Adding folder "zata" (z7yy2-72iqk)
[DGMAV] 2025/04/02 12:40:07 INFO: Ready to synchronize "zata" (z7yy2-72iqk) (sendreceive)
[DGMAV] 2025/04/02 12:40:07 INFO: Device D6E6F2Y folder "zata" (z7yy2-72iqk) has a new index ID (0x351B0F8224BF1321)
[DGMAV] 2025/04/02 12:54:47 INFO: Completed initial scan of sendreceive folder "zata" (z7yy2-72iqk)

TrueNAS logs: grep -i “zata” syncthing.log

![image|690x43](upload://qhbuPy4sjD9ARg7ekOSVOYpjOz6.png)

All of these files should theoretically already be synced, as they were before I remade the folders because at first only 300 MB were not in sync and now its 209 GB.

Any help appreciated. I can also run different commands in the log files if any of you have more specific queries that might be helpful.

The TrueNAS logs image didn’t seem to upload. Here it is:

image

This is repeated many, many times for many different files.

Again, any help appreciated. Thank you.

Okay, I solved it…

I had transferred files via a windows share on the TrueNAS server to the synced folder - this used the permissions for the windows share user on the TrueNAS and not the syncthing user. The group was correct, but I am not sure syncthing on TrueNAS always works with group permissions vs user, I think I ran into that problem in the past. Anyway, after:

chown -R syncthing:shares /new/directory/with/problem
chmod -R 750 /new/directoryo/with/problem

A new scan fixed the problem, all files synced!

2 Likes

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