Cannot get Out of Sync, how do we reset?

Hi! First, I love SyncThing. Ben using NextCloud, OwnCloud, Seafile (all self hosted), and wish to not switch again.

Now, I got a problem syncing a folder with 11,500 files to the server, from the server standpoint. Server is out of sync and I cannot fix that.

  • By server I mean the self-hosted syncthing docker-compose from lscr.io/linuxserver/syncthing in version v1.29.7
  • server runs with PUID=1000 and all files belong to that user in the VM and the host
  • clients are Windows v1.30.0 with SyncTrayzor tray
  • folder is shared from main client with unstrusted password, all I want is 2 other machines to keep a copy.

main client → server

main client → client 2

client 2 and server do not share, it’s not a 3-way

client 2 and Main client on the same LAN show 100% sync between each other:

And main client show itself 100% in sync with server:

So what I tried is unshare that folder from the server and from client 2. Then I deleted the folder from /data on the server. Then from main client, I share it with client 2, it does accept, and sync happens and works great. Then from main client, I share it with server, it does accept, and then sync fails because folder does not exist… So I create the /data/folder and also folder/.stfolder/ manually because syncthing cannot create it (?), and then sync starts over. But it fails eventually. Now from ther server, it shows 11,900 files changed, and 25,400 files out of sync ??

What am I doing wrong? Do I need to unshare from main client as well so it thinks it’s a new folder?

No, you love “Syncthing”, no capital T.

I think you deleted the folder without removing it from Syncthing, and the entire point of the .stfolder is that isn’t recreated in this case to avoid propagating the files you just deleted.

Have you changed anything on the server locally (which you shouldn’t do with Receive Encrypted)? Iff you haven’t, have you tried the red “Revert Local Changes” button?

hi, yes I tried this option. Maybe I did not wait long enough and restarted the server at some point, so I just retried. It never ends, and the client originator stays stuck at 36% and still showing 25,421 items out of sync (double the actual number)

Does removing the folder (via Edit → Remove), and readding it to Syncthing help?

If you delete a folder on disk, without removing it from Syncthing, when you manually create the .stfolder, the new folder is considered the same as the old folder.