Skip to content

Aborted scan of path … file does not exist #10465

Closed

Description

@mexsudo

What happened?

I get flags in the GUI:

2025-11-14 06:21:51: Aborted scan of path ‘z840-1.mail/.thunderbird/3xqyqis0.default/Mail/mail.sdi-baja.com/friends.sbd/.Ehlerts y Petersons.y66A3X’ due to an unexpected error: file does not exist

2025-11-14 06:23:41: Aborted scan of path ‘archive/.thunderbird/3xqyqis0.default/Mail/mail.sdi-baja.com/friends.sbd/.Ehlerts y Petersons.B8Pl9X’ due to an unexpected error: file does not exist

I click OK. when I update the .thunderbird folder it returns … Not always the same “non-existing” files.

Happens on a couple of the nodes too

running Debian Trixie, Mate desktop. syncthing installed from the Debian repositories

No data loss that I detect, just Annoying

Syncthing version

v1.29.5, Linux (64-bit Intel/AMD)

Platform & operating system

Debian Trixie

Browser version

Firefox 140.4.0esr (64-bit)

Relevant log output

Activity

  1. added theissue type on Nov 19, 2025
  2. added
    bug
    needs-triage
    on Nov 19, 2025
  3. calmh commented on Nov 19, 2025

    @calmh
    Member

    We should not bubble this type of error from the scan

  4. removed
    needs-triage
    on Nov 19, 2025
  5. DylanSp commented on Feb 5, 2026

    @DylanSp

    I'm trying to reproduce this. It looks like the error is flagged inside scan(), in lib/scanner/walk.go: https://github.com/syncthing/syncthing/blob/main/lib/scanner/walk.go#L245. But it looks like the callback returned from walkAndHashFiles() should swallow any errors from nonexistent files, here: https://github.com/syncthing/syncthing/blob/main/lib/scanner/walk.go#L334-L339. I'm not very familiar with the codebase, so I might be missing something pretty obvious.

  6. calmh commented on Feb 5, 2026

    @calmh
    Member

    I think it's a race condition, where we start scanning a file while it exists, and then it suddenly doesn't.

  7. DylanSp commented on Feb 6, 2026

    @DylanSp

    After looking further, I think I was wrong about where the error gets flagged. The error message reported is Aborted scan of path (PATH) due to an unexpected error: file does not exist, but the spot I was looking at within (*scanner.walker).Scan reports it as Aborted scan due to an unexpected error, without interpolating the "of path (PATH)" text. I grepped around the codebase and didn't find anywhere that might be returning the exact reported error.

  8. added a commit that references this issue on Jul 16, 2026
    c904140
  9. 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