Skip to content

Dangling symlink prevents filesystem watcher on FreeBSD #5360

Closed

Description

@gihnius

Easy to reproduce

$ cd $HOME/Sync/data
$ ln -snf /link-a-non-existing-file to-here

or from any sub folders inside your sync path

$ cd $HOME/Sync/data/ebooks
$ ln -snf /usr/local/www/non-existing book.pdf

then you will see the error message from your browser.

Filesystem Watcher Errors: error while traversing /path/to/exists/file_or_dir: no such file or directory

Version Information

v0.14.54, FreeBSD (64 bit)

Syncthing Version: v0.14.54
OS Version: FreeBSD 12.0-RC2
Browser Version: Chrome Version 70.0.3538.67 (Official Build) (64-bit)

Activity

  1. desbma commented on Dec 10, 2018

    @desbma
    Contributor

    It is probably specific to FreeBSD, I can not reproduce on Linux.

  2. gihnius commented on Dec 12, 2018

    @gihnius
    Author

    It is probably specific to FreeBSD, I can not reproduce on Linux.

    Yes, no this problem on both Linux and MacOS.

  3. GlenHertz commented on May 15, 2019

    @GlenHertz

    I get this too on FreeBSD 11.2.

  4. added
    bug
    on May 16, 2019
  5. changed the title [-][FreeBSD] Filesystem Watcher Errors: error while traversing /path/to/exists/file_or_dir: no such file or directory[/-] [+]Dangling symlink prevents filesystem watcher on FreeBSD[/+] on May 16, 2019
  6. imsodin commented on May 27, 2019

    @imsodin
    Member

    This might be kqueue specific, which is used on the BSD variants, and available but unused in favor of fswatcher on macos. We could add a test stage with -tags kqueue on macos to test with that backend for notify.

  7. liweitianux commented on Oct 3, 2019

    @liweitianux

    Hello. I'm having this issue on DragonFly BSD as well.

  8. bitclick commented on Feb 4, 2020

    @bitclick

    Hi, I am having the same issue on

    Freebsd 11.3-RELEASE-p5 with
    Syncthing v1.3.0 64bit.

    Fix possible?
    I also think it might be some shortcoming of kqueue. Maybe it has to be called with a special flag, or it depends on some specific kernel-patch?
    This page gives some hints (the test explanations in README):
    https://github.com/libinotify-kqueue/libinotify-kqueue

    maybe-workaround?
    If it depends on the presence of a kernel/library-feature, maybe syncthing could check for that and give a better failure-message? or it could try to just not watch the offending symlinks (and tell the user), so that theres some support for watching.

    do i need watching anyways?
    For the moment i turn off watching completely on this machine. Is there anything to keep in mind about that? It is just a fileserver used as a always-on hub for syncthing. "No" changes on the server are to be expected.

  9. f4814 commented on Jul 6, 2020

    @f4814

    Hi. I'm bitten by this as well (FreeBSD 11.3). Is there any chance this will get fixed in the near future?

  10. AudriusButkevicius commented on Jul 6, 2020

    @AudriusButkevicius
    Member

    I don't think any of the maintainers runs BSD, so I don't think it's a high priority for us.
    We're happy to accept pull requests fixing this.

    I suspect a proper fix would needs to happen in the underlying libraries we use.

  11. added a commit that references this issue on Nov 9, 2020
    526dbb8
  12. added this to the v1.12.0 milestone on Nov 9, 2020
  13. added a commit that references this issue on Nov 11, 2020
    fcd80c1
  14. added
    frozen-due-to-age
    on Nov 10, 2021
  15. locked and limited conversation to collaborators on Nov 10, 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

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions