Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drive pull [only] never comes to Everything is up-to-date #159

Closed
ggaussling opened this issue Apr 25, 2015 · 9 comments
Closed

drive pull [only] never comes to Everything is up-to-date #159

ggaussling opened this issue Apr 25, 2015 · 9 comments

Comments

@ggaussling
Copy link

Hello,
until yesterday I used grive and grive-tool for syncing google drive to linux.
But grive only supports the outdated API for google drive that was deprecated long ago. google switched that API off 5 days ago.

I initialized drive and then pulled the entire google drive to ~/Google\ Drive .
But there is on each pull an additional count of 10 files and a modification count of 7 files left, and each another pull the same additional files, but only 3 modified. It never reach something like Everything is up-to-date.

Due to this behaviour I do not trust the drive push command, because I fear that it might modify the content of the repository on google.com .

What's happening there? The Google Drive web interface shows on activities no changes. The last one where two files on April the 17th.

I'm using encfs to encrypt the most of my google drive content by retaining it accessible on other platforms too.

~/Google Drive$ drive pull
Resolving...
md5Checksum: `Ixsst9HyzKr8r5S7dVft5oH0YZUqsQ0Li7BcgbDVAYNUJ0` (1.44GB)
might take time to checksum.
+ /EncFsPri/OfhyrCBep6bF45grkhQZALUy/Hb7GBLjoWFQ0aK2mVp6HCYE4/AAYhWj54DpusqfWViIXww-6nhl5npQLj8e4,WH87qYN4IQPhtgSFvDmI2quuvLs59XbywsploZCwyu,XO1sY1ZmZo1bbkuVZdtYwc4qYFlcaXzEHCAO,W2KLtnXrUtsbiL7Qv7YoKPNYLhd2l9YrMGho
[...]
M /EncFsPri/OfhyrCBep6bF45grkhQZALUy/Hb7GBLjoWFQ0aK2mVp6HCYE4/FIBQ8TkjUwaVGtGaVSejBCLN0zg,Zx2TObMbH7DRsTGBCxgXVCRq0RHAes,ntOUWxcR4fKf0y2wi6CDkIAdjmkurGaFDKEAwc7rzKvtKglVmOH5392aiFDgs38cl5JZl9oeyH1tBERaTxz31w9MjlziT
Addition count 10 src: 11.23MB
Modification count 7 src: 6.90MB dest: 6.90MB
Proceed with the changes? [Y/n]:
19004380 / 19004380 [===============================================================================] 100.00 % 31s
~/Google Drive$ drive pull 
Resolving...
md5Checksum: `Ixsst9HyzKr8r5S7dVft5oH0YZUqsQ0Li7BcgbDVAYNUJ0` (1.44GB)
might take time to checksum.
+ /EncFsPri/OfhyrCBep6bF45grkhQZALUy/Hb7GBLjoWFQ0aK2mVp6HCYE4/AAYhWj54DpusqfWViIXww-6nhl5npQLj8e4,WH87qYN4IQPhtgSFvDmI2quuvLs59XbywsploZCwyu,XO1sY1ZmZo1bbkuVZdtYwc4qYFlcaXzEHCAO,W2KLtnXrUtsbiL7Qv7YoKPNYLhd2l9YrMGho
[...]
M /EncFsPri/OfhyrCBep6bF45grkhQZALUy/Hb7GBLjoWFQ0aK2mVp6HCYE4/O3Yumpt-7wIHqeydzy-Bs8Oiwv,R7W9DACeS,Ic8,qwHKP0b7UcHVUPCHqTkkYIUYHNhpUCz6cM8SSADBrVS-OXo,t3GLbr83nhcQY4xsE3-HKAhqlLLfuzRlTBiX5Tjk1gJaOPFqJDMPIRe2C34Ajyh
Addition count 10 src: 11.23MB
Modification count 3 src: 4.33MB dest: 4.33MB
Proceed with the changes? [Y/n]: 
16307693 / 16307693 [===============================================================================] 100.00 % 26s
~/Google Drive$ drive pull 
Resolving...
md5Checksum: `Ixsst9HyzKr8r5S7dVft5oH0YZUqsQ0Li7BcgbDVAYNUJ0` (1.44GB)
might take time to checksum.
+ /EncFsPri/OfhyrCBep6bF45grkhQZALUy/Hb7GBLjoWFQ0aK2mVp6HCYE4/AAYhWj54DpusqfWViIXww-6nhl5npQLj8e4,WH87qYN4IQPhtgSFvDmI2quuvLs59XbywsploZCwyu,XO1sY1ZmZo1bbkuVZdtYwc4qYFlcaXzEHCAO,W2KLtnXrUtsbiL7Qv7YoKPNYLhd2l9YrMGho
[...]
M /EncFsPri/OfhyrCBep6bF45grkhQZALUy/Hb7GBLjoWFQ0aK2mVp6HCYE4/FIBQ8TkjUwaVGtGaVSejBCLN0zg,Zx2TObMbH7DRsTGBCxgXVCRq0RHAes,ntOUWxcR4fKf0y2wi6CDkIAdjmkurGaFDKEAwc7rzKvtKglVmOH5392aiFDgs38cl5JZl9oeyH1tBERaTxz31w9MjlziT
Addition count 10 src: 11.23MB
Modification count 7 src: 6.90MB dest: 6.90MB
Proceed with the changes? [Y/n]: 
19004380 / 19004380 [===============================================================================] 100.00 % 31s
~/Google Drive$ 

and so on...

@ggaussling
Copy link
Author

This might be related to issue #117

It is not obvious to me, what should be changed, and why. I didn't touch anything between the commands and initiated them instantly one after another. There are two different results only, as reported above.

@odeke-em
Copy link
Owner

Hello there @ggaussling, welcome to drive!
In case you haven't yet, would you mind taking a look at the README.md file? It contains explanations for things like duplicate files and would explain why you might seem to have additional files. Also it shows the safe mode --no-clobber as well as --ignore-checksum.
It is really late here so my apologies if my response doesn't make immediate sense but please watch out for duplicate files.
Thank you.

@ggaussling
Copy link
Author

Hello odeke-em, I appreciate your hints and will have a look into the documentation to understand the issue. Have a good night! Thank you.

@odeke-em
Copy link
Owner

Thank you, I'll catch you in a bit and hopefully we can be able to find out the root cause of this.

@ggaussling
Copy link
Author

I figured out, that the web-ui lists 8 from ten as dupes while on the local drive folders there are no dupes to find.

https://drive.google.com/file/d/0B8H-cwsNCJVDVkVVTUlpQVcxaUk/view?usp=sharing
What happens if I manually delete one of each of the ten dupes? Will that delete both, original and copy?

ubuntu
~/Google Drive$ find . -name "AAYhWj54DpusqfWViIXww-6nhl5npQLj8e4,WH87qYN4IQPhtgSFvDmI2quuvLs59XbywsploZCwyu,XO1sY1ZmZo1bbkuVZdtYwc4qYFlcaXzEHCAO,W2KLtnXrUtsbiL7Qv7YoKPNYLhd2l9YrMGho"
./EncFsPri/OfhyrCBep6bF45grkhQZALUy/Hb7GBLjoWFQ0aK2mVp6HCYE4/AAYhWj54DpusqfWViIXww-6nhl5npQLj8e4,WH87qYN4IQPhtgSFvDmI2quuvLs59XbywsploZCwyu,XO1sY1ZmZo1bbkuVZdtYwc4qYFlcaXzEHCAO,W2KLtnXrUtsbiL7Qv7YoKPNYLhd2l9YrMGho

Windows (cygwin) official google-drive-client used for syncing
[17. Week, Sa, 2015-04-25, 13:05] me@PC168 /cygdrive/c/Users/gaussling.MYDOM/Google Drive
$ find . -name "AAYhWj54DpusqfWViIXww-6nhl5npQLj8e4,WH87qYN4IQPhtgSFvDmI2quuvLs59XbywsploZCwyu,XO1sY1ZmZo1bbkuVZdtYwc4qYFlcaXzEHCAO,W2KLtnXrUtsbiL7Qv7Y
oKPNYLhd2l9YrMGho"
./EncFsPri/OfhyrCBep6bF45grkhQZALUy/Hb7GBLjoWFQ0aK2mVp6HCYE4/AAYhWj54DpusqfWViIXww-6nhl5npQLj8e4,WH87qYN4IQPhtgSFvDmI2quuvLs59XbywsploZCwyu,XO1sY1ZmZo1bbkuVZdtYwc4qYFlcaXzEHCAO,W2KLtnXrUtsbiL7Qv7YoKPNYLhd2l9YrMGho

@odeke-em
Copy link
Owner

Deutsch sprechen? Gut. Those are same of the few words I successfully put out in German haha.

Anyways, as for deleting the dupe web-ui list, your file system cannot accomodate clashing names within the same folder which is why you keep getting needs for updates. info I'd advise:

  1. drive stat AAYhWj54DpusqfWViIXww-6nhl5npQLj8e4,WH87qYN4IQPhtgSFvDmI2quuvLs59XbywsploZCwyu,XO1sY1ZmZo1bbkuVZdtYwc4qYFlcaXzEHCAO,W2KLtnXrUtsbiL7Qv7YoKPNYLhd2l9YrMGho
    That should return you the FileId. Once you have the fileId then you can compare those two files by inspecting their properties using the web ui, and appropriately decide which one you want to delete, then delete it.

A feature request was put to warn the user about clashing names but this isn't yet in. Coming soon.

Also just to let you know you can pull, push, pub etc folder centric
ie

$ cd ~/my_drive/photos/2015 && drive push *.png

is the same as

$ cd ~/my_drive && drive push photos/2015/*.png

@ggaussling
Copy link
Author

Thank you, that worked! I deleted the older one of the duplicates.

~/Google Drive$ drive pull -no-clobber
Resolving...
md5Checksum: `Ixsst9HyzKr8r5S7dVft5oH0YZUqsQ0Li7BcgbDVAYNUJ0` (1.44GB)
might take time to checksum.
Everything is up-to-date.
~/Google Drive$ drive push -no-clobber
Resolving...
md5Checksum: `Ixsst9HyzKr8r5S7dVft5oH0YZUqsQ0Li7BcgbDVAYNUJ0` (1.44GB)
might take time to checksum.
Everything is up-to-date.

@odeke-em
Copy link
Owner

Cool. Coming up soon is the ability to warn the user about clashing names for files.

@odeke-em
Copy link
Owner

odeke-em commented May 1, 2015

Clashing names warning added by PR #166, please get the latest code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants