Skip to content

/rest/db/file availability lists a peer that is ignoring the file #10943

Closed

Description

@salmonumbrella

What happened?

I use /rest/db/file to check whether a file has reached a specific peer. When that peer ignores the file, availability still lists the peer, so it looks like the peer has a file it never received.

Steps:

  1. Share a folder between device A and device B.
  2. On B, add an ignore pattern for marker.json.
  3. On A, create marker.json in the folder.
  4. On A, call GET /rest/db/file?folder=<id>&file=marker.json.

Expected: B is not in availability, since it doesn't have the file.

Actual: B is listed in availability. /rest/db/completion?device=<B> also reports 100% for the folder.

From A's API there's no way to tell "B has the file" from "B ignores it".

Syncthing version

v2.1.5 when I hit it, now running v2.1.7

Platform & operating system

Linux amd64 (Docker) and macOS arm64 (Homebrew)

Activity

  1. added
    bug
    on Oct 27, 2026
  2. added a commit that references this issue on Oct 27, 2026
    ed38528
  3. added a commit that references this issue on Oct 28, 2026
    c2ffc33
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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions