# Repair and Rebuild database fails: Unexpected difference in fileset

**URL:** <https://forum.duplicati.com/t/repair-and-rebuild-database-fails-unexpected-difference-in-fileset/5959>\
**Category:** Support\
**Created:** [January 10, 2019, 10:22am UTC](https://forum.duplicati.com/t/repair-and-rebuild-database-fails-unexpected-difference-in-fileset/5959 "2019-01-10T10:22:55Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 24, 2019, 1:12pm UTC](https://forum.duplicati.com/t/repair-and-rebuild-database-fails-unexpected-difference-in-fileset/5959/15 "2019-01-24T13:12:07Z")

</div>

> [@dejhost](#):
>
> The channel is retired

The lead developer [describes that](https://forum.duplicati.com/t/backups-suddenly-failing-4-machines-now/5379/13) as

> That is unfortunately a “follow error” that happens when something else breaks.

so possibly you can find an early error in the log. In any case, I’m not surprised it’s stuck after whatever.

Retracing a bit, the line above it shows it maybe trying to process its own database (the name could be verified on the job’s Database tab). This can cause problems, but I see earlier you were trying to filter it.

> [@dejhost](#):
>
> Why do I get warnings for a folder that is excluded? I’m refering to the Appdata=\> Duplicati folder…

> [@dejhost](#):
>
> Some examples:
> 
> AppData\Local\Duplicati

How was that entered or verified? In addition to a possible GUI entry [bug](https://forum.duplicati.com/t/problems-using-test-filter/6101/2) I just found, the final filter needs either a [wildcard or regular expression](https://forum.duplicati.com/t/regex-like-tf-rash-supported/6089/2) to allow for it not being a full path. Folder also needs trailing slash. [Documentation](https://duplicati.readthedocs.io/en/latest/appendix-d-filters/) for filters seems to focus on the lower-level view, and GUI-level [documentation](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#creating-a-new-backup-job) says little about exactly how to add filters. Maybe the exact operation wasn’t clear, and it’s certainly not clear to me.

Ways to see what filters your GUI entry actually made (it seemingly tries to simplify by editing your entry) include using the three-dot menu on the Source Data screen under Filters. Another is job [Commandline](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#using-the-command-line-tools-from-within-the-graphical-user-interface), then either look for [–exclude](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#exclude) values, or check `Edit as text` and go looking for the raw filter expression.

Another possible filter worry is variables like %APPDATA% and %MY\_DOCUMENTS% that vary by user.

> [@dejhost](#):
>
> Duplicati was running as a “System Account”.

How was that determined? If this refers to what Task Manager → Run as Administrator calls `SYSTEM` then

```plaintext
C:\>whoami
nt authority\system

C:\>echo %APPDATA%
C:\WINDOWS\system32\config\systemprofile\AppData\Roaming

C:\>echo %MY DOCUMENTS%
%MY DOCUMENTS%

C:\>

```

however the `System.UnauthorizedAccessException` hit earlier with --snapshot-policy=Required hints that whatever the account is, it doesn’t have privilege to snapshot, thus almost certainly is not SYSTEM.

Figuring out the account problem may be the best path now, having tried the other some, and hit issues.

---

_[View the full topic](https://forum.duplicati.com/t/repair-and-rebuild-database-fails-unexpected-difference-in-fileset/5959)._
