I'm trying to push the changes to Git remote repository, but got ended with following error message -
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 INKApi Error fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly Everything up-to-date
I have followed the steps below till now -
- Made required configuration to clone the package
- Cloned the repository using following line -
- Made some changes in existing method and saved the file
- Then executed following commands to add, commit & push
git add testpath/updatedfile.py
git commit -m "Updating sample script"
git push
git push origin master
But no luck, getting same error mentioned above. Please help
55 Answers
Github itself may be down also
9Increase the Git buffer size to the largest individual file size of your repo:
git config --global http.postBuffer 157286400 http.postBuffer
Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.
I am running Gitlab Community Edition version 8.10.6. To solve this issue I changed two params in my /etc/gitlab/gitlab.rb configuration file. I show the default values in the commended rows.
# gitlab_rails['git_max_size'] = 20971520 gitlab_rails['git_max_size'] = 524288000 # nginx['client_max_body_size'] = '250m' nginx['client_max_body_size'] = '0' After that I run the above commands (the second is optional),
gitlab-ctl reconfigure gitlab-ctl restart First, i tried and i get the same Error.
But i went to the config Project in Gitlab, and i add my email to members in project, and after i changed the SSH url to HTTPS i make again the git remote add and it works
I know github is down right now, but somehow this works for me everytime I try to push.
git pull --rebase git push