Restore with Invalid password or corrupted data Error

Hi, today i wanted to test if i can restore data from an backup and got the error in the title.
The first try was to recover data direct from the backup.

synologie-Clients

156,62 GB / 146 Versionen

Letzte erfolgreiche Wiederherstellung: heute um 13:12 Uhr (dauerte 00:11:24)

It was only one file and at the end i got the error. The file was only 0 bytes. The original is about 28kb.

In the process to choose the file to recover I got warnings. But when i press show, i don’t see the actual warning only older logs. I tried differnt backup versions and get the same error.

{
  "RestoredFiles": 0,
  "SizeOfRestoredFiles": 0,
  "RestoredFolders": 0,
  "RestoredSymlinks": 0,
  "PatchedFiles": 0,
  "DeletedFiles": 0,
  "DeletedFolders": 0,
  "DeletedSymlinks": 0,
  "MainOperation": "Restore",
  "RecreateDatabaseResults": null,
  "ParsedResult": "Error",
  "Version": "2.0.5.1 (2.0.5.1_beta_2020-01-18)",
  "EndTime": "2023-03-22T16:18:29.0053609Z",
  "BeginTime": "2023-03-22T16:10:56.0352006Z",
  "Duration": "00:07:32.9701603",
  "MessagesActualLength": 16,
  "WarningsActualLength": 0,
  "ErrorsActualLength": 2,
  "Messages": [
    "2023-03-22 17:10:56 +01 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: Die Operation Restore wurde gestartet",
    "2023-03-22 17:10:56 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started:  ()",
    "2023-03-22 17:11:03 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed:  (1,22 KB)",
    "2023-03-22 17:11:03 +01 - [Information-Duplicati.Library.Main.Database.LocalRestoreDatabase-SearchingBackup]: Searching backup 5 (14.03.2023 00:00:00) ...",
    "2023-03-22 17:11:04 +01 - [Information-Duplicati.Library.Main.Operation.RestoreHandler-RemoteFileCount]: 1 remote files are required to restore",
    "2023-03-22 17:11:04 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:12:38 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:12:48 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:14:05 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:14:15 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:15:34 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:15:44 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:17:02 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:17:12 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:18:28 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Failed: duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes (185,64 MB)",
    "2023-03-22 17:18:29 +01 - [Information-Duplicati.Library.Main.Operation.RestoreHandler-RestoreFailures]: Failed to restore 1 files, additionally the following files failed to download, which may be the cause:\r\nduplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes"
  ],
  "Warnings": [],
  "Errors": [
    "2023-03-22 17:18:29 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: \"duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes\", message: Fehler beim Entschlüsseln der Daten (ungültige Passphrase?): Invalid password or corrupted data",
    "2023-03-22 17:18:29 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-RestoreFileFailed]: Failed to restore file: \"C:\\temp\\aktuell.docx\". File hash is 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=, expected hash is kXeZfVEQBUAJ92JDP6qP6lI0dNTmKM+Q58IB83IR/Es="
  ],
  "BackendStatistics": {
    "RemoteCalls": 6,
    "BytesUploaded": 0,
    "BytesDownloaded": 0,
    "FilesUploaded": 0,
    "FilesDownloaded": 0,
    "FilesDeleted": 0,
    "FoldersCreated": 0,
    "RetryAttempts": 4,
    "UnknownFileSize": 0,
    "UnknownFileCount": 0,
    "KnownFileCount": 1254,
    "KnownFileSize": 168168213422,
    "LastBackupDate": "2023-03-21T01:00:00+01:00",
    "BackupListCount": 146,
    "TotalQuotaSpace": 0,
    "FreeQuotaSpace": 0,
    "AssignedQuotaSpace": -1,
    "ReportedQuotaError": false,
    "ReportedQuotaWarning": false,
    "MainOperation": "Restore",
    "ParsedResult": "Success",
    "Version": "2.0.5.1 (2.0.5.1_beta_2020-01-18)",
    "EndTime": "0001-01-01T00:00:00",
    "BeginTime": "2023-03-22T16:10:56.0352006Z",
    "Duration": "00:00:00",
    "MessagesActualLength": 0,
    "WarningsActualLength": 0,
    "ErrorsActualLength": 0,
    "Messages": null,
    "Warnings": null,
    "Errors": null
  }
}

I tried a recover from an other machine with manual giving the data and restored the whole folder with the file i got the error and every file could be recovery but only the one with problems couldn’t be recoverd with the same problem.

Here is the logfile:

Errors 9

    2023-03-22 14:47:31 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: "duplicati-bb29ad1d3af664dd1a357d58474c31d5b.dblock.zip.aes", message: Fehler beim Entschlüsseln der Daten (ungültige Passphrase?): Invalid password or corrupted data
    2023-03-22 14:48:25 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: "duplicati-b0d30cc7903e2457e842fda18083cbace.dblock.zip.aes", message: Fehler beim Entschlüsseln der Daten (ungültige Passphrase?): Invalid password or corrupted data
    2023-03-22 14:54:59 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: "duplicati-bafbc4db1863a4b37867d99134e0eb2fb.dblock.zip.aes", message: Fehler beim Entschlüsseln der Daten (ungültige Passphrase?): Invalid password or corrupted data
    2023-03-22 15:08:27 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: "duplicati-b57e0ce8a4eef46a2a1400f718c658a3a.dblock.zip.aes", message: Fehler beim Entschlüsseln der Daten (ungültige Passphrase?): Invalid password or corrupted data
    2023-03-22 15:15:58 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: "duplicati-ba8068fb5e96043549ca86c8da071be99.dblock.zip.aes", message: Fehler beim Entschlüsseln der Daten (ungültige Passphrase?): Invalid password or corrupted data
    2023-03-22 15:28:43 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: "duplicati-bc4d49948603e4fa8a3b83fd35befb683.dblock.zip.aes", message: Fehler beim Entschlüsseln der Daten (ungültige Passphrase?): Invalid password or corrupted data
    2023-03-22 15:36:05 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: "duplicati-bb71f94388033410cbc839098baf041a2.dblock.zip.aes", message: Fehler beim Entschlüsseln der Daten (ungültige Passphrase?): Invalid password or corrupted data
    2023-03-22 15:47:32 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: "duplicati-bfc5507e4dc7f4ac18b6d55d21bf32123.dblock.zip.aes", message: Fehler beim Entschlüsseln der Daten (ungültige Passphrase?): Invalid password or corrupted data
    2023-03-22 15:47:32 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-RestoreFileFailed]: Failed to restore file: "C:\temp\Ordner\Allgemein\aktuell.docx". File hash is 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=, expected hash is kXeZfVEQBUAJ92JDP6qP6lI0dNTmKM+Q58IB83IR/Es=

I use the latest stable version from duplicati and the backup is on a synology NAS with sftp. The backups run on a MS server 2016.

How can i repair the backup. I got no warnings and errors during the last backups. I tried file check but although got no errors.

Hello

Make sure that the file is really corrupted by downloading it with your favourite sftp client and try to decode it using

SharpAESCrypt.exe d yourkey duplicati-bc4d49948603e4fa8a3b83fd35befb683.dblock.zip.aes duplicati-bc4d49948603e4fa8a3b83fd35befb683.dblock.zip

If an encrypted file is not valid you can’t repair it, you can only download again the data if it’s still available on the host.
if this is the case, in your place I’ll try to use the ‘Affected’ command to find the files concerned and then the ‘Purge’ command to remove them from the backup. If it works, it should not be necessary to repair the database.