Failed to patch with remote file

I’m new to this software, and would like to try it out. However, when I create my first backup (2 small files), set a simple backup password, I can’t restore the data. I’m backing up at a local destination on my computer. When I’m restoring I get the error:

2020-03-19 12.04.03 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: “duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes”, message: Failed to decrypt data (invalid passphrase?): Invalid password or corrupted data

I’m sure the password is correct.

Some more logs:

{
“RestoredFiles”: 2,
“SizeOfRestoredFiles”: 11509746,
“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”: “2020-03-19T11:04:44.2816971Z”,
“BeginTime”: “2020-03-19T11:03:23.5108171Z”,
“Duration”: “00:01:20.7708800”,
“MessagesActualLength”: 25,
“WarningsActualLength”: 0,
“ErrorsActualLength”: 2,
“Messages”: [
“2020-03-19 12.03.23 +01 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation Restore has started”,
“2020-03-19 12.03.23 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started: ()”,
“2020-03-19 12.03.23 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed: (6 bytes)”,
“2020-03-19 12.03.23 +01 - [Information-Duplicati.Library.Main.Database.LocalRestoreDatabase-SearchingBackup]: Searching backup 0 (19.03.2020 10.59.17) …”,
“2020-03-19 12.03.23 +01 - [Information-Duplicati.Library.Main.Operation.RestoreHandler-RemoteFileCount]: 2 remote files are required to restore”,
“2020-03-19 12.03.23 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.03.23 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.03.33 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.03.33 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.03.43 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.03.43 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.03.53 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.03.53 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.04.03 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.04.03 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Failed: duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes (611,08 KB)”,
“2020-03-19 12.04.03 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-bc40c219c3d04413fbead97fbf22d5496.dblock.zip.aes (3,76 KB)”,
“2020-03-19 12.04.03 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-bc40c219c3d04413fbead97fbf22d5496.dblock.zip.aes (3,76 KB)”,
“2020-03-19 12.04.14 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-bc40c219c3d04413fbead97fbf22d5496.dblock.zip.aes (3,76 KB)”,
“2020-03-19 12.04.14 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Retrying: duplicati-bc40c219c3d04413fbead97fbf22d5496.dblock.zip.aes (3,76 KB)”,
“2020-03-19 12.04.24 +01 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-bc40c219c3d04413fbead97fbf22d5496.dblock.zip.aes (3,76 KB)”
],
“Warnings”: ,
“Errors”: [
“2020-03-19 12.04.03 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: “duplicati-b873235796f8d408bb12ce20690d8e0e2.dblock.zip.aes”, message: Failed to decrypt data (invalid passphrase?): Invalid password or corrupted data”,
“2020-03-19 12.04.44 +01 - [Error-Duplicati.Library.Main.Operation.RestoreHandler-PatchingFailed]: Failed to patch with remote file: “duplicati-bc40c219c3d04413fbead97fbf22d5496.dblock.zip.aes”, message: Failed to decrypt data (invalid passphrase?): Invalid password or corrupted data”
],
“BackendStatistics”: {
“RemoteCalls”: 11,
“BytesUploaded”: 0,
“BytesDownloaded”: 0,
“FilesUploaded”: 0,
“FilesDownloaded”: 0,
“FilesDeleted”: 0,
“FoldersCreated”: 0,
“RetryAttempts”: 8,
“UnknownFileSize”: 0,
“UnknownFileCount”: 0,
“KnownFileCount”: 6,
“KnownFileSize”: 642174,
“LastBackupDate”: “2020-03-19T11:59:17+01:00”,
“BackupListCount”: 2,
“TotalQuotaSpace”: 1020807606272,
“FreeQuotaSpace”: 23889674240,
“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”: “2020-03-19T11:03:23.5108171Z”,
“Duration”: “00:00:00”,
“MessagesActualLength”: 0,
“WarningsActualLength”: 0,
“ErrorsActualLength”: 0,
“Messages”: null,
“Warnings”: null,
“Errors”: null
}
}

Any idea what is wrong here?

How are you doing the backup and restore? The most common method is to create a backup job in the Web UI and define all the properties there: what to back up, where to back up to, encyption key, etc.

When you want to restore, you go to that same backup job and click the Restore files option. You won’t be prompted to enter your encryption password because it’s stored with the job.

Is this how you’re doing it? Or are you using Duplicati command line utilities? If you are using the web UI to do the restore, are you entering the encryption key at some point?

Thanks, and welcome to the forum!

Yes, that is exactly how i do it. Set it up in webui, with encryption key, to local machine, then restore from same backup without specifying the encryption key again. And it fails with the above logs…

Are you using a password manager, either the default one built in to your browser or a third party one like LastPass? We have seen cases where the password manager would adjust the encryption password field unexpectedly (and even when it’s hidden, like when you do a restore through the web UI like you are doing).

If possible please disable your password manager or clear out the passwords it has saved for the Duplicati URLs and try again. Or if you prefer you can try a different browser temporarily as a test (one that doesn’t have the saved passwords).

Thank you very much! This was the reason for why it did not work. Disabling auto-fill for my password managers (which I should’ve done long time ago for security reasons) solved the problem… :smiley: :+1:

It causes a lot of grief! Glad that turned out to be the cause of your issue.

By the way, I noticed your dblock file is 611 MB. What did you set the Remote Volume Size to in your backup? The default is 50 MB, so when I saw you had a larger one I wanted to make sure you didn’t set it to something too high.

Strange, I did not change that value. It was set to 50mb for both my backup test configurations (FTP and local). Does it apply for local?

Intersting… yes that dblock size would apply to local backups too (even though it’s called Remote Volume Size). The dblocks should not have exceeded 50MB in size.

The dblock sizes here are in KB. Maybe that’s the explanation.

Doh! How did I misread that… thank you.