Coder Social home page Coder Social logo

Comments (27)

sgbeal avatar sgbeal commented on July 21, 2024

i have another shared folder which does not exhibit this problem but also doesn't get synced. Unfortunately can't attach a screenshot here, but here's a temporary link:

http://wanderinghorse.net/wh/tmp/gdrive-sgbeal-201205011729.png

Notice that "counters" and "fossil-collab" are shared, but grive syncs:

$ find . -type d
.
./counters
./Docs
./Docs/Gaming
./Docs/Gaming/Fudge
./Docs/Gaming/Ideas
./Docs/Work
./Docs/Work/Consol
./Docs/Work/Consol/maxdome
./Docs/Misc

from grive.

match065 avatar match065 commented on July 21, 2024

I can't reproduce the problem. Can you tell me how did your create the "ScGrBa" folder?

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

Sorry for the delay - i slept all afternoon yesterday and just got back from work.

i created all of those folders via the old GDocs web interface, with the exception of "counters" and the top-level "Docs" dir (my virtual root, which i moved all my old GDocs folders into). The "counters" dir (which gets synced at top-level) was created via the newer GDrive interface, but i don't remember if it was initially created at the (sub)dir level which it is at now. Since i'm (exclusively) on Linux, i'm not using any drive syncing which would have created the dirs for me (not counting grive, but i haven't added any dirs locally).

Unfortunately i won't have access to my "real" computer again until the weekend - my netbook is too slow to do any significant compilation on, so i'll have to wait until Friday before i can try it out again.

If you're not seeing the problem, then great. i'll give it another look on Friday or Saturday, and maybe it will have gone away on my side by then as well :).

from grive.

match065 avatar match065 commented on July 21, 2024

Looks like I can't re-do what you did to create the folders, cos the old GDocs web is gone.

In order to understand what is going on, I need to log the server's response text. Let me prepare some tools to do that. Note that the log may contain some sensitive information about your documents (e.g. titles, creation time etc, not the content). Please take a look yourself before sending it to me.

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

Weird - today i pulled the latest and it's doing something different: synching my 'counters' files into ./

[stephan@hamsun:/cvs/grive/grive]$ mkdir foo
[stephan@hamsun:
/cvs/grive/grive]$ cd foo
[stephan@hamsun:~/cvs/grive/grive/foo]$ ../grive
downloading ./ship-0074.svg
downloading ./ships-counters-halfinch.svg
downloading ./Docs/Work/Consol/2012-04-XX HTML5-5 Fragen-5 Antworten_ v2.doc
downloading ./ship-0077.svg
downloading ./ship-0076.svg
...

and it's still missing a couple of the dirs in the screenshot i sent:

[stephan@hamsun:~/cvs/grive/grive/foo]$ find . -type d
.
./Docs
./Docs/Gaming
./Docs/Gaming/Fudge
./Docs/Gaming/Ideas
./Docs/Work
./Docs/Work/Consol
./Docs/Work/Consol/maxdome
./Docs/Misc

i cannot account for any weirdness in my setup. Sorry about that :(. AFAIR i haven't moved any files around since the last tests, only edited a few spreadsheets.

from grive.

match065 avatar match065 commented on July 21, 2024

It may be due to google internally moved some of the data. Thanks for keeping me informed. I will see what I can do.

from grive.

match065 avatar match065 commented on July 21, 2024

I think I know the problem. It's probably due to grive only fetch part of the data about the folders.

Can you please see if the v0.0.4 branch does the right thing? If yes, I will roll out another release.

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

You seem to have solved it :)

[stephan@hamsun:~/cvs/grive/grive/foo]$ ../grive
downloading ./Docs/Gaming/ScGrBa/counters/ship-0074.svg
downloading ./Docs/Gaming/ScGrBa/counters/ships-counters-halfinch.svg
downloading ./Docs/Work/Consol/2012-04-XX HTML5-5 Fragen-5 Antworten_ v2.doc
...

All dirs/files look perfect when it's finished. This is great stuff :)

from grive.

match065 avatar match065 commented on July 21, 2024

Thank you! I am releasing v0.0.4 then.

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

i spoke too soon about the perfect sync, though - i found a dir which contains some pngs which were not synched.

http://www.wanderinghorse.net/wh/tmp/gdrive-sgbeal-201205061620.png

vs.

[stephan@host:~/cvs/grive/grive/foo]$ find . -type d
.
./Docs
./Docs/Gaming
./Docs/Gaming/Fudge
./Docs/Gaming/ScGrBa
./Docs/Gaming/ScGrBa/counters
./Docs/Work
./Docs/Work/Consol
./Docs/Work/Consol/maxdome
./Docs/Misc

PS: i do not generally expect (but don't care if) dirs which contain no actual files (as opposed to gdocs) to be created locally, and do not consider either behaviour a bug.

from grive.

match065 avatar match065 commented on July 21, 2024

I will add some debugging facility to collect log files in the upcoming builds.

from grive.

nestal avatar nestal commented on July 21, 2024

Hi, just want to ask if the missing folder is actually shared within your own drive?

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

Hi, nestal,

It was shared via the gdocs interface before gdrive was released. After gdrive i moved all of my top-level GDocs folders into a single top-level GDrive folder named Docs (to simplify synching to my hard drive).

from grive.

nestal avatar nestal commented on July 21, 2024

By looking at the code I think it may cause problems if a folder has multiple parents, but it doesn't look like this is your case.

from grive.

nestal avatar nestal commented on July 21, 2024

Hope that match's new debug code can tell us more about it.

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

AFAIK i don't have multiple parents anywhere (i don't think the UI allows it, even if the data model does), but i have moved that folder before, so maybe there's some historical information about its parentage somewhere (e.g. in the context of versioning). i'm just guessing, though - i know nothing about the gdrive protocols and APIs.

from grive.

nestal avatar nestal commented on July 21, 2024

Yes the UI allows it. You can press ctrl when dragging the folders in "My Drive". The same folder will appear in multiple folders.

from grive.

match065 avatar match065 commented on July 21, 2024

can you please check again if v0.0.5 fixes this problem?

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

This time it synced a lot of PDF files i had forgotten about :).

Everything seems to be working great (expected dir structure and files), but after syncing i found the following files which are not from me:

[stephan@host:~/cvs/grive/grive/foo]$ l *.xml
-rw-rw-r-- 1 stephan stephan 30006 May 15 08:54 dir-065432.xml
-rw-rw-r-- 1 stephan stephan 342491 May 15 08:54 first-065432.xml
-rw-rw-r-- 1 stephan stephan 365335 May 15 08:55 second-065508.xml
-rw-rw-r-- 1 stephan stephan 137848 May 15 08:55 second-065546.xml

They're full of google-related metadata, it seems. Maybe temp files left over by grive?

from grive.

match065 avatar match065 commented on July 21, 2024

yes these are log files generated by grive. I forgot to remove the debug code that generated them before releasing 0.0.5. I will make them configurable in the next version

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

i think this can be closed? i have shared folders (multiple levels deep with different sharing per level in some cases) being synced just fine by grive.

from grive.

match065 avatar match065 commented on July 21, 2024

Yes if you think it's OK. It's raised by you and so it's your decision.

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

i don't have the permissions to close this. As far as i'm concerned, syncing appears to work more or less reliably (barring the occasional network hang and similar stuff, but there's no much you can do about that).

from grive.

match065 avatar match065 commented on July 21, 2024

It looks strange that you can't close it. Some people can close the issues raise by them.

from grive.

sgbeal avatar sgbeal commented on July 21, 2024

Normally i can, but this one was closed and re-opened by you, so i no longer owned it.

from grive.

match065 avatar match065 commented on July 21, 2024

ah yes. I see.

from grive.

ryukinix avatar ryukinix commented on July 21, 2024

I have the same problem yet. (i think my grive is updated: grive version 0.4.0-pre Oct 6 2015 23:21:35)

from grive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.