# SharpCompress.Compressors.LZMA.DataErrorException: Data Error

**URL:** https://forum.duplicati.com/t/sharpcompress-compressors-lzma-dataerrorexception-data-error/2073
**Category:** Support
**Created:** [January 12, 2018, 5:51am UTC](https://forum.duplicati.com/t/sharpcompress-compressors-lzma-dataerrorexception-data-error/2073 "2018-01-12T05:51:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![iperov](https://forum.duplicati.com/user_avatar/forum.duplicati.com/iperov/32/1101_2.png) [@iperov](https://forum.duplicati.com/u/iperov)
#### Post date: [January 12, 2018, 5:51am UTC](https://forum.duplicati.com/t/sharpcompress-compressors-lzma-dataerrorexception-data-error/2073/1 "2018-01-12T05:51:05Z")

</div>

![2018-01-12_09-37-50](https://forum.duplicati.com/uploads/default/original/2X/8/854faacd8532a1ae4255d7b936c49230985708c7.png)

![chrome_2018-01-12_09-38-00](https://forum.duplicati.com/uploads/default/original/2X/0/0f49ac514c257875afeb480edcf299668d540c75.png)

 ![chrome_2018-01-12_09-38-19](https://forum.duplicati.com/uploads/default/original/2X/7/7e0271f1ad2b340b59f9566ce43a61d2d75b9573.png)

test all archives by 7zip result NO error.

 ![7zFM_2018-01-12_10-07-00](https://forum.duplicati.com/uploads/default/original/2X/7/7883d7877ee4aae09bdcfa70ea692c78798f163d.png)

this error appear every month at various dbs, when duplicati try to upload to google drive.  
so if problem with LZMA, i’ll try to change type of compression.

---

<div class="post-metadata">

### Author: ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)
#### Post date: [January 13, 2018, 5:14am UTC](https://forum.duplicati.com/t/sharpcompress-compressors-lzma-dataerrorexception-data-error/2073/2 "2018-01-13T05:14:51Z")

</div>

So this is the same error you mentioned here about a month ago?

> [@Compacting because there are 21 small volumes and the maximum is 20](https://forum.duplicati.com/t/compacting-because-there-are-21-small-volumes-and-the-maximum-is-20/1600/6):
>
> I found only this error in common log SharpCompress.Compressors.LZMA.DataErrorException: Data Error at SharpCompress.Compressors.LZMA.LzmaStream.Read(Byte[] buffer, Int32 offset, Int32 count) at Duplicati.Library.Utility.Utility.ForceStreamRead(Stream stream, Byte[] buf, Int32 count) at Duplicati.Library.Main.Volumes.BlockVolumeReader.ReadBlock(String hash, Byte[] blockbuffer) at Duplicati.Library.Main.Operation.CompactHandler.DoCompact(LocalDeleteDatabase db, Boolean hasVerifiedBac…

If you’re using 7-zip, then yes - there is a known issue with that library (I think it might be a memory leak?). If you’re open to using a different algorithm you might want to give that a try.

---

<div class="post-metadata">

### Author: ![iperov](https://forum.duplicati.com/user_avatar/forum.duplicati.com/iperov/32/1101_2.png) [@iperov](https://forum.duplicati.com/u/iperov)
#### Post date: [January 13, 2018, 6:02am UTC](https://forum.duplicati.com/t/sharpcompress-compressors-lzma-dataerrorexception-data-error/2073/3 "2018-01-13T06:02:29Z")

</div>

what you mean I using 7-zip ? 🤨  
I using Duplicati.  
Bug with Duplicati in subj. Error report from Duplicati.  
I just checked db files with 7zip and no errors.

---

<div class="post-metadata">

### Author: ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)
#### Post date: [January 13, 2018, 2:11pm UTC](https://forum.duplicati.com/t/sharpcompress-compressors-lzma-dataerrorexception-data-error/2073/4 "2018-01-13T14:11:04Z")

</div>

> [@iperov](#):
>
> what you mean I using 7-zip ?

I mean if you have `--compression-module=7z` then the 7-Zip code is being used to create your archives. That code is known to have to have a memory leak:

> [@7z as a global option, but new backups are set to zip](https://forum.duplicati.com/t/7z-as-a-global-option-but-new-backups-are-set-to-zip/508/5):
>
> Unfortunately, that is how it is:

As another post in that topic states, if you are using `--compression-module=zip` (the default) but have set `--zip-compression-method=LZMA` then you shouldn’t be running into that particular issue.

> [@7z as a global option, but new backups are set to zip](https://forum.duplicati.com/t/7z-as-a-global-option-but-new-backups-are-set-to-zip/508/8):
>
> No, I refer to the LZMA2 compression, enabled with --compression-module=7z which also changes the file extension to .7z instead of .zip. You can change the --zip-compression-method=LZMA without any problems AFAIK.

Are your archive files ending in .7z (the above could be the problem) or in .zip (something else could be the problem)?

---

<div class="post-metadata">

### Author: ![iperov](https://forum.duplicati.com/user_avatar/forum.duplicati.com/iperov/32/1101_2.png) [@iperov](https://forum.duplicati.com/u/iperov)
#### Post date: [January 13, 2018, 3:59pm UTC](https://forum.duplicati.com/t/sharpcompress-compressors-lzma-dataerrorexception-data-error/2073/5 "2018-01-13T15:59:41Z")

</div>

`--compression-module=7z`  
not used

By default zip wiith LZMA.

---

<div class="post-metadata">

### Author: ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)
#### Post date: [January 14, 2018, 2:26am UTC](https://forum.duplicati.com/t/sharpcompress-compressors-lzma-dataerrorexception-data-error/2073/6 "2018-01-14T02:26:49Z")

</div>

> [@iperov](#):
>
> By default zip wiith LZMA.

Ok, so that rules out the known 7-Zip module problem.

Unfortunately, I’m not familiar with the standard zip module - hopefully somebody else such as @kenkendk will have a suggestion.
