Hi all. Just got a new MacBook (MacOS Sequoia 15.2) and am setting up Duplicati (fresh install, 2.1.0.2_beta_2024-11-29). Using SSH to backup files to a Samba drive on the LAN. Backup works without errors, and I can see the backup files on the NAS drive. But when I try to restore directly from the backup files I get the following errors:
Failed to connect: An error occurred (In a popup - center screen)
Invalid header value: 00-05-16-07-00 (Bottom of screen, with show/dismiss options. "show" does nothing.)
Searching on the errors gave no useful info. Any ideas what may be happening here, and how to get a successful restore from the backup files?
The restore will write log data into the file, and this should narrow down exactly what file is defective. From there, you can hopefully find an explanation for why this file is no longer in the correct state.
Once you identify the file, you can rename the file so it will not be read by Duplicati, and try again.
2025-01-21 16:59:07 -06 - [Information-Duplicati.Library.Main.Controller-StartingOperation]: The operation List has started
2025-01-21 16:59:07 -06 - [Information-Duplicati.Library.Main.Operation.ListFilesHandler-NoLocalDatabase]: No local database, accessing remote store
2025-01-21 16:59:07 -06 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Started: ()
2025-01-21 16:59:08 -06 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: List - Completed: (526 bytes)
2025-01-21 16:59:08 -06 - [Information-Duplicati.Library.Main.BasicResults-BackendEvent]: Backend event: Get - Started: duplicati-20250121T063000Z.dlist.zip.aes (3.021 MB)
2025-01-21 16:59:08 -06 - [Retry-Duplicati.Library.Main.BackendManager-RetryGet]: Operation Get with file duplicati-20250121T063000Z.dlist.zip.aes attempt 1 of 5 failed with message: Failed to decrypt data (invalid passphrase?): Invalid password or corrupted data
System.Security.Cryptography.CryptographicException: Failed to decrypt data (invalid passphrase?): Invalid password or corrupted data
---> SharpAESCrypt.WrongPasswordException: Invalid password or corrupted data
at SharpAESCrypt.SetupHelper.DecryptBulkEncryptionKeyAndVerifyHMAC(Byte[] data, HeaderEncryptionKey headerKey)
at SharpAESCrypt.DecryptingStreamInternal.ReadEncryptionHeader(Stream stream, SetupHelper helper, String password, DecryptionOptions options)
at SharpAESCrypt.DecryptingStreamInternal..ctor(String password, Stream stream, DecryptionOptions options)
at SharpAESCrypt.DecryptingStream..ctor(String password, Stream stream, DecryptionOptions options)
at Duplicati.Library.Encryption.AESEncryption.Decrypt(Stream input)
at Duplicati.Library.Encryption.EncryptionBase.Decrypt(Stream input, Stream output)
--- End of inner exception stack trace ---
at Duplicati.Library.Encryption.EncryptionBase.Decrypt(Stream input, Stream output)
at Duplicati.Library.Encryption.EncryptionBase.Decrypt(String inputfile, String outputfile)
at Duplicati.Library.Main.BackendManager.DoGetFile(FileEntryItem item, IEncryption useDecrypter, CancellationToken cancellationToken)
at Duplicati.Library.Main.BackendManager.DoGetAsync(FileEntryItem item, CancellationToken cancellationToken)
at Duplicati.Library.Utility.Utility.Await(Task task)
at Duplicati.Library.Main.BackendManager.ThreadRun()
So it is clearly crashing due to the inability to decrypt the file. However, I exported the backup configuration (with passwords) to a local JSON file, then copied the passphrase directly from the JSON file and pasted it into the “Restore from backup files” workflow. In theory, using this passphrase from the JSON should allow for decryption, yet it’s not working. To add to the confusion, when I restore using the “Restore from <named backup>” option, it seems to work fine and gives me the directory/file tree to restore from.
The only thing that may (or may not) be related, is that I don’t have signed certificates on my network. When I do the “from files” restore and enter the SSH destination info, I get a “please verify the cert key” warning. I answer “Yes” to that message and the process keeps going. Not sure if/how that may affect what I’m seeing, but I thought I’d mention that in case it makes a difference.
I’m pretty sure I’ve done a “from files” restore in the past, but I can’t swear to that, so I’m not sure if this is a 2.1.0.2 issue.