Using ignore patterns to only sync (bidirectional) one subdirectory of docs/ from server to my phone. Changes propagate from server to phone but not from phone to server. Setting up identical ignore patterns on a separate computer (not phone) correctly does the bidirectional sync. All folders are set as Send & Receive. Permissions are set to Ignore on Android, as per normal.
Version: 1.4.0 on server and phone (although this has been going on for several versions, I can’t pinpoint with which version it stopped working).
New file created on phone: no log entries, not synced to server
New file created on server: file sync’d to phone
Existing file on both, deleted on phone or server, correctly deleted on both
Existing file on both, edited on server: sync’d to phone correctly
Existing file on both, edited on phone: not sync’d to server, no log entries.
Now if that file is subsequently edited on the server, a sync-conflict file is correctly created on both devices.
To summarize: new files created on phone are not sync’d, nor are changes made on the phone to existing files. All other changes/deletes/conflicts are handled correctly.
Sorry, forgot to say that I had done that already. Looking at the Web GUI on the phone, started with Local State showing 3413 files. Added file test.md then hit rescan. Still showed 3413 files.
Edit: I have other folders on this phone without ignore patterns that sync fine in both directions without having to rescan.
Well…I deleted the folder from Syncthing and set it up again. Now it works great again. Hrmm. Sorry I didn’t think to try that first! Wonder what the glitch was though…
Well, I spoke too soon. It worked correctly for a short time then stopped working again exactly as I described above:
To summarize: new files created on phone are not sync’d, nor are changes made on the phone to existing files. All other changes/deletes/conflicts are handled correctly.
After it stopped working, I again deleted the folder from Syncthing Android and from the phone, recreated the folder in Syncthing, and then allowed it sync from the server. And again, for about 10-15 minutes it all worked correctly again…and then it didn’t
Any ideas (including which STTRACE options might provide some insight)? Thanks!
Did you click the scan button after copying the file? If the watcher does not work you won’t see much in the logs, in which case its not very useful to us.
Of course… Wouldn’t make sense to do it before the copy That’s why this is so odd. It’s like Syncthing is blind to certain changes happening on the phone (but not all, as I described above). In any case, the watcher normally sees changes without using the scan button for the other folders on the phone.
Edit: I was able to reproduce this by creating a simple directory with subdirectory underneath and ignores setup to only sync the subdirectory to the phone. Again, it worked for a short time, but after coming back to it with no changes after several hours, it was “stuck”.
The logs state that family is ignored, so your patterns are wrong. I think nowadays you can just un-ignore the specific directory you want and ignore the rest, no need for the 3 entries per directory (and you forgot to unignore !/family/scott)