git push timeout

Chris Boothman March 3, 2017

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

1 vote
Michael Heemskerk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 3, 2017

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.

 

0 votes
Niclas Sandstroem
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2017

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
TAGS
AUG Leaders

Atlassian Community Events