Common Git problems
Git - RPC failed; HTTP 503 curl 22 The requested URL returned error
When pushing data to the remote repository, it can happen that you get the following error.
POST git-receive-pack (chunked)
error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503 Service Unavailable
fatal: The remote end hung up unexpectedly
Cause
The cause is a limit in your local Git client. This limit is reached when pushing/uploading a large amount of files. Your local Git client gives a timeout on the connection to the Hyperlane Git server.
Solution
You can increase the postBuffer
on your local Git client with the following command:
git config --global http.postBuffer 15728640
More detail on this issue can be found on https://confluence.atlassian.com/bitbucketserverkb/git-push-fails-fatal-the-remote-end-hung-up-unexpectedly-779171796.html
The increase in the postBuffer should resolve the issue, in case the problem persists, then it is advised to connect with Git via SSH.