Skip to content

Zero-filled files with "round" sizes are failing to synchronize #10331

Closed

Description

@jared52005

What happened?

Hello,
I have found following issue with syncthing when I have synchronized over 1 million files, some files has failed to synchronize as Failed Items (around 40) with following error (example)

Others\....\AppData\Indexed DB\edbres00002.jrs

syncing: finishing: setting permissions: chmod \\?\F:\Others\...\AppData\Indexed DB\~syncthing~edbres00002.jrs.tmp: The system cannot find the file specified.

See the zipped example
edbres00002.zip

The problem can be manually fixed by copying edbres00002.jrs from source computer and inserting it into target destination, that will resolve failed item on the next scan.

However what every single error like that one has in common is that

  1. File has round size, in this case 524288 bytes = 0x80000
  2. File consists only of 0x00

looks like some edge case.

Syncthing version

v2.0.3

Platform & operating system

Windows x64

Browser version

Brave 1.81.137 (Chromium 139.0.7258.158)

Relevant log output

Activity

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

    @calmh
    Member

    Fascinating, can confirm. It's files that are 1) all zeroes and 2) are sized to a block boundary. That means we have no data to transfer and no data to copy, and some shortcut goes wrong.

  4. removed
    needs-triage
    on Sep 1, 2025
  5. changed the title [-]Files with "round" sizes are failing to synchronize[/-] [+]Zero-filled files with "round" sizes are failing to synchronize[/+] on Sep 1, 2025
  6. added a commit that references this issue on Sep 1, 2025
    fafc3ba
  7. added this to the v2.0.4 milestone on Sep 1, 2025
  8. added 2 commits that reference this issue on Sep 1, 2025
    1bd4a34
    e050c15
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions