Skip to content

Bisync fails when files are added during bisync operation #6841

Closed

Description

@laurensknoll

What is the problem you are having with rclone?

Bisync fails when files are added during bisync operation. Typically, files are added to the Path1 source (GCS), causing Listing1 to include files not actually copied.

As a result, the final Path1 Listing does not match the Path2 Listing. Hence, the bisync is marked as "failed" and the succeeding runs fail as well.

Error flow

Solution area
As we update files based on deltas, it makes sense to also update the Listing1 and Listing2 fileLists based on these deltas, instead of scanning the source and destination folders.

To do so, the copy operation needs to return the actual updates as well. Currently, fastCopy only returns the error details. By including the actual updates, we have the information to update the listing. Sadly, this information needs to propagate quite some layers and modules, from actual background transfers up to the bisync module.

What is your rclone version (output from rclone version)

1.61.1

Which OS you are using and how many bits (e.g. Windows 7, 64 bit)

Windows Server 2022, 64 bit

Which cloud storage system are you using? (e.g. Google Drive)

Google Cloud Storage and Local File Storage (Windows)

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

bisync gcs:/ C:\clone\

A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)

Sadly I haven't got an actual log of the issue. The script runs in the background on my server and fails every now and then.

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. ncw commented on Mar 16, 2023

    @ncw
    Member

    Does this not sort itself out if you run bisync again? That is what is supposed to happen I think.

  2. nielash commented on Aug 20, 2023

    @nielash
    Contributor

    I can confirm that this is still an issue, and (IMO) one of the most important to solve (but also one of the trickiest.)

    Does this not sort itself out if you run bisync again?

    No, and that's by design. The idea is that if Path1 and Path2 don't match at the end of a bisync run, then something went very wrong and we want to lock out future runs until the user can take a look.

    My proposed solution is the approach I described here, which is similar to what the OP suggests.

    In the meantime, my recommendation is to use --check-sync=false and periodically do an independent integrity check as described here.

    Since this issue is a dupe of #5676, I propose that it should be closed in favor of that one.

  3. nielash commented on Sep 5, 2023

    @nielash
    Contributor

    I'm closing this as a duplicate of #5676. Please subscribe to that ticket for further updates!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions