A strange problem suddenly occurred in most of my repos. I used to push normaly via SSH to Bitbucket, different types of files (.html, .pdf, .png, .js, .css, etc.) without any problems.
Few days ago I started getting the following error when trying to push:
Received disconnect from 104.192.143.3: 2: Packet corrupt
fatal: The remote end hung up unexpectedly
It seems to happen when images or pdf files are included in my commits. For minor changes in text files, I can push without any problem.
I tried to push via HTTPS and got the following error:
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly.
Tried to increase the httpPostBuffer:
(git config http.postBuffer 524288000)
but with no success. Tried to create .gitattributes file for proper handling of files and then removed cached index, again with no success.
I am working on Ubuntu 14.04 LTS. Git version is 1.9.1.
Tried to reproduce the error on a Windows machine, by cloning the repo and making similar changes, but I wasn't able, as it pushed normally.
I am stuck.
Any help aprreciated.
Thanks in advance,
George Georgopoulos
In my case I switch my connection from ADSL to the hotspot of my SmartPhone and it works...
Another solution is to install a rate limiter on your computer.
I installed Network Link Conditioner from apple, set it to 500kbit/s upload speed maximum and I can push to bitbucket again.
Get Network Link Conditioner from apples developer site. It's part of the Hardware IO Tools for Xcode package. It was a little fiddly to get running. I had to install the version that matched my Xcode installation before it worked, and rebooted at least once.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With