Skip to content

Filesystem watcher: Permission errors in ignored folders #6072

Closed

Description

@nalt

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

Activity

  1. calmh commented on Oct 8, 2019

    @calmh
    Member

    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.

  2. nalt commented on Oct 8, 2019

    @nalt
    Author

    Ok. Is there any trick to tell the watcher where to go, or where not to go?

  3. AudriusButkevicius commented on Oct 8, 2019

    @AudriusButkevicius
    Member

    Inverting the patterns (to avoid !) Is the only way I think, or resolving permission issues.

  4. added
    enhancement
    on Oct 13, 2019
  5. nalt commented on Dec 14, 2019

    @nalt
    Author

    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.

  6. intelfx commented on May 25, 2020

    @intelfx

    @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)

  7. calmh commented on Aug 31, 2020

    @calmh
    Member

    Closed in favor or the slightly newer duplicate, as that one is now a somewhat clearer description of the problem and expected solution.

  8. added
    frozen-due-to-age
    on Sep 1, 2021
  9. locked and limited conversation to collaborators on Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions