<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Obj-C V2 disk error after uploadUrl in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214146#M10944</link>
    <description>&lt;P&gt;I will give you as much info as I can. First off I upload the file using a method like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[client uploadUrl:@"/File.sqlite" mode:[[[DBFILESWriteMode alloc] initWithOverwrite] autorelease] autorename:@NO clientModified:nil mute:@YES inputUrl:inputUrl];&lt;/PRE&gt;
&lt;P&gt;Then, when I next do a&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[NSFetchedResultsController performFetch:]&lt;/PRE&gt;
&lt;P&gt;against the database, I get the following error:&lt;/P&gt;
&lt;PRE&gt;2017-03-31 15:53:59.022073 App[12260:3128970] [error] error: (6922) I/O error for database at /var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite.  SQLite error code:6922, 'disk I/O error'
CoreData: error: (6922) I/O error for database at /var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/App.sqlite.  SQLite error code:6922, 'disk I/O error'
2017-03-31 15:56:29.270469 App[12260:3128970] [error] error: -executeRequest: encountered exception = I/O error for database at /var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite.  SQLite error code:6922, 'disk I/O error' with userInfo = {
    NSFilePath = "/var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite";
    NSSQLiteErrorDomain = 6922;
}
CoreData: error: -executeRequest: encountered exception = I/O error for database at /var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite.  SQLite error code:6922, 'disk I/O error' with userInfo = {
    NSFilePath = "/var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite";
    NSSQLiteErrorDomain = 6922;
}
&lt;/PRE&gt;</description>
    <pubDate>Fri, 31 Mar 2017 15:04:30 GMT</pubDate>
    <dc:creator>Mark R.5</dc:creator>
    <dc:date>2017-03-31T15:04:30Z</dc:date>
    <item>
      <title>Obj-C V2 disk error after uploadUrl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214137#M10940</link>
      <description>&lt;P&gt;If I try to backup up my database file using the uploadUrl method, when I next try to access the database using Core Data I get the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;CoreData: error: -executeRequest: encountered exception = I/O error for database at /var/mobile/Containers/Data/Application/2B4358FA-A339-49B0-8F7E-6D04CE21C7F7/Documents/SpendingTracker.sqlite.  SQLite error code:6922, 'disk I/O error' with userInfo = {
    NSFilePath = "/var/mobile/Containers/Data/Application/2B4358FA-A339-49B0-8F7E-6D04CE21C7F7/Documents/SpendingTracker.sqlite";
    NSSQLiteErrorDomain = 6922;
}&lt;/PRE&gt;
&lt;P&gt;The Dropbox Sync SDK&amp;nbsp;used to have a 'shouldSteal' option when loading. According to the documentation this would cause the file to be copied before uploading. I did this myself by making a temp copy, uploading that and then deleting it afterwards. The problem then went away, but it would be good if the framework handled it for you, or the issue was documented.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214137#M10940</guid>
      <dc:creator>Mark R.5</dc:creator>
      <dc:date>2019-05-29T09:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Obj-C V2 disk error after uploadUrl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214143#M10942</link>
      <description>Thanks for the post! I'm glad to hear you were able to work around this issue, though I'm not sure I understand exactly what the issue was. When using uploadUrl, the SDK should upload the data from whatever URL you supply, but as far as I'm aware it shouldn't then affect the local file, e.g., in a way to cause an error like this. &lt;BR /&gt;&lt;BR /&gt;Is that the entirety of the output you got when you ran in to that issue?</description>
      <pubDate>Fri, 31 Mar 2017 14:35:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214143#M10942</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-31T14:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Obj-C V2 disk error after uploadUrl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214146#M10944</link>
      <description>&lt;P&gt;I will give you as much info as I can. First off I upload the file using a method like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[client uploadUrl:@"/File.sqlite" mode:[[[DBFILESWriteMode alloc] initWithOverwrite] autorelease] autorename:@NO clientModified:nil mute:@YES inputUrl:inputUrl];&lt;/PRE&gt;
&lt;P&gt;Then, when I next do a&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[NSFetchedResultsController performFetch:]&lt;/PRE&gt;
&lt;P&gt;against the database, I get the following error:&lt;/P&gt;
&lt;PRE&gt;2017-03-31 15:53:59.022073 App[12260:3128970] [error] error: (6922) I/O error for database at /var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite.  SQLite error code:6922, 'disk I/O error'
CoreData: error: (6922) I/O error for database at /var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/App.sqlite.  SQLite error code:6922, 'disk I/O error'
2017-03-31 15:56:29.270469 App[12260:3128970] [error] error: -executeRequest: encountered exception = I/O error for database at /var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite.  SQLite error code:6922, 'disk I/O error' with userInfo = {
    NSFilePath = "/var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite";
    NSSQLiteErrorDomain = 6922;
}
CoreData: error: -executeRequest: encountered exception = I/O error for database at /var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite.  SQLite error code:6922, 'disk I/O error' with userInfo = {
    NSFilePath = "/var/mobile/Containers/Data/Application/172114D0-4346-48F1-ACAE-23A76EC9C339/Documents/File.sqlite";
    NSSQLiteErrorDomain = 6922;
}
&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:04:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214146#M10944</guid>
      <dc:creator>Mark R.5</dc:creator>
      <dc:date>2017-03-31T15:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Obj-C V2 disk error after uploadUrl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214186#M10952</link>
      <description>Thanks for the additional information! We'll take a look to see if we can figure out what's going on here.</description>
      <pubDate>Fri, 31 Mar 2017 18:49:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214186#M10952</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-31T18:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Obj-C V2 disk error after uploadUrl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214437#M10986</link>
      <description>&lt;P&gt;Hi Mark, thanks for bringing this up. Unfortunately, based on the SDK design, there isn't a great way for the SDK to expose file move errors to the end user, without seriously cluttering up the interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your solution of manually moving the files to a temp location is feasible for you, then I'm inclined to hold off on adding this feature to the SDK itself, for the moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I can't be more helpful! Let us know if you run into any other issues, or have additional feedback for the SDK. Good luck!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 17:48:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obj-C-V2-disk-error-after-uploadUrl/m-p/214437#M10986</guid>
      <dc:creator>Stephen C.14</dc:creator>
      <dc:date>2017-04-03T17:48:45Z</dc:date>
    </item>
  </channel>
</rss>

