Failed to decrypt data (invalid passphrase?): Message has been altered, do not trust content

Failed to decrypt data (invalid passphrase?): Message has been altered, do not trust content

occurs after running backup. have rebuilt db. this backs up to a Truenas server via FTP with compression and dedup enable.

I also just fixed an issue with my server’s FTP, but the issue persists.

"Message":"Failed to decrypt data (invalid passphrase?): Message has been altered, do not trust content",
{"ClassName":"SharpAESCrypt.SharpAESCrypt+HashMismatchException","Message":"Message has been altered, do not trust content",
 at SharpAESCrypt.SharpAESCrypt.Read(Byte[] buffer, Int32 offset, Int32 count)\r\n   at Duplicati.Library.Utility.Utility.CopyStream(Stream source, Stream target, Boolean tryRewindSource, Byte[] buf)\r\n   at Duplicati.Library.Encryption.EncryptionBase.Decrypt(Stream input, Stream output)",

"RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nRead\nSharpAESCrypt, Version=, Culture=neutral, PublicKeyToken=null\nSharpAESCrypt.SharpAESCrypt\nInt32 Read(Byte[], Int32, Int32)","HResult":-2146233296,"Source":"SharpAESCrypt","WatsonBuckets":null},"HelpURL":null,"StackTraceString":"   
at Duplicati.Library.Main.AsyncDownloader.AsyncDownloaderEnumerator.AsyncDownloadedFile.get_TempFile()\r\n  
 at Duplicati.Library.Main.Operation.CompactHandler.DoCompact(LocalDeleteDatabase db, Boolean hasVerifiedBackend, IDbTransaction& transaction, BackendManager sharedBackend)\r\n  
 at Duplicati.Library.Main.Operation.DeleteHandler.DoRun(LocalDeleteDatabase db, IDbTransaction& transaction, Boolean hasVerifiedBackend, Boolean forceCompact, BackendManager sharedManager)\r\n   
at Duplicati.Library.Main.Operation.BackupHandler.CompactIfRequired(BackendManager backend, Int64 lastVolumeSize)\r\n   
at Duplicati.Library.Main.Operation.BackupHandler.<RunAsync>d__20.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at CoCoL.ChannelExtensions.WaitForTaskOrThrow(Task task)\r\n   
at Duplicati.Library.Main.Controller.<>c__DisplayClass14_0.<Backup>b__0(BackupResults result)\r\n   
at Duplicati.Library.Main.Controller.RunAction[T](T result, String[]& paths, IFilter& filter, Action`1 method)\r\n   
at Duplicati.Library.Main.Controller.Backup(String[] inputsources, IFilter filter)\r\n   
at Duplicati.Server.Runner.Run(IRunnerData data, Boolean fromQueue)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nget_TempFile\nDuplicati.Library.Main, Version=, Culture=neutral, PublicKeyToken=null\nDuplicati.Library.Main.AsyncDownloader+AsyncDownloaderEnumerator+AsyncDownloadedFile\nDuplicati.Library.Utility.TempFile get_TempFile()","HResult":-2146233296,"Source":"Duplicati.Library.Main","WatsonBuckets":null}


Just means that Duplicati is unable to parse something that it has written before. It could be a hardware problem of course.
About the question of a possible relationship with your ‘fix’ - whatever it is, when you say that you ‘fixed an issue’ with the Ftp server, does it mean that you wiped out your backup after ‘fixing’ and started a new one, or that you are trying to use an existing backup after doing a possibly incompatible change in your backend ? if the former, that could mean that your ‘fix’ is invalid. If the latter, you could try to create a fresh backup toward a new directory on your server and see how it goes; if it’s better, wipe the old backup.

By the way, when you encounter a backend related error message, to try to rebuild the DB is probably not the first thing to do. To rebuild the DB is assuming that the backend is a valid source of truth.

The problem with the ftp server was the “alwayschroot” option restricting access to the local user home folder. I disabled that, and was able to verify access with an ftp client using the same credentials.

Hardware is unlikely, it’s a raidz2 array.

I will try a new folder.

well now my DB is hosed

same user…

\ not /

fixed this one

made new backup, moved olds to temp directory… tested, works.