'Unable to push the changes to Git remote repository

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 -

  1. Made required configuration to clone the package

git config --global http.proxy http://mydomain\myusername:mypassword@myproxyserver:8080

  1. Cloned the repository using following line -

git clone http://mypackageurl

  1. Made some changes in existing method and saved the file
  2. 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



Solution 1:[1]

Github itself may be down also

Solution 2:[2]

Increase 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.

Solution 3:[3]

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

Solution 4:[4]

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

Solution 5:[5]

I know github is down right now, but somehow this works for me everytime I try to push.

git pull --rebase
git push

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 apinanyogaratnam
Solution 2 Praveen Govind
Solution 3 Georgios Syngouroglou
Solution 4 Sebastian Agreda
Solution 5 ouflak