Hi, I noticed a thread Encryption - nothing being synced discussed a problem that seems similar to my very first experience with Syncthing: after configuring a folder with encrypted sending, the receiving side displayed fully synced with 0 files. After following the instructions in this thread to pause both sides, the problem resolved on its own. I didn’t find an active GitHub ticket for it. Can you please confirm if you’re tracking this?
I’ll also share one more Web GUI critique from my first experience: I don’t understand why the folder path cannot be changed once already created. We have to delete and re-create the folder just to change the path (for example, if we use a wrong path inside a Docker container’s virtual filesystem). But then, after deleting the folder, the receiving side no longer displays the synced folder that the sending side holds. The folder is fully “Up to Date” there, but its parameters aren’t being synced to the other machine. The only solution seems to be to change/re-create the folder, just to have it propagate - or to manually type all the values, including folder ID.
In other words: not only is the data not being synced, but the metadata is not being synced either.
Does this hold a low priority? Do you only focus on advanced features for power-users, but not on making it comfortable to set up the most basic scenarios without having to research workarounds? Please log the corresponding tickets if they don’t exist and if this is reproducible.
This is because if you don’t know what you’re doing, changing the folder path can possibly lead to data loss (i.e. Syncthing will think that you’ve deleted everything and propagate the deletions to all remote devices). If you do know what you’re doing, you can still easily change the folder path via Advanced Configuration.
Similarly to the encryption issue mentioned above, after removing the folder on one side, you need to “reset” the connection (i.e. pause and resume the remote device). Syncthing will then show its normal “Add Folder” pop-up.
Thanks, I saw the first GitHub issue but it was not this problem; but the second one seems to be the right one. I see, tracked since 2021…
Yeah, I guess you’re right it would be far from trivial to handle all situations in the UI. I guess it’s a shame that the path cannot be changed at least while the folder is still completely empty, in which case no risk of data loss is there. And yeah, the Advanced Configuration would feel too dangerous exactly for these reasons. If we want to make a quick change to our syncing setup, the main use-case is that we want to keep the existing state intact. Typically, we would keep the old filesystem directory as a temporary backup, create the new directory and have the folder sync again (initially either from that temp backup, or from the real device), and lastly we’d delete the temporary backup when we confirm it’s all safe. The other alternative would imply having to trust the delta calculation to detect file deletion while the files are being moved, which would be just too risky. That’s exactly the reason why a proper folder rename feature would be perfect
And yeah, thanks for confirming this folder metadata sync bug is also by-design for now. Is it also tracked and will it be addressed? It makes me worried how many more issues I’ll discover when this is the current state of things, but hopefully it’s limited to the initial setup troubles
What “metadata sync” are you talking about? As I understand your comment, you mean parts of the Syncthing folder configuration should be applied on other devices as well? Which parts / options?
Folder configuration is completely exempt from synchronization. The basic premise is that each device is operated by a (usually) trusted entity, with exactly the same freedoms and privileges. No device can force anything upon another, except for changes to the synced files (which is the actual purpose). Folder types, watcher settings, paths, labels, etc. are all set deliberately by each Syncthing instance’s owner. It’s not a centrally managed solution (but can be deployed as part of one, if you get a bit technical).
I meant the metadata of the folder, so the information about “folders available to sync” propagate:
I’m not sure what type of data is it really though, because it only gets displayed on the Web GUI as a suggestion box that can be closed. Maybe it only propagates initially. In that case, the only conflict I have is that the UI doesn’t teach a new user how to trigger this propagation. I thought that each device will keep propagating all folders that it publicly presents, and that if we close the initial popup, we can still navigate to the list of available folders. If there’s no way to sync this type of metadata, well, then we have to delve deep into documentation I guess. Setting up the simplest setup was already exhausting enough due to how each detail required some workaround… It’s just a feedback in case some someone deems these user journey flows as valid.
Yeah, it’s is a bit tricky because after you remove a folder, we don’t know if the other side still shares it. The other side also doesn’t immediately realise that the folder is gone locally. That’s why you need to either force a connection refresh manually, or wait until there’s a new Add Folder pop-up (which I believe will happen, e.g. when the other side makes some changes in the folder and wants to push them to you).
In the past, connections used to be always dropped when making changes in the configuration, so these issues weren’t present. The overall experience was much more “janky” though, as connections were being dropped even after very minor config changes, and then you had to wait to reconnect every time.