Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sourcetree failed to login to bitbucket

Hi, 

I have checked my authentification by going to tools>Authentification using password check and even did a OAuth check. The checked and approved status is set to my default bitbucket profile on source tree. Everytime I do a fetch on source tree it asks for a username and password and when inserting my password in anyway it says that it failed to login. 

Exact error message : 
Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://B-----------@bitbucket.org/B--------/m----------.git/'

I dont know what more to do.

Regards

1 answer

1 accepted

3 votes
Answer accepted

Managed to get help outside of this community help page. Nobody seems to be active here. 

Posting my solution in the hopes that it helps somebody else in the future that has the same issue. 

Problem : Something gets conflicted or corrupted in the saved passwords and authentification files. 

Solution : 
1. In sourcetree -> tools -> Options -> Authentifications. 
Clear everything, even not bitbucket related (Dont forget to write down your saved items to place back later)

2. Close sourcetree

3. C\Users\[OwnerName]\AppData\Local\Altassian\Sourcetree
Find a file called "passwd" and delete that. 

4. Start Sourcetree
Go to Authentification again and insert the OAuth of your bitbucket (Be sure to be logged into bitbucket on your browser before you click Authenticate. )

5. Do a fetch on the repo giving you pains. It should ask you for your password. Once you have entered your password be patient, the fetch will take longer than usual but should work without constantly saying that you dont have correct username and password. 

Hope this helps. 

@altassian : Get your shite together man. According to google searches this bug has been active since early 2015. Its December 2018 man. 



This worked for me! thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,378 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you