Duplicate files on the cloud [NOT initial setup + reproducible with script]

Duplication issue has been raised several times on the forum. I’d like to distinguish this post by emphasizing that this bug happens OUTSIDE of initial sync. It’s NOT “filename (2)” kind of duplicate on local computer. And I can reproduce this issue consistently with scripts.

To reproduce this issue:

  1. Have some files in a folder A in Google Drive. Make sure Insync has synced all of them.

  2. Have some other files with the exact same set of filenames, but different content, in an external folder B (not synced with Google Drive)

  3. Move the files in folder A to a newly created folder C also in Google Drive

  4. Move the files in folder B to folder A

  5. Delete folder C and the files in it

Note: step 4 and 5 may be interchanged, but step 3-5 must be done in rapid succession. Folder C could be placed anywhere in Google Drive, but in practice placing it as a subfolder of folder A seems to have a higher success rate of reproducing the issue.

Expected result:
Files in folder A are updated with files originally in folder B

Actual buugy result:
On local computer, everything is still fine. But on the cloud, the original files in folder A may not get deleted nor moved to anywhere else, while files originally in folder B are still added to folder A, resulting in two sets of files with the exact same names. The original files in folder A become “zombies” that are stuck in the cloud and can never be accessed, modified, synced or deleted locally by Insync.

How this was discovered:
I noticed the duplication when I was using FreeFileSync. It uses a similar procedure to update folders it syncs. The procedure acts as a fail-safe file copy that prevents data corruption.

My script:
I wrote a Python script to reproduce this issue. It can be found here.
The script would repeat this procedure for a number of times. Not every time is guaranteed to have duplicates for all files, but at least half the times there’d be some more duplicates.

My client and system:
Insync 1.3.14.36131
Windows 7 Professional SP1
Google Drive official client is not running

2 Likes

Can you send in your logs as well to support@insynchq.com along with the link to this post?
How to find the log files

cc @dipesh

Hawk, I hope you help us settle this issue once and for all! I’ve gotten similar issues in the past, but didn’t have it as well documented as you did. You’re doing the entire community a favor. Thanks! :slight_smile:

1 Like

Bump
checking on progress if any
@dipesh

Two Insync updates later and still not fixed. Gotta keep nagging
@dipesh

A recognition of the problem would be a first step.

@Hawk I will try replicating this issue using your script and update you by next week. Sorry for the delay.

bumping again. Ran into what appears to be the same issue. Thanks to @Hawk for the clear post.

Bumping again.

Insync 1.4 is out. But this bug is still not fixed.
Just tested today with Insync 1.4.3.37063 on Windows 7 Pro, using the same script linked in the OP.