git push timeout

Have setup Atlassian Bitbucket on my own dedicated server, set firewall rules for every port known to man (22,443,7999,7990) on the server but get a timeout whenever I try to push to remote. I also get a timeout doing an ssh -tv.

Any help would be gratefully received as I am about to begin tearing my hair out!

2 answers

0 votes

I'd suggest doing a couple of tests from the server to pinpoint the problem:

  • have a look at <BITBUCKET_HOME>/logs/atlassian-bitbucket.log to see whether any problems are reported (e.g. SSH server not starting up)
  • check the SSH server status and port in Administration > Server Settings. Is it running at the expected port?

On the server:

  • run git ls-remote ssh://git@localhost:7999/<project-key>/<repo-slug>.git If this works, you've verified that SSH works
  • Same for HTTP, but use http://<username>@localhost:7990/bitbucket/scm/<project-key>/<repo-slug>.git
  • With a test repo, try to clone, make a change, commit it and push the change to the server

If all of this works, it looks like a problem with the firewall or proxy server if you have that set up.

If you get stuck, you can always open a support ticket on and get help from our support engineers.


I can just add if it's a multi-homed server (Multiple interfaces) make sure you have the correct routes setup.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

699 views 5 10
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