Skip to content

[Bug]: Error after second sync: It produces >50% changed files error in the second computer #980

Description

@gerardbosch

What happened?

Hi! Thanks for working on this extension, that's super nice! 😊😊

I'm facing trouble when using the Backblaze B2 backend (S3) to sync Obsidian files between 2 computers.

Steps to reproduce

Computer-A is the original that contains the vault, and Computer-B is the one where I want to replicate the vault (and then keep both in sync).

Computer-A:

  1. Configure the bucket, and check that the connection works
  2. Perform the initial sync (wait until finish)
  3. Check that the files have been uploaded to the Backblaze bucket

Then, Computer-B:

  1. Configure the bucket, and check that the connection works
  2. Perform the initial sync and check that all files have been successfully downloaded
  3. Wait for a moment and manually trigger the sync again

Expected:

The second sync on Computer-B finished immediately and successfully, as there were no changes neither on Computer-A nor Computer-B files.

Actual:

The second sync on Computer-B produces the following error:

startting sync.

plugin:remotely-save:234 Error: Abort! you set changing files >= 50% is not allowed but 131/173=75.7% is going to be modified or deleted! If you are sure you want this sync, please adjust the allowed ratio in the settings.
    at eval (plugin:remotely-save:227:48637)
    at Generator.next (<anonymous>)
    at eval (plugin:remotely-save:76:373103)
    at new Promise (<anonymous>)
    at r (plugin:remotely-save:76:372848)
    at sx (plugin:remotely-save:227:45756)
    at eval (plugin:remotely-save:227:65006)
    at Generator.next (<anonymous>)
    at s (plugin:remotely-save:76:372905)

endding sync.

Notes

  • Subsequent sync on Computer-A works well disregarding there's no changes, a file is updated or a new file is created.

Debug info:

When I export the sync plan on Computer-B > Export latest 1 (change part), I see in the generated file 131 of entries like the following (the number matches with error above):

  "programming/fp/Ad-hoc polymorphism (Typeclasses).md": {
    "key": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
    "remote": {
      "key": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
      "keyRaw": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
      "mtimeSvr": 1739019592000,
      "mtimeCli": 1725300876000,
      "sizeRaw": 8613,
      "size": 8613,
      "etag": "\"898a6115f24566d8332f401530fc6a7a\"",
      "synthesizedFolder": false,
      "keyEnc": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
      "sizeEnc": 8613,
      "mtimeCliFmt": "2024-09-02T20:14:36+02:00",
      "mtimeSvrFmt": "2025-02-08T13:59:52+01:00"
    },
    "prevSync": {
      "key": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
      "keyRaw": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
      "mtimeSvr": 1739019592000,
      "mtimeCli": 1725300876000,
      "sizeRaw": 8613,
      "size": 8613,
      "etag": "\"898a6115f24566d8332f401530fc6a7a\"",
      "synthesizedFolder": false,
      "keyEnc": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
      "sizeEnc": 8613,
      "mtimeCliFmt": "2024-09-02T20:14:36+02:00",
      "mtimeSvrFmt": "2025-02-08T13:59:52+01:00"
    },
    "local": {
      "key": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
      "keyRaw": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
      "mtimeCli": 1739019866000,
      "mtimeSvr": 1739019866000,
      "size": 8613,
      "sizeRaw": 8613,
      "mtimeCliFmt": "2025-02-08T14:04:26+01:00",
      "mtimeSvrFmt": "2025-02-08T14:04:26+01:00",
      "keyEnc": "programming/fp/Ad-hoc polymorphism (Typeclasses).md",
      "sizeEnc": 8613
    },
    "decisionBranch": 10,
    "decision": "local_is_modified_then_push",
    "change": true
  },

What OS are you using?

Linux

What remote cloud services are you using? (Please choose the specified one if it's in the list)

S3 (BackBlaze B2)

Version of the plugin

0.5.25

Version of Obsidian

1.8.4 (nix package manager installation)

Using password or not

  • Yes.

Ensure no sensitive information

  • I ensure that no sensitive information is submitted in the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions