Git PUSH results in RPC failed, result=22, HTTP code = 413
Symptoms
An attempt to push to a Fisheye/Crucible managed repository results in the following error:
HTTP Status Code 413 (413 Request Entity Too Large)
For example:
$ git push origin master
Username:
Password:
Counting objects: 4372, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4274/4274), done.
error: RPC failed; result=22, HTTP code = 413
Writing objects: 100% (4372/4372), 89.62 MiB | 19.17 MiB/s, done.
Total 4372 (delta 2630), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Cause
The default file post size has been exceeded.
Resolution
Configure Fisheye/Crucible, from version 3.0 on, with the following System Property so its own WebServer (Jetty) will accept a large changeset. For example, the command below will allow requests up to 300MB in size:
(via the FISHEYE_OPTS environment variable)
-Dorg.eclipse.jetty.server.Request.maxFormContentSize=300000000