drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 131 forks source link

`Unable to initiate download` errors with iCloud file system #142

Closed mwaterfall closed 10 years ago

mwaterfall commented 10 years ago

We've been getting hundreds of Unable to initiate download errors (see below), and I'm wondering if this may be because the files have not yet finished uploading to iCloud when the file system attempts to download them.

Looking at the metadata query, there's no check on NSMetadataUbiquitousItemIsUploadedKey. Is there a reason for this?

17/05/2014 10:21:15.069App[4265]__40-[CDEICloudFileSystem initiateDownloads]_block_invoke line 296: Error starting download: Error Domain=NSCocoaErrorDomain Code=512 "The file “16_AD335AAA-697C-4F66-867B-A478005810DE-585-000001E42C6C485F_7.cdeevent” couldn’t be saved." UserInfo=0x600002a7de40 {NSURL=file:///Users/mwaterfall/Library/Mobile%20Documents/VK94X636H2~com~d3i~app-osx/EnsemblesCloudData-AppData/AppData/events/16_AD335AAA-697C-4F66-867B-A478005810DE-585-000001E42C6C485F_7.cdeevent, NSUnderlyingError=0x608001e43f60 "The operation couldn’t be completed. (LibrarianErrorDomain error 1 - Unable to initiate download.)"}
drewmccormack commented 10 years ago

Hmm, could be. Will the uploaded metadata work for files uploading from a different device? I always assumed it related to being uploaded from the local device, but it probably means both. I'll look into it.

mwaterfall commented 10 years ago

Yes that's true, hadn't thought of that. Docs aren't very clear in that respect.

drewmccormack commented 10 years ago

I have seen this type of problem at various times with iCloud. I think it is usually a genuine problem with the daemon. Restarting device could help. Otherwise, just ignore and see if it recovers.

Drew

On 19 May 2014, at 17:44, Michael Waterfall notifications@github.com wrote:

Yes that's true, hadn't thought of that. Docs aren't very clear in that respect.

— Reply to this email directly or view it on GitHub.

mwaterfall commented 10 years ago

Okay, will do then! Thanks.