Error when trying to push commits from Sourcetree to Bitbucket
Asked by Jacqui Lewis:

I am trying to push change I have made in my repository to Bitbucket. I am using Sourcetree for this. I am using HTTPS.

I am getting a timeout error. "Failed to connect to bitbucket.org port 443: Timed out"

This worked fine when I did my initial commit and a few afterwards.

If I copy the URL into my browser I get a bitbucket 404 that says "That link has no power here."

Can someone please help point me in the right direction of what is going wrong?

Thanks :)


Answers:
author: Yogesh Mude
body: HI [@Jacqui Lewis](/t5/user/viewprofilepage/user-id/1206323)

Welcome to the community!

It should be the Local network firewall or DNS issue, please look at the below articles.

<https://bitbucket.org/site/master/issues/12184/failed-to-connect-to-bitbucketorg-port-443>

<https://bitbucket.org/site/master/issues/15411/failed-to-connect-to-bitbucketorg-port-443>

Hoe it helps.

comments: author: Jacqui Lewis
body: Thanks [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678) I have tried the recommended commands in the first issue and both the ping and the trace route are fine.


author: Yogesh Mude
body: HI [@Jacqui Lewis](/t5/user/viewprofilepage/user-id/1206323)
> bitbucket 404 that says "That link has no power here."

Can you please confirm if you are able to access the repo from bitbucket with appropriate permission.


author: Jacqui Lewis
body: Yes I created this repo.


author: Yogesh Mude
body: ok, using Sourcetree you are not able to push the change to remote repo correct?

Can you please try to clone the repo and do the changes to working dir and then using git try to push the changes to the remote repo.


author: Jacqui Lewis
body: Correct. I do not know the correct commands using git which is why I am using Sourcetree. At this stage the only working directory I have is the one that is no longer working.


author: Yogesh Mude
body: Follow the below steps to clone the repo using git.

1. Open the git bash on your system.

2. Create the directory in which you want to clone the repo and redirect the cursor into the dir

3. Configure your username and email.

\> git config --global user.name "XXXXX"

\> git config --global user.email "XXXX@abc.com"

4. Initialize the git

\> git init

5. Copy the repo URL from bitbucket and clone it to Working dir.

\> git clone \<Repo_URL\>

6. Change any file within the working dir and then push the changed to remote rep.

\> git status

\> git commit -a -m \<commit_massage\>

\> git push -u origin \<Branch_name\>


author: Jacqui Lewis
body: Thanks! How do I redirect the cursor into the dir?


author: Yogesh Mude
body: To create dir.

\> mkdir Test_repo

Go to the newly created dir and then clone the repo in this.

\> cd Test_repo


author: Jacqui Lewis
body: [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678) I got to step 5 and I got the same error

"it/': Failed to connect to bitbucket.org port 443: Timed out"


author: Yogesh Mude
body: ahh..then there will be a network/firewall/DNS issue please check with your IT/Network team.


author: Jacqui Lewis
body: is there anything specific they should can check?


author: Jacqui Lewis
body: Thank you [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678)

I added a proxy into Sourcetree rather than using the default windows proxy and this seems to have fixed the problem.

Thanks again for your help!


Tags: bitbucket-cloud