Duplicate Folders displaying like "(2)" and "(3)"


#1

The phenomena below may be a bug of insync, or one of Google Drive, but I will tell this as a bug report.

Recently, I moved my mail folder (mh-style) with 150,000 files to Google Drive. Syncing is mostly perfect, but it caused some troubles several times.
Most prominent bug is folder duplication. For example, the folder structure below

Mails — settings —±-- imapcache
|
±-- mimetmp
|
±-- newscache
|
±-- plugins
|
±-- templates
|
±-- tmp
|
±-- uidl

there is (are) several duplicate folders like

Mails — settings —±-- imapcache
|
±-- mimetmp
|
±-- mimetmp (2)
|
±-- newscache
|
±-- plugins
|
±-- templates
|
±-- templates (2)
|
±-- tmp
|
±-- uidl
|
±-- uidl (2)

This phenomena arbitrarily happens and cannot detect before syncing (Everytiime I noticed after syncing is starting and mail software shows abnormal behavior). Actually, I can see two (or more) folders with the same name are created in Google Drive (This is why Insync cannnot handle folders with same name and handle as adding “(2)” or “(3)” as a temporary measure).

However, I always use Insync to access to Google Drive from Linux (Ubuntu 16.04) and Windows (Windows 10 mostly, one Windows 7), and this phenomena is likely caused by some improper folder identification between Google Drive and Insync.

I checked many threads describing similar issues, and could not find the solution. It is really grateful if somebody show some tips or technique to avoid this folder duplication, or at least explain why this phenomena occurs.

Thank you.


#2

I have the same issue on multiple computers running macos.


#3

hi @terakin, are you using the native Google Drive app alongside Insync in any of your machines? That causes duplication issues at times. You should log out of the native Google Drive app in this case.

If not, please send your log files to support@insynchq.com for investigation: How to find the log files


#4

Hi gio,

2017-06-27 15:14 GMT+09:00 Gio Tiongson support-notification@insynchq.com:

hi @terakin, are you using the native Google Drive app alongside Insync in any of your machines? That >causes duplication issues at times. You should log out of the native Google Drive app in this case.

In this case, I don’t use native Google Drive app in any computer because I love Insync: )
Anyway, there is no client for Google Drive for Linux, and Insync can handle multiple accounts, and I am using Insync on all computers.

Aside from computers, I am using native Google Drive apps on my tablets and smartphone. Will this usage induce bad effect for Google Drive?
Also, I am using Web version of Google Drive to remove duplicated directories.

If not, please send your log files to support@insynchq.com for investigation: How to find the log files

OK, I am ready to send a log to support@insynchq.com soon.

Thanks,


#5

If anything, the appearance of these numbers is a GOOD thing. Helps you to know when you have duplicate copies that you do not need.


#6

Yes, I understand the mechanism of Google Drive. Unlike other online data sharing service like Dropbox, Google Drive manages their files and folders on unique ID (maybe not UUID). And so it is a reasonable result that there maybe multiple folders (or files) with the same name in the Drive. The question (or To Be Fixed) is why this situation occurs and how to avoid it in Insync.

This is just my speculation that file/folder syncing between different OS (such as Ubuntu and Windows) confuses Insync or Google Drive. However, we can only rely on Insync log to understand what happens inside syncing.