How to Fix this Error When Creating a Database Fix Already Created Backup Copy

How to Fix this Error When Creating a Database Fix Already Created Backup Copy
“Invalid header marker”

We need a little more detail:

  • What version of Duplicati are you running?
  • What OS (Windows, Linux, MacOS)?
  • What destination are you using (local, FTP, Google Drive, …)?
  • Can you copy / paste more of the actual error message?

Here’s a description of the “Invalid header marker” error likely meant to somebody using Dropbox:

You should be able to click on the error in the Duplicati logs to get details about it including the name of the file with the problem. If you can, then check the destination directly to make sure the file isn’t 0 bytes in size.

Version of Windows 10. Version of Duplicate 2.0.3.3_beta_2018-04-02.I use a Backup Copy According to the protocol WebDev mail.ru which is connected to Explorer and not to the direct settings of Duplicati Through the computer there is traffic to the webmail mail
Version of Windows 10. Version of Duplicate 2.0.3.3_beta_2018-04-02.I use a Backup Copy According to the protocol WebDev mail.ru which is connected to Explorer and not to the direct settings of Duplicati Through the computer there is traffic to the webmail mail

Here are the logs

Failed to process index file: duplicati-ieb1200ced4fc4b7a947ea3b322e09d2c.dindex.zip.aes
System.Security.Cryptography.CryptographicException: Invalid header marker —> System.IO.InvalidDataException: Invalid header marker
в SharpAESCrypt.SharpAESCrypt.ReadEncryptionHeader(String password, Boolean skipFileSizeCheck)
в SharpAESCrypt.SharpAESCrypt…ctor(String password, Stream stream, OperationMode mode, Boolean skipFileSizeCheck)
в Duplicati.Library.Encryption.AESEncryption.Decrypt(Stream input)
в Duplicati.Library.Encryption.EncryptionBase.Decrypt(Stream input, Stream output)
в Duplicati.Library.Main.BackendManager.<>c__DisplayClass35_0.b__0()
в System.Threading.Tasks.Task.Execute()
— Конец трассировки внутреннего стека исключений —
в Duplicati.Library.Main.AsyncDownloader.AsyncDownloaderEnumerator.AsyncDownloadedFile.get_TempFile()
в Duplicati.Library.Main.Operation.RecreateDatabaseHandler.DoRun(LocalDatabase dbparent, Boolean updating, IFilter filter, NumberedFilterFilelistDelegate filelistfilter, BlockVolumePostProcessor blockprocessor)

30 июня 2018 г., 20:19: Message
Processing required 3 blocklist volumes

Operation Get with file duplicati-ieb1200ced4fc4b7a947ea3b322e09d2c.dindex.zip.aes attempt 5 of 5 failed with message: Invalid header marker
System.Security.Cryptography.CryptographicException: Invalid header marker —> System.IO.InvalidDataException: Invalid header marker
в SharpAESCrypt.SharpAESCrypt.ReadEncryptionHeader(String password, Boolean skipFileSizeCheck)
в SharpAESCrypt.SharpAESCrypt…ctor(String password, Stream stream, OperationMode mode, Boolean skipFileSizeCheck)
в Duplicati.Library.Encryption.AESEncryption.Decrypt(Stream input)
в Duplicati.Library.Encryption.EncryptionBase.Decrypt(Stream input, Stream output)
в Duplicati.Library.Main.BackendManager.<>c__DisplayClass35_0.b__0()
в System.Threading.Tasks.Task.Execute()
— Конец трассировки внутреннего стека исключений —
в Duplicati.Library.Main.AsyncDownloader.AsyncDownloaderEnumerator.AsyncDownloadedFile.get_TempFile()
в Duplicati.Library.Main.Operation.RecreateDatabaseHandler.DoRun(LocalDatabase dbparent, Boolean updating, IFilter filter, NumberedFilterFilelistDelegate filelistfilter, BlockVolumePostProcessor blockprocessor)

30 июня 2018 г., 19:41: Message
Filelists restored, downloading 584 index files

30 июня 2018 г., 20:17: Retry
Operation Get with file duplicati-ieb1200ced4fc4b7a947ea3b322e09d2c.dindex.zip.aes attempt 3 of 5 failed with message: Invalid header marker
System.Security.Cryptography.CryptographicException: Invalid header marker —> System.IO.InvalidDataException: Invalid header marker
в SharpAESCrypt.SharpAESCrypt.ReadEncryptionHeader(String password, Boolean skipFileSizeCheck)
в SharpAESCrypt.SharpAESCrypt…ctor(String password, Stream stream, OperationMode mode, Boolean skipFileSizeCheck)
в Duplicati.Library.Encryption.AESEncryption.Decrypt(Stream input)
в Duplicati.Library.Encryption.EncryptionBase.Decrypt(Stream input, Stream output)
в Duplicati.Library.Main.BackendManager.<>c__DisplayClass35_0.b__0()
в System.Threading.Tasks.Task.Execute()
— Конец трассировки внутреннего стека исключений —
в Duplicati.Library.Main.BackendManager.coreDoGetPiping(FileEntryItem item, IEncryption useDecrypter, Int64& retDownloadSize, String& retHashcode)
в Duplicati.Library.Main.BackendManager.DoGet(FileEntryItem item)
в Duplicati.Library.Main.BackendManager.ThreadRun()

30 июня 2018 г., 19:53: Message
Failed to process index file: duplicati-i38cbb91841d44adbb65822bda69bdec8.dindex.zip.aes
System.Security.Cryptography.CryptographicException: Invalid header marker —> System.IO.InvalidDataException: Invalid header marker
в SharpAESCrypt.SharpAESCrypt.ReadEncryptionHeader(String password, Boolean skipFileSizeCheck)
в SharpAESCrypt.SharpAESCrypt…ctor(String password, Stream stream, OperationMode mode, Boolean skipFileSizeCheck)
в Duplicati.Library.Encryption.AESEncryption.Decrypt(Stream input)
в Duplicati.Library.Encryption.EncryptionBase.Decrypt(Stream input, Stream output)
в Duplicati.Library.Main.BackendManager.<>c__DisplayClass35_0.b__0()
в System.Threading.Tasks.Task.Execute()
— Конец трассировки внутреннего стека исключений —
в Duplicati.Library.Main.AsyncDownloader.AsyncDownloaderEnumerator.AsyncDownloadedFile.get_TempFile()
в Duplicati.Library.Main.Operation.RecreateDatabaseHandler.DoRun(LocalDatabase dbparent, Boolean updating, IFilter filter, NumberedFilterFilelistDelegate filelistfilter, BlockVolumePostProcessor blockprocessor)

30 июня 2018 г., 19:53: Retry
Operation Get with file duplicati-i385ce9e3ebeb4c0b84f8c9a33d8890e4.dindex.zip.aes attempt 1 of 5 failed with message: Не найден сетевой путь.
System.IO.IOException: Не найден сетевой путь.

в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
в System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)
в Duplicati.Library.Backend.File.Get(String remotename, Stream stream)
в Duplicati.Library.Main.BackendManager.coreDoGetPiping(FileEntryItem item, IEncryption useDecrypter, Int64& retDownloadSize, String& retHashcode)
в Duplicati.Library.Main.BackendManager.DoGet(FileEntryItem item)
в Duplicati.Library.Main.BackendManager.ThreadRun()

If you use WebDAV to look at file duplicati-ieb1200ced4fc4b7a947ea3b322e09d2c.dindex.zip.aes can you tell what size it is?

If you can open it in a hex editor does it start with the letters AES?

This message likely came from recreating the database, is that what you are trying to do when the “invalid header marker” error happens?