# Can't clone or pull repository

**URL:** <https://forum.gitea.com/t/cant-clone-or-pull-repository/4184>\
**Category:** Install/Maintain/Configure\
**Created:** [December 4, 2021, 7:36pm UTC](https://forum.gitea.com/t/cant-clone-or-pull-repository/4184 "2021-12-04T19:36:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wusikijeronii](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/wusikijeronii/32/1619_2.png) [@wusikijeronii](https://forum.gitea.com/u/wusikijeronii)\
**Post date:** [December 4, 2021, 7:36pm UTC](https://forum.gitea.com/t/cant-clone-or-pull-repository/4184/1 "2021-12-04T19:36:25Z")

</div>

Hello.  
When I try to clone or pull a repository (no matter ssh to HTTPS) I get the error:

```auto
remote: aborting due to possible repository corruption on the remote side.
Gitea: Internal error
fatal: unexpected end of file
fatal: fetch-pack: invalid index-pack output
Gitea: Internal error

```

I tried to clone on two machines (Linux & WSL). Same error. On the first machine, my repository has been cloned and I can push commits. In the Gitea Web interface I see changes. I also tried:

```auto
git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m"
git config --global pack.threads "1"

```

The Gitea instance is deployed in the cluster. I also tried to clone the needed repository from each node.

P.S: I had a same error a few days ago. Then I just created a new repository and commit my files. But today I had to pull changes on the second machine (WSL)

---

<div class="post-metadata">

**Author:** ![wusikijeronii](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/wusikijeronii/32/1619_2.png) [@wusikijeronii](https://forum.gitea.com/u/wusikijeronii)\
**Post date:** [December 4, 2021, 9:43pm UTC](https://forum.gitea.com/t/cant-clone-or-pull-repository/4184/2 "2021-12-04T21:43:09Z")

</div>

I figured it out. It’s a memory issue. I increased the memory limit in the containers orchestrator I am using and it worked. But it is strange to there isn’t any information about that in logs. Just 500 Interval error.

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [December 6, 2021, 5:30am UTC](https://forum.gitea.com/t/cant-clone-or-pull-repository/4184/3 "2021-12-06T05:30:55Z")

</div>

Because you are running the instance in production mode. For security consider, it will not display the detail error information. If you change the RUN\_MODE to dev, it will display the details.
