# Large diff push fails

**URL:** <https://forum.gitea.com/t/large-diff-push-fails/5962>\
**Category:** Gitea Usages\
**Created:** [September 29, 2022, 6:00am UTC](https://forum.gitea.com/t/large-diff-push-fails/5962 "2022-09-29T06:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahzad.ahmad](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@shahzad.ahmad](https://forum.gitea.com/u/shahzad.ahmad)\
**Post date:** [September 29, 2022, 6:00am UTC](https://forum.gitea.com/t/large-diff-push-fails/5962/1 "2022-09-29T06:00:00Z")

</div>

**Setup Details:**  
**OS:** Ubuntu 20.04  
**Gitea:** 1.17.1 Docker  
**Database:** MYSQL 8  
**Reverse Proxy:** Nginx

When I push first commit in an empty repo, I get the error:

```auto
Enumerating objects: 18064, done.
Counting objects: 100% (18064/18064), done.
Delta compression using up to 8 threads
Compressing objects: 100% (10953/10953), done.
Writing objects: 100% (18064/18064), 40.95 MiB | 80.80 MiB/s, done.
Total 18064 (delta 5009), reused 18064 (delta 5009)
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

```

Forum and Github issues lists this issue could be becuase of limits in nginx. I increased this limits to absurd 32GB and timeout to 10k seconds, but still getting the error.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/c/c0a88a3a5195cd0a3ee6a423945e471f0ad497b9.png)

Nginx logs:

```auto
<Server IP> - - [29/Sep/2022:05:57:02 +0000] "GET /<my.username>/test-large-push.git/info/refs?service=git-receive-pack HTTP/1.1" 401 13 "-" "git/2.21.0"
<Server IP> - <my.username> [29/Sep/2022:05:57:07 +0000] "GET /<my.username>/test-large-push.git/info/refs?service=git-receive-pack HTTP/1.1" 200 229 "-" "git/2.21.0"

```

Repo is not that big (As can be seen in logs). Complete folder with all `.gitignore` files `node_moduels` and `asstes` is 264MB.

---

<div class="post-metadata">

**Author:** ![Beat2er](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/beat2er/32/3161_2.png) [@Beat2er](https://forum.gitea.com/u/Beat2er)\
**Post date:** [October 27, 2022, 10:12am UTC](https://forum.gitea.com/t/large-diff-push-fails/5962/2 "2022-10-27T10:12:57Z")

</div>

Try this on different scopes: http, server and location in your nginx.conf
