celeste icon indicating copy to clipboard operation
celeste copied to clipboard

Fix #239 (Google Drive crash on sync)

Open OMGtechy opened this issue 1 year ago • 5 comments

The issue occurs when the remote timestamp in the DB is more recent than the next (i.e. time has gone backwards).

It's not possible to know which is "really" more recent here, so the safest thing to do is to report an error and skip that file.

I am guessing that Google changed how timestamps worked in the 11th November update :woman_shrugging:

OMGtechy avatar Nov 29 '24 22:11 OMGtechy

image

Screenshot with the fix running.

OMGtechy avatar Nov 29 '24 22:11 OMGtechy

Extra info:

The directory issue seems odd (this is a file, not a directory). The local_path_string is set to /home/username/Google//AsciiArt.txt

I wonder if that double / is causing issues...

OMGtechy avatar Nov 29 '24 22:11 OMGtechy

Note: the issue still comes up if I rerun; every time I launch the app. But this is definitely better than crashing at least.

OMGtechy avatar Nov 29 '24 23:11 OMGtechy

Looking at my Google drive in the Web UI, it has the same file listed twice, with different contents. Madness. Removing one of the duplicates seems to also fix the problem more permanently (with or without this PR)

OMGtechy avatar Nov 29 '24 23:11 OMGtechy

I know this is old now, but tested the fix, and it works for me too :) I guess 2 way sync is not possible because of the timestamp issue, as it generates errors, but it's great to start

R0rit0 avatar Mar 14 '25 12:03 R0rit0