Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
XionicFire
4 years agoCollaborator | Level 9
How to fix being stuck on Indexing forever loop of death on multi million file DBs after db crash
Ok so I've used Dropbox for almost as long as its existed and recently due to frustration with the never finishing indexing bug I was forced to find out why this kept happening so I could prevent it....
- 2 years ago
Well it happened again... out of nowhere with no major changes, syncing forever with no reason why, just never finishing I tried my usual tricks and nothing
Using resmon to see if any files where open by some app that were holding up the sync?
Nope
Using resmon to check for disk activity to see what files were being written or read that could be causing the problem?
Nope
Checking the folders to see what folder had the "sync" blue icon and figured one huge file was syncing?
Nope
Suspend and wait for re-indexing to do a re-index and find out if that fixes it?
Nope
I was running out of ideas and I came across this post:
And I figured could it be that easy?
so I went to the Dropbox\.dropbox.cache\old_files\ folder and sure enough a 15 gig file was there, I deleted it and like magic the problem plaguing me for more than a week fixed itself.
So if you tried my previous solutions and the sync issue still persists try this one
For those that care:
The reason this happens is every time you right click and select a file or folder to convert to "online-only" dropbox doesn't just automatically delete it, it moves it to a temporary location for further processing.
Basically what dropbox does when you do this is it moves the file immediately to Dropbox\.dropbox.cache\old_files\ under a random generic number and puts an online only link where the file was before as a placeholder, then once it does this it starts hashing out the file, meaning it reads it all completely, then creates a hash of it, then compares it to the hash on the server, if the hashes match, then it deletes it for real, if it doesn't match, it uploads the file and then deletes it, this ensures the online only'ed file is always the most up to date version.
This has two benefits:
The first, as described above if the file were to be different it would correct the situation by uploading it.
Second, if you accidentally hit online only, on these files, you have until dropbox does this process to "undo" your mistake without having to redownload the files again, so its kinda useful.
I'm guessing what happened is something borked up on the dropbox hashing routine, making it never be able to hash the file, since it never hashed it couldn't be deleted, since it was not deleted the sync icon just stayed there forever.
Deleting the file causes dropbox to "error" out saying "file not found" and skipping the hashing procedure, just assuming the last file he has on the server is the newest one, and leaving it at that.
This causes the sync to finally finish
So now you know, if it happens to you, try this, it might fix it.
DaveHolmes
4 years agoExplorer | Level 4
As another long term user I also have this issue and it is fricking annoying. I use two PCs and Android, so things not syncing causes major issues.
A full sync takes over a week on high speed internet using ethernet, so I don't want to unlink, plus there is always the fear that my latest changes would somehow roll back to the earlier changes. Confilicting file issues would also take me ages to sort out. I am trying the pause technique here to see if it fixes it for me as I have been stuck on 93 files indexing for 2 weeks.
Most of my changes are folders moving. I noticed they did changed things a little and fixed one problem, back in the day when you moved a folder it would count as extra in your allwance until it synced and removed it from where it was. but now I guess each file has a unique id and it no longer gives me over limit warnings which used to cause it stop syncing too.
- Walter4 years ago
Dropbox Community Moderator
Hey DaveHolmes, sorry to hear about this.
If you're still stuck at syncing, could you let us know the device's exact OS and the version of the desktop app installed there?
A screenshot of the app's status as shown in your system tray would also help, so feel free to include one.
On a side note, have you tried adjusting your bandwidth settings through the app's preferences to see if it helps at all?
About Dropbox Tips & Tricks
Learn how to get the most out of Dropbox with other users like you.394 PostsLatest Activity: 4 days ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!