cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

Dropbox installs & integrations

Connect your tools and content together with help from the Dropbox Community. Join a discussion or post a question of your own to get started.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

"Save-document" failures due to Dropbox syncing - other's affected?

Helpful | Level 7

I have been seeing save-failures for documents saved in Dropbox, due to a short-term file-lock after closing file handles. Since Dropbox support has said "its an issue with the program, not with our client", I am searching for people who have also experienced this issue or anything related.

Technical details. After writing a file and closing the associated file handle, there seems to be a short time window where Dropbox retains a file lock, thus preventing file operations from other programs. To the best of my knowledge, this time window is extremely short, as Dropbox caches files before processing them for upload.

Now, programs commonly don't overwrite user documents directly, as this would cause a loss of data, if for some reason the write operation cannot finish cleanly. Instead they write to a temporary file, and then replace the old file with that temporary file.

In combination I have seen this cause write-failures, specifically with LyX (#10091). Since I was also able to reproduce the issue with a python script, I consider the root cause to be unfavorable behavior in the Dropbox client, as the "write temporary file, rename within fractions of a second" pattern is quite common. If there are other programs affected by the issue, it would probably help to convince Dropbox, that there is an issue.

Note that solving such issues is usually out of the hands of the Dropbox user, unless they want to get into reprogramming their software.

This issue is probably specific to Windows, since Unix-based operating systems typically don't disallow renaming or deleting files with open file handles, due the "inode" abstration separating file contents from their position in the directory hierachy.

53 Replies 53
Highlighted

Re: "Save-document" failures due to Dropbox syncing - other's affected?

Dropboxer
Dropboxer
Sorry to hear that, @KlausB
 
 
You also mention that you’ve contacted the third party app in question, in which case, please do let us know of any updates. In the meantime, I’ll leave this thread open for other users who may have had a similar experience to share any feedback. 
 
Thanks in advance!

Lusil
Community Moderator @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so, please give it a Like below.
Still stuck? Ask me a question!
Tips & Tricks Find new ways to stay in flow or share your tips on how you work smarter with Dropbox.

Highlighted

Re: "Save-document" failures due to Dropbox syncing - other's affected?

Helpful | Level 7

@LusilIs there any particular reason for keeping the Dropbox folder on the OS drive? I generally try to minimize the amount of user data there.

Highlighted

Re: "Save-document" failures due to Dropbox syncing - other's affected?

Dropboxer
Dropboxer
Thanks for getting back to me on this, @KlausB
 
In general, it’s recommended to choose a location that’s on the same hard drive as your OS because the desktop app won't work correctly if the Dropbox folder becomes inaccessible. This can happen if it's located on an external drive that gets disconnected. You can find more info regarding this here
 
Hope this helped to some extent. 

Lusil
Community Moderator @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so, please give it a Like below.
Still stuck? Ask me a question!
Tips & Tricks Find new ways to stay in flow or share your tips on how you work smarter with Dropbox.

Highlighted

Re: "Save-document" failures due to Dropbox syncing - other's affected?

Super User II
Super User II

The important thing is that it's on an internal drive, and not an external or removable drive. Dropboxers just seem to assume that the OS drive will be the only internal drive in a person's computer.

Personally, mine is located on a dedicated SSD, which is the third of four internal drives in my system.

Highlighted

Re: "Save-document" failures due to Dropbox syncing - other's affected?

Helpful | Level 7

Same for me (laptop). OS and application data is on a 128 GB m2 SSD, user data on a larger 2.5" SATA SSD. Putting the dropbox folder on the OS drive is a (bad) option, but wouldn't be if I were using more storage than provided by the free tier.

Given the nature of the issue, and its occurrence across multiple PCs, and that it becomes negligibly infrequent for small files, it is almost certainly caused by the timing of Dropbox's caching: The program (Ly releases its file-lock by closing the file-handle, and Dropbox is caching the file the short moment later, when the program tried to perform the "rename FILE.XXXXXX.lyx to FILE.lyx" operation. The issue only really started appearing with my PhD-thesis, as before all files were too small and/or other programs do SOMETHING different, when applying the "write temp, then rename" pattern.

Hence why I am looking for cases of other programs being affected.

From the bug-report for LyX, I know at least that other USERS are affected.

Highlighted

Re: "Save-document" failures due to Dropbox syncing - other's affected?

Dropboxer
Dropboxer
Thanks for the detailed reply, @KlausB
 
I understand how important this is for you, so I’ve made sure to pass your comments along regarding this. As mentioned previously, I’ll also leave this thread open for any other users that may have encountered this too.
 
In the meantime, please let us know of any updates and if you have any other questions, don’t hesitate to get back to us. Thanks in advance once again!

Lusil
Community Moderator @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so, please give it a Like below.
Still stuck? Ask me a question!
Tips & Tricks Find new ways to stay in flow or share your tips on how you work smarter with Dropbox.

Highlighted

Re: "Save-document" failures due to Dropbox syncing - other's affected?

Helpful | Level 7

Apparently the issue has previously been encountered by other programs. I found the following in the configuration dialog of TexStudio:texstudio.png

The issue has also come up in the bugtracker of the QT library.

https://bugreports.qt.io/browse/QTBUG-57299

It is closed, but comments indicate, that it isn't solved.

Highlighted

Re: "Save-document" failures due to Dropbox syncing - other's affected?

New member | Level 2
New member | Level 2
I have now had two days where I have not been able to save a PowerPoint presentation to Dropbox without it locking up my computer. I have restarted it and tried closing both PowerPoint and dropbox and still have a current issues where it tries to save the dropbox icon says it indexing the PowerPoint thing but then it just locks on indexing I need to have this resolved urgently. Thank you
Highlighted

Re: "Save-document" failures due to Dropbox syncing - other's affected?

Dropboxer
Dropboxer
Hey there @Olshaj, sorry to hear that. 
 
Could you please provide me some additional info on this? For example:
  • Are you getting any error messages when trying to save the file to your Dropbox folder? 
  • Does this occur with a specific file or are you getting the same behavior with other files too?
Additionally, could you please send me a screenshot (without any personal info) of what the Dropbox icon that’s next to your computer’s clock shows when you click on it?
 
Thanks in advance!

Lusil
Community Moderator @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so, please give it a Like below.
Still stuck? Ask me a question!
Tips & Tricks Find new ways to stay in flow or share your tips on how you work smarter with Dropbox.

Polls
Do you know how to organize your files and folders?
<b>We have created a guide on folder best practice, so you can get organized now <a href="https://www.dropboxforum.com/t5/Business-Tips-tricks/Folder-structure-best-practice/m-p/428456#M39"><u>check it out here</u></a>.</b>

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?