You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Activity
calmh commentedon Nov 19, 2025
We should not bubble this type of error from the scan
DylanSp commentedon Feb 5, 2026
I'm trying to reproduce this. It looks like the error is flagged inside
scan(), inlib/scanner/walk.go: https://github.com/syncthing/syncthing/blob/main/lib/scanner/walk.go#L245. But it looks like the callback returned fromwalkAndHashFiles()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.calmh commentedon Feb 5, 2026
I think it's a race condition, where we start scanning a file while it exists, and then it suddenly doesn't.
DylanSp commentedon Feb 6, 2026
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).Scanreports it asAborted 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.fix: avoid warning on does-not-exist scan error (fixes syncthing#10465)…
Merge branch 'main' into jb/stoppedstate