Skip to content

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

@jared52005

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA problem with current functionality, as opposed to missing functionality (enhancement)

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions