# Error while cloning the repo \[fatal: pack has bad object at offset 10642840172: inflate returned -5\]

**URL:** <https://forum.gitea.com/t/error-while-cloning-the-repo-fatal-pack-has-bad-object-at-offset-10642840172-inflate-returned-5/8606>\
**Category:** Gitea Usages\
**Created:** [February 20, 2024, 7:04pm UTC](https://forum.gitea.com/t/error-while-cloning-the-repo-fatal-pack-has-bad-object-at-offset-10642840172-inflate-returned-5/8606 "2024-02-20T19:04:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anothaiyoyo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/anothaiyoyo/32/4405_2.png) [@anothaiyoyo](https://forum.gitea.com/u/anothaiyoyo)\
**Post date:** [February 20, 2024, 7:04pm UTC](https://forum.gitea.com/t/error-while-cloning-the-repo-fatal-pack-has-bad-object-at-offset-10642840172-inflate-returned-5/8606/1 "2024-02-20T19:04:42Z")

</div>

Hi everyone , I’m using Gitea for my company in a while now , my users can clone the repo normally before that , ( I’m also a newbie for Git )

but for now the problem that I found in a week ago , it has one repo that we can’t clone it the problem that we found is

> fatal: pack has bad object at offset 10642840172: inflate returned -5  
> fatal: fetch-pack: invalid index-pack output

the solution that I already did from Git side

> git config --global pack.windowMemory “100m”  
> git config --global pack.packSizeLimit “100m”  
> git config --global pack.threads “1”  
> git config --global pack.deltaCacheSize “512m”  
> git config --global http.postBuffer 20000000000

From Gitea site that I add on .gitconfig // configfile

[pack]  
windowMemory = 100m  
SizeLimit = 100m  
threads = 1

all this above solution can’t resolve my problem ,  
and I can’t clone with “–depth=1” for some reason ,but before that It can clone normally not sure what going on here , so if anyone has familiar problem and can resolve please give me some clue or solution , Thank you .

 ![Screenshot_22](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/6/64f80ce5f6c0af742b2827c5eaea2a8aba5d2786.png)
