You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filesystem watcher: Permission errors in ignored folders #6072
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Problem: I get Filesystem Watcher Errors like:
Folder1 | error while traversing .../.spam: permission denied
Folder2 | error while traversing /mnt/disk/lost+found: permission denied
As a result, the watcher does not even start.
The filesystem watcher should not even be in those locations, as they are in the ignore pattern. If it does not follow the ignore patterns, it also would request too many system resources. My pattern includes some folders with !/folder1, and then excludes everything else with /*. In the first case, .spam is deep inside an ignored folder.
These files cannot be made rw for the user due to system constraints.
Expected: The filesystem watcher should not touch anything that is in the ignore pattern.
Version Information
Syncthing Version: v1.3.0
OS Version: Ubuntu 16.04
This is, currently, expected. Ignore exceptions (!-patterns) means Syncthing will traverse the full tree regardless. You might, as a human, realize that this is unnecessary in your specific case. As a machine it's trickier, even for rooted patterns. It's obviously not impossible so it's an area for future optimization.
Permissions are a fundamental feature of most file systems, used by many software packages. Its intended use should be handle more gracefully than fully breaking the notify feature. So I would suggest this is rather a bug.
@calmh Will any!-pattern cause syncthing to disable optimizations and traverse the full tree, or is there a way to force Syncthing to ignore specific subtrees finally and completely even in presence of !-patterns?
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Oct 8, 2019
This is, currently, expected. Ignore exceptions (
!-patterns) means Syncthing will traverse the full tree regardless. You might, as a human, realize that this is unnecessary in your specific case. As a machine it's trickier, even for rooted patterns. It's obviously not impossible so it's an area for future optimization.nalt commentedon Oct 8, 2019
Ok. Is there any trick to tell the watcher where to go, or where not to go?
AudriusButkevicius commentedon Oct 8, 2019
Inverting the patterns (to avoid !) Is the only way I think, or resolving permission issues.
nalt commentedon Dec 14, 2019
Permissions are a fundamental feature of most file systems, used by many software packages. Its intended use should be handle more gracefully than fully breaking the notify feature. So I would suggest this is rather a bug.
intelfx commentedon May 25, 2020
@calmh Will any
!-pattern cause syncthing to disable optimizations and traverse the full tree, or is there a way to force Syncthing to ignore specific subtrees finally and completely even in presence of!-patterns?If there's not, please consider adding one.
(See this support topic for context: https://forum.syncthing.net/t/completely-prevent-syncthing-from-traversing-a-directory-subtree/15060)
calmh commentedon Aug 31, 2020
Closed in favor or the slightly newer duplicate, as that one is now a somewhat clearer description of the problem and expected solution.