Ignored Folder is Out of Sync on Untrusted Device.

Hi, I have three devices: my phone, my PC, and a VPS, which is set as untrusted. I’ve configured a folder to sync across all of them, with the VPS set to “Receive Encrypted” and without the password to decrypt the folder.

The issue I’m encountering is that there’s a subfolder that is listed in the Ignored Patterns on both the PC and the phone, but I can’t add it to the VPS because it seems that ignored patterns aren’t supported on encrypted folders. As a result, this subfolder shows as “Out of Sync” on the VPS, leaving me with the annoying “Syncing (99% 250 bytes)” message on both the PC and the phone.

Is there any way to resolve this? Could this be a bug or a missing feature?

It would be a missing misfeature, IMHO. One of the core aspects of receive-encrypted folders is that the receiver should not see the unencrypted file names and directory structure. Thus ignore patterns based on the cleartext names can never be applied to receive-encrypted folders.

To solve your problem, you actually need to get rid of the files on some trusted device, while they are not ignored. They are still part of your folder’s “global state”, so deleting them locally while Syncthing ignores them would not have any effect on that. You need to unignore them, delete them, and have Syncthing notice the deletion. That will also propagate to the untrusted device.

Afterwards, you can ignore them again on the trusted device and possibly put them back into place, if that’s your desired end state.

3 Likes

Well, thank you very much. After MANY attempts, I managed to get everything working as it should.

Note for future visitors: At least for me, it wasn’t enough to remove the folders from the ignore patterns because some “dangling files” still remained, but after removing the folder from the untrusted remote and adding it back everything started working again.

1 Like