# Database repair and file inconsistency, circular dependency?

**URL:** <https://forum.duplicati.com/t/database-repair-and-file-inconsistency-circular-dependency/1484>\
**Category:** Support\
**Created:** [November 21, 2017, 1:37pm UTC](https://forum.duplicati.com/t/database-repair-and-file-inconsistency-circular-dependency/1484 "2017-11-21T13:37:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [December 10, 2017, 1:27pm UTC](https://forum.duplicati.com/t/database-repair-and-file-inconsistency-circular-dependency/1484/3 "2017-12-10T13:27:30Z")

</div>

> [@Neduz](#):
>
> Is there any way to get out of this loop?

Looking at the output, it appears that there is some remote data missing. This would explain why some files have a length, but the data in the database is missing, giving `length=0`.

Normally, `purge-broken-files` could be used to fix it, but since the database was recreated, it is flagged as “incomplete” which prevents it from running.

Do you know what the original error messages were like? I am guessing they were something like “missing remote files”.

If my hunch is correct, you should be able to get it working by deleting the newest `dlist` file and then running the delete+repair cycle (don’t delete the file, just rename it, or copy it somewhere safe in case I am wrong).

Otherwise, I suggest just setting up a new backup to a new folder and continuing from there. If you need to extract files from the broken backup, you can use the `RecoveryTool` to get the data out.

---

_[View the full topic](https://forum.duplicati.com/t/database-repair-and-file-inconsistency-circular-dependency/1484)._
