-
Notifications
You must be signed in to change notification settings - Fork 36
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
more than one file (2) in download dir: be lenient #29
Comments
hmm, I wonder why you seem to be the only one to have .crdownload files. Of course I have seen it happening when downloading things manually on Chrome, but I've never seen it happen with the API. |
Why do we need this check at the first place? |
@mpl I also seemed to notice the same issue along with 'DS_Store'
|
I'm seeing the same issue, although I think the sequence of events is slightly different. It seems like I hacked around it in my local copy by just changing the check to accept 2 files instead of 1 in the download directory, but this doesn't seem very robust. I also considered just filtering out Maybe allowing two entries if one's filename is equal to the other's filename + ".crdownload" would be best? That would make the code a bit clunky, though. |
Is this a "harmless" race condition? Can I just restart this after it throws this specific error without concern of data corruption? |
I made a watchdog script which I run every 15 minutes to re-run the sync app since it stops almost every time with this error. I'm not sure it's helping yet
|
Moving from JakeWharton/docker-gphotos-sync#38:
This seems to be happening after a few photos are downloaded.
And the files:
Reading the code, the cdp code will freak out if it sees more than 1 file in the directory (as the error says).
I put a watch on my download dir, and here's what I can tell is happening:
100_1291.JPG.crdownload
.100_1291.JPG
.For that brief period, both files exist. If you get unlucky, the
if
check can happen during that period, causing the container to die.I think this can be resolved by one of:
.crdownload
files.continue
after waiting a beat (and let the disk state reconcileThe text was updated successfully, but these errors were encountered: