SQLiteException: constraint failed\r\nUNIQUE constraint failed: FilesetEntry.FilesetID, FilesetEntry.FileID
- I have searched open and closed issues for duplicates.
- I have searched the forum for related topics.
Environment info
- Duplicati version: 2.2.0.0_stable_2025-10-23
- Operating system: Windows 11 Pro 25H2 26200.7019
- Backend: Backblaze B2
Description
Backups to B2 fail with error [Warning-Duplicati.Library.Main.Operation.Backup.FileBlockProcessor.FileEntry-FileProcessingFailed]: Failed to process path: C:\\Users\\jazza\\Documents\\Code shit\\Scripts\\movies-list.txt\r\nSQLiteException: constraint failed\r\nUNIQUE constraint failed: FilesetEntry.FilesetID, FilesetEntry.FileID". I don't know why it doesn't like this file in particular, but I checked the forum and their theory on a path ending in . or doesn't apply here.
Steps to reproduce
I apologise, attempting to recreate this with a new B2 bucket and just this file did not work. I will try to make up for this by giving you the exact file, as well as throwaway connection details to a B2 bucket so you do not need to pay anything. I have tried to repair, delete and remake the database but the issue persists.
- Actual result: Error.
- Expected result: No error. Again, I'm sorry I have no more information
Screenshots
Debug log
Click to reveal the Debug Log
{
"DeletedFiles": 0,
"DeletedFolders": 0,
"ModifiedFiles": 1,
"ExaminedFiles": 35240,
"OpenedFiles": 1,
"AddedFiles": 0,
"SizeOfModifiedFiles": 45769336,
"SizeOfAddedFiles": 0,
"SizeOfExaminedFiles": 5251926009,
"SizeOfOpenedFiles": 45769336,
"NotProcessedFiles": 0,
"AddedFolders": 0,
"TooLargeFiles": 0,
"FilesWithError": 0,
"TimestampChangedFiles": 0,
"ModifiedFolders": 0,
"ModifiedSymlinks": 0,
"AddedSymlinks": 0,
"DeletedSymlinks": 0,
"PartialBackup": false,
"Dryrun": false,
"MainOperation": "Backup",
"CompactResults": {
"DeletedFileCount": 0,
"DownloadedFileCount": 0,
"UploadedFileCount": 0,
"DeletedFileSize": 0,
"DownloadedFileSize": 0,
"UploadedFileSize": 0,
"Dryrun": false,
"VacuumResults": null,
"MainOperation": "Compact",
"ParsedResult": "Success",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "2025-10-30T03:20:58.9923092Z",
"BeginTime": "2025-10-30T03:20:57.7599056Z",
"Duration": "00:00:01.2324036",
"MessagesActualLength": 0,
"WarningsActualLength": 0,
"ErrorsActualLength": 0,
"Messages": null,
"Warnings": null,
"Errors": null,
"BackendStatistics": {
"RemoteCalls": 9,
"BytesUploaded": 3387319,
"BytesDownloaded": 55716887,
"FilesUploaded": 3,
"FilesDownloaded": 3,
"FilesDeleted": 1,
"FoldersCreated": 0,
"RetryAttempts": 0,
"UnknownFileSize": 0,
"UnknownFileCount": 0,
"KnownFileCount": 701,
"KnownFileSize": 17018416169,
"KnownFilesets": 15,
"LastBackupDate": "2025-10-30T11:19:08+08:00",
"BackupListCount": 15,
"TotalQuotaSpace": 0,
"FreeQuotaSpace": 0,
"AssignedQuotaSpace": -1,
"ReportedQuotaError": false,
"ReportedQuotaWarning": false,
"MainOperation": "Backup",
"ParsedResult": "Success",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "0001-01-01T00:00:00",
"BeginTime": "2025-10-30T03:19:08.3659559Z",
"Duration": "00:00:00",
"MessagesActualLength": 0,
"WarningsActualLength": 0,
"ErrorsActualLength": 0,
"Messages": null,
"Warnings": null,
"Errors": null
}
},
"VacuumResults": null,
"DeleteResults": {
"DeletedSetsActualLength": 1,
"DeletedSets": [
{
"Item1": 1,
"Item2": "2025-10-30T11:02:29+08:00"
}
],
"Dryrun": false,
"MainOperation": "Delete",
"CompactResults": {
"DeletedFileCount": 0,
"DownloadedFileCount": 0,
"UploadedFileCount": 0,
"DeletedFileSize": 0,
"DownloadedFileSize": 0,
"UploadedFileSize": 0,
"Dryrun": false,
"VacuumResults": null,
"MainOperation": "Compact",
"ParsedResult": "Success",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "2025-10-30T03:20:58.9923092Z",
"BeginTime": "2025-10-30T03:20:57.7599056Z",
"Duration": "00:00:01.2324036",
"MessagesActualLength": 0,
"WarningsActualLength": 0,
"ErrorsActualLength": 0,
"Messages": null,
"Warnings": null,
"Errors": null,
"BackendStatistics": {
"RemoteCalls": 9,
"BytesUploaded": 3387319,
"BytesDownloaded": 55716887,
"FilesUploaded": 3,
"FilesDownloaded": 3,
"FilesDeleted": 1,
"FoldersCreated": 0,
"RetryAttempts": 0,
"UnknownFileSize": 0,
"UnknownFileCount": 0,
"KnownFileCount": 701,
"KnownFileSize": 17018416169,
"KnownFilesets": 15,
"LastBackupDate": "2025-10-30T11:19:08+08:00",
"BackupListCount": 15,
"TotalQuotaSpace": 0,
"FreeQuotaSpace": 0,
"AssignedQuotaSpace": -1,
"ReportedQuotaError": false,
"ReportedQuotaWarning": false,
"MainOperation": "Backup",
"ParsedResult": "Success",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "0001-01-01T00:00:00",
"BeginTime": "2025-10-30T03:19:08.3659559Z",
"Duration": "00:00:00",
"MessagesActualLength": 0,
"WarningsActualLength": 0,
"ErrorsActualLength": 0,
"Messages": null,
"Warnings": null,
"Errors": null
}
},
"ParsedResult": "Success",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "2025-10-30T03:20:58.9923179Z",
"BeginTime": "2025-10-30T03:20:54.9470669Z",
"Duration": "00:00:04.0452510",
"MessagesActualLength": 0,
"WarningsActualLength": 0,
"ErrorsActualLength": 0,
"Messages": null,
"Warnings": null,
"Errors": null,
"BackendStatistics": {
"RemoteCalls": 9,
"BytesUploaded": 3387319,
"BytesDownloaded": 55716887,
"FilesUploaded": 3,
"FilesDownloaded": 3,
"FilesDeleted": 1,
"FoldersCreated": 0,
"RetryAttempts": 0,
"UnknownFileSize": 0,
"UnknownFileCount": 0,
"KnownFileCount": 701,
"KnownFileSize": 17018416169,
"KnownFilesets": 15,
"LastBackupDate": "2025-10-30T11:19:08+08:00",
"BackupListCount": 15,
"TotalQuotaSpace": 0,
"FreeQuotaSpace": 0,
"AssignedQuotaSpace": -1,
"ReportedQuotaError": false,
"ReportedQuotaWarning": false,
"MainOperation": "Backup",
"ParsedResult": "Success",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "0001-01-01T00:00:00",
"BeginTime": "2025-10-30T03:19:08.3659559Z",
"Duration": "00:00:00",
"MessagesActualLength": 0,
"WarningsActualLength": 0,
"ErrorsActualLength": 0,
"Messages": null,
"Warnings": null,
"Errors": null
}
},
"RepairResults": null,
"TestResults": {
"MainOperation": "Test",
"VerificationsActualLength": 3,
"Verifications": [
{
"Key": "duplicati-20251024T210000Z.dlist.zip.aes",
"Value": []
},
{
"Key": "duplicati-iab757f9e88874b049dab238ea706a403.dindex.zip.aes",
"Value": []
},
{
"Key": "duplicati-b5b1a174f07f64fada3e310a3bb25dc1e.dblock.zip.aes",
"Value": []
}
],
"ParsedResult": "Success",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "2025-10-30T03:21:16.7199115Z",
"BeginTime": "2025-10-30T03:21:01.4256779Z",
"Duration": "00:00:15.2942336",
"MessagesActualLength": 0,
"WarningsActualLength": 0,
"ErrorsActualLength": 0,
"Messages": null,
"Warnings": null,
"Errors": null,
"BackendStatistics": {
"RemoteCalls": 9,
"BytesUploaded": 3387319,
"BytesDownloaded": 55716887,
"FilesUploaded": 3,
"FilesDownloaded": 3,
"FilesDeleted": 1,
"FoldersCreated": 0,
"RetryAttempts": 0,
"UnknownFileSize": 0,
"UnknownFileCount": 0,
"KnownFileCount": 701,
"KnownFileSize": 17018416169,
"KnownFilesets": 15,
"LastBackupDate": "2025-10-30T11:19:08+08:00",
"BackupListCount": 15,
"TotalQuotaSpace": 0,
"FreeQuotaSpace": 0,
"AssignedQuotaSpace": -1,
"ReportedQuotaError": false,
"ReportedQuotaWarning": false,
"MainOperation": "Backup",
"ParsedResult": "Success",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "0001-01-01T00:00:00",
"BeginTime": "2025-10-30T03:19:08.3659559Z",
"Duration": "00:00:00",
"MessagesActualLength": 0,
"WarningsActualLength": 0,
"ErrorsActualLength": 0,
"Messages": null,
"Warnings": null,
"Errors": null
}
},
"ParsedResult": "Warning",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "2025-10-30T03:21:16.8552595Z",
"BeginTime": "2025-10-30T03:19:08.3659524Z",
"Duration": "00:02:08.4893071",
"MessagesActualLength": 28,
"WarningsActualLength": 1,
"ErrorsActualLength": 0,
"Messages": [
"2025-10-30 11:19:08 +08 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation Backup has started",
"2025-10-30 11:19:14 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started: ()",
"2025-10-30 11:19:18 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed: (699 bytes)",
"2025-10-30 11:20:41 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-b7784bc29597b423bb7b84ab7acd016aa.dblock.zip.aes (29.903 KiB)",
"2025-10-30 11:20:44 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-b7784bc29597b423bb7b84ab7acd016aa.dblock.zip.aes (29.903 KiB)",
"2025-10-30 11:20:44 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-iecc4ca00cddc4b119aa96cd6adc33acf.dindex.zip.aes (2.560 KiB)",
"2025-10-30 11:20:45 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-iecc4ca00cddc4b119aa96cd6adc33acf.dindex.zip.aes (2.560 KiB)",
"2025-10-30 11:20:50 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Started: duplicati-20251030T031908Z.dlist.zip.aes (3.199 MiB)",
"2025-10-30 11:20:54 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Put - Completed: duplicati-20251030T031908Z.dlist.zip.aes (3.199 MiB)",
"2025-10-30 11:20:54 +08 - [Information-Duplicati.Library.Main.Operation.DeleteHandler:RetentionPolicy-StartCheck]: Start checking if backups can be removed",
"2025-10-30 11:20:54 +08 - [Information-Duplicati.Library.Main.Operation.DeleteHandler:RetentionPolicy-FramesAndIntervals]: Time frames and intervals pairs: 7.00:00:00 / 1.00:00:00, 28.00:00:00 / 7.00:00:00, 360.00:00:00 / 30.00:00:00",
"2025-10-30 11:20:54 +08 - [Information-Duplicati.Library.Main.Operation.DeleteHandler:RetentionPolicy-BackupList]: Backups to consider: 30/10/2025 11:02:29 AM, 30/10/2025 2:00:00 AM, 29/10/2025 2:00:00 AM, 28/10/2025 2:00:00 AM, 27/10/2025 2:00:00 AM, 25/10/2025 5:00:00 AM, 22/10/2025 7:30:59 AM, 14/10/2025 8:41:44 AM, 6/10/2025 5:00:00 AM, 14/09/2025 5:00:06 AM, 15/08/2025 11:34:00 PM, 9/08/2025 5:00:00 AM, 4/07/2025 3:00:00 AM, 26/05/2025 3:00:00 AM, 25/04/2025 2:20:50 AM",
"2025-10-30 11:20:54 +08 - [Information-Duplicati.Library.Main.Operation.DeleteHandler:RetentionPolicy-BackupsToDelete]: Backups outside of all time frames and thus getting deleted: ",
"2025-10-30 11:20:54 +08 - [Information-Duplicati.Library.Main.Operation.DeleteHandler:RetentionPolicy-AllBackupsToDelete]: All backups to delete: 30/10/2025 11:02:29 AM",
"2025-10-30 11:20:54 +08 - [Information-Duplicati.Library.Main.Operation.DeleteHandler-DeleteRemoteFileset]: Deleting 1 remote fileset(s) ...",
"2025-10-30 11:20:56 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Delete - Started: duplicati-20251030T030229Z.dlist.zip.aes (3.199 MiB)",
"2025-10-30 11:20:57 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Delete - Completed: duplicati-20251030T030229Z.dlist.zip.aes (3.199 MiB)",
"2025-10-30 11:20:57 +08 - [Information-Duplicati.Library.Main.Operation.DeleteHandler-DeleteResults]: Deleted 1 remote fileset(s)",
"2025-10-30 11:20:58 +08 - [Information-Duplicati.Library.Main.Database.LocalDeleteDatabase-CompactReason]: Compacting not required",
"2025-10-30 11:20:59 +08 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started: ()"
],
"Warnings": [
"2025-10-30 11:20:40 +08 - [Warning-Duplicati.Library.Main.Operation.Backup.FilePreFilterProcess.FileEntry-FailedToAddFile]: Failed while attempting to add unmodified file to database: C:\\Users\\jazza\\Documents\\Code shit\\Scripts\\movies-list.txt\r\nSQLiteException: constraint failed\r\nUNIQUE constraint failed: FilesetEntry.FilesetID, FilesetEntry.FileID"
],
"Errors": [],
"BackendStatistics": {
"RemoteCalls": 9,
"BytesUploaded": 3387319,
"BytesDownloaded": 55716887,
"FilesUploaded": 3,
"FilesDownloaded": 3,
"FilesDeleted": 1,
"FoldersCreated": 0,
"RetryAttempts": 0,
"UnknownFileSize": 0,
"UnknownFileCount": 0,
"KnownFileCount": 701,
"KnownFileSize": 17018416169,
"KnownFilesets": 15,
"LastBackupDate": "2025-10-30T11:19:08+08:00",
"BackupListCount": 15,
"TotalQuotaSpace": 0,
"FreeQuotaSpace": 0,
"AssignedQuotaSpace": -1,
"ReportedQuotaError": false,
"ReportedQuotaWarning": false,
"MainOperation": "Backup",
"ParsedResult": "Success",
"Interrupted": false,
"Version": "2.2.0.0 (2.2.0.0_stable_2025-10-23)",
"EndTime": "0001-01-01T00:00:00",
"BeginTime": "2025-10-30T03:19:08.3659559Z",
"Duration": "00:00:00",
"MessagesActualLength": 0,
"WarningsActualLength": 0,
"ErrorsActualLength": 0,
"Messages": null,
"Warnings": null,
"Errors": null
}
}
The exact file and it's path:
C:\Users\jazza\Documents\Code shit\Scripts\movies-list.txt
movies-list.txt
The bug report database:
https://mega.nz/file/mSZyTbIL#gmCXDJ0-5XE-UGnU70rM5lnjV3361bxOuc6eo5B0WDk
Source: duplicati/duplicati