FATAL Error when performing a 'Fetch' operation from Repo
Asked by martin.blocher:

Hello Atlassian Support,

Unfortunately, I'm having a problem with one repository which prevents me from doing anything with it. When trying to 'Fetch' from the repository I get the following error:

![delete_me.PNG](/t5/image/serverpage/image-id/316931i74BC49B78677B5A2/image-size/large?v=v2&px=999 "delete_me.PNG")

A few details:

* I have contacted the IT Team of my company which checked my credentials and assessed that everything is fine with them;
* My colleagues can work with the repo with no problem;
* I'm able to work with all other repos (which are set up in the same manner) except this one;
* Sometimes instead of getting that error I get one that requires me SSH authentication, this is inconsistent as our team is currently only using HTTPS authentication, and my colleagues have no problem;
* I've also successfully refreshed my authentication and tried to 'Fetch' once again, but the behavior is the same.

Please have a look at this when you can and come back to me, as you can imagine this limits my workflow quite a bit.

Many thanks for your attention.

Martin Blocher


Answers:
author: Patrik S
body: Hello [@martin.blocher](/t5/user/viewprofilepage/user-id/4907374) and thank you for reaching out to the Community!

It seems like you are using Sourcetree as a GUI, and I suspect it may be playing a role in this issue. In order to rule out Sourcetree and check if everything is correct with your network/credentials, I'd like to ask for you to try cloning the repository directly from the terminal (or [Git bash if you are using Windows](https://gitforwindows.org/)).

The clone command using HTTPS would be:

```
git clone https://{username}:{app_password}@bitbucket.org/{workspace}/{repository}.git
```

where:

* **username** : your bitbucket account username (not email address). You can find your account's username by navigating to your [personal bitbucket settings](https://bitbucket.org/account/settings/).
* **app password** : a user-level token used to authenticate git over HTTPS. If you haven't already, you can [create a new app password.](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/)

If the clone in the terminal (or Git Bash) completes successfully, the issue is likely with your Sourcetree configuration, so I would suggest trying to reinstall Sourcetree.

However, if the issue also happens locally in your terminal, we kindly ask you to share the log output of the clone command so we can help identify what else could be leading to the error.

Hope that helps! Should you have any questions, feel free to ask.

Thank you, [@martin.blocher](/t5/user/viewprofilepage/user-id/4907374) !

Patrik S

comments: author: martin.blocher
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) thanks you for your quick answer.

I tried your suggestion and was able to quickly clone the repo through GiT Bash.

This points us towards a problem with Sourcetree. Reinstalling it was actually my first attempt in fixing the issue, I did it several times and the behavior is exactly the same, I always get that FATAL error. What's also strange is that Sourcetree is working fine with other repos, only this repo and another show the same FATAL ERROR.

Do you have any suggestions? I would like to keep continuing using this GUI if possible....

Thanks.

Martin


author: Patrik S
body: Hello [@martin.blocher](/t5/user/viewprofilepage/user-id/4907374) ,

thank you for executing the test.

As we have confirmed the issue is with Sourcetree itself, I would suggest posting a question on the Sourcetree section here in the Community :

* <https://community.atlassian.com/t5/Sourcetree/ct-p/sourcetree>

You'll also find other Sourcetree-related questions in that section of the community that may report similar errors/issues you are facing, so you can try the solutions that worked for other users.

Thank you, [@martin.blocher](/t5/user/viewprofilepage/user-id/4907374) !

Patrik S


Tags: bitbucket-cloud

cloud

sourcetree