<?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: Failed to grab locks in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/7821#M357</link>
    <description>&lt;P&gt;Unfortunately there isn't another way to handle this,&amp;nbsp;but I'll be sure to pass this along as feedback.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2015 22:20:24 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-07-28T22:20:24Z</dc:date>
    <item>
      <title>Failed to grab locks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/7818#M354</link>
      <description>&lt;P&gt;We are making simple file&amp;nbsp;copying files via Dropbox&amp;nbsp;API&amp;nbsp;and getting exceptions like&amp;nbsp;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;com.dropbox.core.DbxException$RetryLater: {"error": "Failed to grab locks for 954581991: lock held by connection 22579708.Please re-issue the request."}&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;How can&amp;nbsp;I avoid this error?&amp;nbsp;Does the new API v2 could help with this?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:40:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/7818#M354</guid>
      <dc:creator>Kestas P.</dc:creator>
      <dc:date>2019-05-29T09:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to grab locks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/7819#M355</link>
      <description>&lt;P&gt;The "Failed to grab locks for" message indicates a technical inability to make the state modification in the account at the time of the API call. This error generally indicates that there was simultaneous activity in the account preventing your app from making the state-modifying call (e.g., adding, copying, or removing files) it is attempting. The simultaneous activity could be coming from your app itself, or elsewhere, e.g., from the user's desktop client. The best practice when receiving this is to just retry the request, respecting the `Retry-After header if given, or after a small delay possibly with an exponential back-off. If the activity is coming from your own app, you should avoid making multiple state-modifying calls in the same account at the same time.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I don't believe API v2 would improve this, as this is how the&amp;nbsp;Dropbox backend itself works.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 00:55:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/7819#M355</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-28T00:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to grab locks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/7820#M356</link>
      <description>&lt;P&gt;Yes indeed my app is&amp;nbsp;submitting for file&amp;nbsp;copy concurrently but there are no way to submit batch copy (folder doesn't fit). If I do sequentially it takes plenty of time to copy files. Let say 40 image files with about 600 kb of size each it takes about 30s to copy all but I need to copy 4000 of images and it would take an hour.&lt;/P&gt;

&lt;P&gt;Dropbox sync folder on windows doesn't have similar problem.&amp;nbsp;Looks like it doesn't deal with locking issue. Is it possible&amp;nbsp;to deal with locks in different way? I mean obtain pessimistic lock, do the operations and release lock or take locks just on destination folder where I am copying files.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:34:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/7820#M356</guid>
      <dc:creator>Kestas P.</dc:creator>
      <dc:date>2015-07-28T13:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to grab locks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/7821#M357</link>
      <description>&lt;P&gt;Unfortunately there isn't another way to handle this,&amp;nbsp;but I'll be sure to pass this along as feedback.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 22:20:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/7821#M357</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-28T22:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to grab locks</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/190628#M8218</link>
      <description>Quick update: the API does now have support for batch copies:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-copy_batch" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-copy_batch&lt;/A&gt;</description>
      <pubDate>Thu, 13 Oct 2016 20:13:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Failed-to-grab-locks/m-p/190628#M8218</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-13T20:13:53Z</dc:date>
    </item>
  </channel>
</rss>

