Forum archive
Gitea throwing 413 on Repo Push
So I was moving some of my repos off github to my local gitea and I get a 413 reply.
Enumerating objects: 198, done.
Counting objects: 100% (198/198), done.
Delta compression using up to 12 threads
Compressing objects: 100% (190/190), done.
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (198/198), 1.34 MiB | 959.00 KiB/s, done.
Total 198 (delta 37), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
Repo is about 7MB
What can I check or where is there a setting to resolve?
I'm not out of disk space.
I saw SO posts about nginx proxy so I upped that and it appears to be working fine now.
But was this the correct location to properly resolve this issue?
I didn't see a default set in the conf file but obviously, in absence of client_max_body_size 0, it assumes some value.
You don't actually explicitly say where you did it, but assuming that you added (or updated) an increase to somewhere client_max_body_size within Nginx config, then you done good! :)
FWIW, the default value for client_max_body_size is "1M".
Considering it's so small by default, perhaps we should make it a bit bigger by default? What do you think? What size have you updated it to?
I was about to say that it was weird because I have a Gitea server that's been runnign for years and use it a fair bit. I have never hit that issue and just logged in to double check that it still had default settings. It does, but then it occurred to me that I always use SSH with git, so no surprise I've never hit this issue! :)