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

Batch download randomly failing #232

Open
guidedways opened this issue Sep 25, 2018 · 2 comments
Open

Batch download randomly failing #232

guidedways opened this issue Sep 25, 2018 · 2 comments

Comments

@guidedways
Copy link

guidedways commented Sep 25, 2018

This was an issue reported perhaps a year ago and was fixed. I've recently moved to the batch upload / download APIs and am now seeing the following. The reliability of sync nosedived in the app after the reset switch, and I can now see the logs riddled with these:

Error Domain=NSCocoaErrorDomain Code=4 "“620836A0-98B4-402F-9ACD-10A67AB1D308” couldn’t be moved to “tmp” because either the former doesn’t exist, or the folder containing the latter doesn’t exist." UserInfo={NSSourceFilePathErrorKey=/Users/<user>/Library/Developer/CoreSimulator/Devices/3EB61F50-E618-45B1-878C-A36F11EC9BA8/data/Containers/Data/Application/2EF3A736-65AE-446D-957A-C5AEDB5195E7/tmp/620836A0-98B4-402F-9ACD-10A67AB1D308, NSUserStringVariant=(
    Move
), NSDestinationFilePath=/Users/<user>/Library/Developer/CoreSimulator/Devices/3EB61F50-E618-45B1-878C-A36F11EC9BA8/data/Containers/Data/Application/2EF3A736-65AE-446D-957A-C5AEDB5195E7/tmp/o_u_k_8a3b7f1395ab4a59821ef8948c6d834fstarred_p__i__d_.col.gz, NSFilePath=/Users/<user>/Library/Developer/CoreSimulator/Devices/3EB61F50-E618-45B1-878C-A36F11EC9BA8/data/Containers/Data/Application/2EF3A736-65AE-446D-957A-C5AEDB5195E7/tmp/620836A0-98B4-402F-9ACD-10A67AB1D308, NSUnderlyingError=0x600003010900 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I'm using v3.9.1 of the library

@guidedways
Copy link
Author

In file DBDelegate.m changing this:

tmpOutputPath = [tmpDirPath stringByAppendingPathComponent:[NSUUID UUID].UUIDString];

to the following fixed these errors for me:

tmpOutputPath = [[tmpDirPath stringByAppendingPathComponent:[NSUUID UUID].UUIDString] stringByAppendingPathExtension:@"tmp"];

It's as if a file without an extension is failing for some reason.

@greg-db
Copy link
Contributor

greg-db commented Sep 25, 2018

Can you share the code to reproduce this issue? Thanks in advance!

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