Gitlab error “fatal: The remote end hung up unexpectedly”

Gitlab error “fatal: The remote end hung up unexpectedly”

Tags :

Category : How-to

Get Social!

gitlabI have been using Gitlab for a while now to run a local Git server for storing code and documentation of the projects I work on. Gitlab is the open source version of Github which you can run on your own environments .

After upgrading to version 6.3 I received an error when checking in larger projects to the Gitlab server.

The below shows the git push command and the error which occurred.

git push origin master
Counting objects: 47, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (43/43), done.
Writing objects: 100% (47/47), 2.91 MiB | 204.00 KiB/s, done.
Total 47 (delta 0), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

The solution is the run the below command on the client to increase the postBuffer size before trying to re-run the git push. Use the below command to set the postBuffer size to 100MB.

git config http.postBuffer 104857600

Then retry the git push and all should be working.

git push origin master
Counting objects: 47, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (43/43), done.
Writing objects: 100% (47/47), 2.91 MiB | 0 bytes/s, done.
Total 47 (delta 0), reused 0 (delta 0)


8 Comments

Jay Chen

11-Jan-2014 at 12:55 am

I get this error when cloning, not pushing. Is there a solution for this?

    Kevin

    5-May-2014 at 3:06 am

    git config –global http.postBuffer 104857600

james.coyle

11-Jan-2014 at 7:18 pm

Hi Jay,

Can you do ‘git init’, ‘git remote add origin http://git-url‘ and finally ‘git pull origin master’ instead?

Daniel

21-Apr-2014 at 9:02 pm

Thanks for the tip – worked perfectly.

Zaheer

5-Aug-2014 at 6:11 am

Check if the url was moved /renamed

sebabeva

17-Oct-2014 at 11:39 pm

thanks dude!

lytsing

8-Nov-2014 at 9:30 am

you save me, thanks man!

Romina

12-Aug-2016 at 4:35 pm

Gracias!
Funciona, pero hay alguna forma de que quede permanente?

It works, but there is some way to make it permanent?

Leave a Reply

Visit our advertisers

Quick Poll

What type of VPN protocol do you use?

Visit our advertisers