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 vote

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
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 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

143 views 6 3
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