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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,461
Community Members
 
Community Events
176
Community Groups

Not able to clone or check in the project.

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

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

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

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

Atlassian Community Events