# Folders stuck trying to sync existing files

**URL:** https://forum.syncthing.net/t/folders-stuck-trying-to-sync-existing-files/16121
**Category:** Support
**Created:** [January 2, 2021, 2:59pm UTC](https://forum.syncthing.net/t/folders-stuck-trying-to-sync-existing-files/16121 "2021-01-02T14:59:59Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![terry](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/t/b9e5f3/32.png) [@terry](https://forum.syncthing.net/u/terry)
#### Post date: [January 11, 2021, 10:41am UTC](https://forum.syncthing.net/t/folders-stuck-trying-to-sync-existing-files/16121/16 "2021-01-11T10:41:29Z")

</div>

Tomasz, seems we both are doing and saying the same things, my reply to you back in October

> [@Folders "Up to Date" but stuck in "Syncing" with empty "Out of Sync Items"](https://forum.syncthing.net/t/folders-up-to-date-but-stuck-in-syncing-with-empty-out-of-sync-items/15667/7):
>
> I had exactly the same issue on two remote devices. On the remote end I had tried rescanning, touching the folder, recheckdbevery and eventually renamed the remote devices index folder, and still no joy. in the end I renamed the receive only index folder and let it reindex everything. I know it’s not the ideal solution, however I had also tried recheckdbevery and it made no difference, however blowing away the local index I think it’s fine now. Certainly when I open the remote device out of syn…

As I mentioned earlier in the thread, clearing the db in any form will fix it, but it’s not a permanent fix as the error comes back. I’m hoping that we can start testing the badger database to see if that resolves it.

As a non developer I can only make guesses and hope that something clicks with a dev. At the moment my opinion is either data isn’t being written into the database (eg, heavy load), or maybe during the compact stage something lost / corrupted. This is based on a fresh index having lots of small files then some time later they are larger. I wonder if at this point the issue creeps in.

---

_[View the full topic](https://forum.syncthing.net/t/folders-stuck-trying-to-sync-existing-files/16121)._
