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 https://support.atlassian.com 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 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...

649 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