Git Push error: RPC failed; result=22, HTTP code = 413

root@colinbsd2:/usr/home/colin/githubbak/122614/MikroProject # git push -u origin master
Username for ‘https://git.hwcdi.com:8081’:
Password for ‘https://colin@git.hwcdi.com:8081’:
Counting objects: 1871, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1184/1184), done.
Writing objects: 100% (1871/1871), 24.95 MiB | 0 bytes/s, done.
Total 1871 (delta 531), reused 1871 (delta 531)
error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

The resolution, from google-foo is to increase NGINX’s client_max_body_size.
(add client_max_body_size 100m; to the http block of nginx.conf on gitlab server)

This issue persisted for me after modifying and reloading on my local gitlab server…
After a little bit of hair pulling, remembered I am (in this case) going through another NGINX as an intermediate proxy.

Updated config and reloaded on proxy to allow larger client_max_body_size, issue was resolved.

Leave a Reply

Your email address will not be published. Required fields are marked *