Git push fails - client intended to send too large chunked body
With an nginx (nginx version 1.4.7 which includes built-in chunking support) front end, attempting to push to Stash over HTTP/S fails with the following error (SSH works without issue):
client_max_body_size on the 443 server entry, pushing dies basically immediately for anything not trivially-sized because the default limit of 1M is applied. By setting
client_max_body_size 1024m; on 443, pushing a 650MB repository succeeds. Pushing a 1.2GB repository fails with the final failure in the output above, where nginx complains about the the data being over 1GB.
client_max_body_size 0; allows users to push repositories of any size.
Was this helpful?
Thanks for your feedback!