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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

28,936 views 26 12
Join discussion

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