Skip to content

“Too many symbolic links” loading ignores #10785

Closed

Description

@chrisisbd

What happened?

I'm running syncthing version 2.1.2 on Debian 13.

If I make the .stignore file a symbolic link to a file (say stignore) in the same directory as .stignore, i.e. a very simple symbolic link I get the following errors:-

2026-07-10 11:39:19: Failed to load ignores (error="open /home/chris/.share/.stignore: too many levels of symbolic links" log.pkg=model)

2026-07-10 11:39:19: Failed initial scan (error="loading ignores: open /home/chris/.share/.stignore: too many levels of symbolic links" folder.label=share folder.id=js5va-zt99v folder.type=sendreceive log.pkg=model)

The symbolic link is as follows:-

chris@q957$ cd /home/chris/.share
/home/chris/.share
chris@q957$ ls -l .stignore stignore
lrwxrwxrwx 1 chris chris  8 Jul 10 11:37 .stignore -> stignore
-rw-rw-r-- 1 chris chris 12 Jul 10 11:31 stignore
chris@q957$ 

Syncthing version

v2.1.2

Platform & operating system

Debian Linux

Browser version

No response

Relevant log output

Activity

  1. added theissue type on Jul 11, 2026
  2. added
    bug
    needs-triage
    on Jul 11, 2026
  3. changed the title [-]“Too many symbolic links” but there aren’t[/-] [+]“Too many symbolic links” loading ignores[/+] on Jul 11, 2026
  4. removed
    needs-triage
    on Jul 11, 2026
  5. maia-s commented on Jul 12, 2026

    @maia-s

    I have this problem too since a recent update, both on linux and macos. This is actually pretty serious as it stops sync from working at all while the symlink is present. The symlink worked fine with an earlier version of syncthing.

  6. abh commented on Jul 15, 2026

    @abh

    It seems like the limit for symbolic links for the .stignore file is now 0? Seeing the error I expected my directories to be a big symlink tree, but it's just .stignore -> .stignore-canonical.

  7. abh commented on Jul 15, 2026

    @abh

    Claude says #10739 caused this.

  8. abh commented on Jul 15, 2026

    @abh

    At a glance it looks like putting #include {file} into .stignore works as a replacement for symlinking to {file}.

  9. added a commit that references this issue on Jul 16, 2026
    c1d8045
  10. added a commit that references this issue on Jul 20, 2026
    eb1d3ac
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

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions