I’ve been running Duplicati for some time now with no problems. It looks like a few days ago things went wrong.
There were no errors reported in the run on August 1st. But on August 4th I got this:
* 2024-08-04 00:01:15 +01 - [Error-Duplicati.Library.Main.Operation.BackupHandler-FatalError]: Fatal error UserInformationException: Unexpected difference in fileset version 0: 01/08/2024 00:01:00 (database id: 53), found 60497 entries, but expected 60696
I read a bunch articles on the forum. I then ran repair on the database and then deleted version 0. I ran the backup again.
That now gets me constraint violations on a bunch of files when the backups run. From the verbose log it’s files like this:
[Warning-Duplicati.Library.Main.Operation.Backup.FilePreFilterProcess.FileEntry-FailedToAddFile]: Failed while attempting to add unmodified file to database: D:\Media\Images\Weymouth & Portland April 2017\IMG_6572.CR2
code = Constraint (19), message = System.Data.SQLite.SQLiteException (0x800027AF): constraint failed
UNIQUE constraint failed: FilesetEntry.FilesetID, FilesetEntry.FileID
These files aren’t new and presumably have been backed up for months. They don’t seem to be unusual Windows paths or contain strange characters, well maybe except the ‘&’ sign in some but not all of them.
$ find . -name IMG_6572.* -ls | cat -v
281474977263210 12796 -rw-r--r-- 1 martin 197121 13099324 Apr 22 2017 ./Weymouth\ &\ Portland\ April\ 2017/IMG_6572.CR2
281474977263211 3504 -rw-r--r-- 1 martin 197121 3585123 Apr 22 2017 ./Weymouth\ &\ Portland\ April\ 2017/IMG_6572.JPG
Another example:
[Warning-Duplicati.Library.Main.Operation.Backup.FilePreFilterProcess.FileEntry-FailedToAddFile]: Failed while attempting to add unmodified file to database: D:\Media\Images\Tankfest June 2018\IMG_7741.JPG
code = Constraint (19), message = System.Data.SQLite.SQLiteException (0x800027AF): constraint failed
UNIQUE constraint failed: FilesetEntry.FilesetID, FilesetEntry.FileID
Results from find command:
$ find . -name IMG_7741.* -ls | cat -v
281474977429145 10508 -rw-r--r-- 1 martin 197121 10756482 Jun 30 2018 ./Tankfest\ June\ 2018/IMG_7741.CR2
281474977429146 2020 -rw-r--r-- 1 martin 197121 2065364 Jun 30 2018 ./Tankfest\ June\ 2018/IMG_7741.JPG
I’m running 2.0.8.1_beta_2024-05-07 on Windows and I’m not sure what I should do to fix this.
Thanks,
Martin