Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Not able to clone or check in the project.

Sibsankar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2022

I have faced issues with permissions on BitBucket Server and using them from Visual Studio. We are able to login to the BitBucket but in Visual Studio and we are not able to get to and clone public repositories. Git failed with a fatal error. Authentication failed for (path to repository).

Please look into this on top priority.

1 answer

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2022

Hi @Sibsankar and welcome to the community.

I would like to ask a few questions so we can better help you:

1. You mention "BitBucket Server", but your post has the tag 'bitbucket-cloud'.

Can you please confirm whether these repos are hosted in Bitbucket Cloud (https://bitbucket.org/) or Bitbucket Server (self-hosted instance)?

2. Are you using HTTPS or SSH to clone these repos?

3. Are you able to clone these repos from a command-line application?

Kind regards,
Theodora

Sibsankar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 13, 2022
Hi Theodora,
Please find the below answer:
1. You mention "BitBucket Server", but your post has the tag 'bitbucket-cloud'.
Can you please confirm whether these repos are hosted in Bitbucket Cloud (https://bitbucket.org/) or Bitbucket Server (self-hosted instance)?
--Repos are hosted in Bitbucket Cloud.
2. Are you using HTTPS or SSH to clone these repos?
--HTTPS
3. Are you able to clone these repos from a command-line application?
--No.Using Visual Studio
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 13, 2022

Hi Sibsankar,

Thank you for the info.

When you enter the HTTPS URL of the repo in Visual Studio, does it include your Bitbucket username, e.g. like this:

https://Bitbucket-Username@bitbucket.org/Workspace/Repo.git

or does it not include the username, e.g. like this:

https://bitbucket.org/Workspace/Repo.git

Git usually attempts to clone without authentication first, which should succeed if the repo is public, but I'm not sure if Visual Studio behaves in a different way. Are you using the Git plugin in Visual Studio or a different plugin?

 


Another thing: we deprecated account passwords for Git over HTTPS. It's possible that Visual Studio or your credential manager has the account's password stored and is trying to use that.

I would suggest clearing all saved credentials and generating an app password (which should be used instead of a password when cloning/pulling/pushing via HTTPS), see here for more info:


Are you able to clone these repos from a command-line application?
--No.Using Visual Studio

Finally, I would suggest trying to clone using the same HTTPS URL from a command-line application and let me know what the output is.
This is to narrow down whether the issue is specific to Visual Studio or not.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events