git hanging on push (broken pipe)

I've been experiencing issues with git in combination with the bitbucket.org service lately.

I recently installed a new version of Ubuntu (after wiping completely). At first I have copied the ssh keys, but since I thought that this might cause issues, I generated a new pair and copied the new public key to bitbucket.org. The old keys are removed now.

This is what I get on `git push`

Counting objects: 44, done.
    Delta compression using up to 2 threads.
    Compressing objects: 100% (33/33), done.
    Writing objects: 100% (33/33), 3.33 KiB, done.
    Total 33 (delta 25), reused 0 (delta 0)

At this point it takes (not actually) forever to finally display:

Write failed: Broken pipe
    fatal: The remote end hung up unexpectedly
    fatal: recursion detected in die handler

This is my configuration shown by `git remote show origin`

* remote origin
      Fetch URL: git@bitbucket.org:Username/name_of_repo.git
      Push  URL: git@bitbucket.org:Username/name_of_repo.git
      HEAD branch: master
      Remote branch:
        master tracked
      Local branch configured for 'git pull':
        master merges with remote master
      Local ref configured for 'git push':
        master pushes to master (fast-forwardable)

A `git pull` gives "Already up-to-date." as expected.

Output of `git fsck` is

Checking object directories: 100% (256/256), done.
    Checking objects: 100% (468/468), done.

A very small push previously succeeded, the changeset I'm trying to push now is a bit larger, but only covers around 10 files, which never were a problem before reinstalling the OS.

What can cause these issues? It's not the bitbucket.org service right now as a colleague of mine can do actions on his machine (on the same wireless network).

This only happens when trying to push over `ssh`, but not with `https`

( I asked this question on stackoverflow.com too )

2 answers

Can you send us your URL to support.atlassian.com. I'd like to take a look at your repo to ensure there aren't any issues server side.

Can you send us your URL to support.atlassian.com. I'd like to take a look at your repo to ensure there aren't any issues server side.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

646 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot