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
Community Members
Community Events
Community Groups

Save correct Bitbucket password in Mac Keychain

I keep getting the following message using Sourcetree with Bitbucket:

remote: Too many invalid password attempts. Log in at to restore access.

If I delete the entry in my MacBook's Keychain and manually type the password when prompted it works, but if always fails as soon as it tries to use the password from Keychain.

How can I fix this?

1 answer

0 votes
bgannin Atlassian Team Aug 31, 2018

Hi Daniel,

Sourcetree isn't directly writing credentials (password, token, etc.) to Keychain in that entry for a number of reasons. We've tried to identify the sources of mismatch which cause it to get out of sync and spuriously prompt for 3.0.

Your best bet is to close any open windows, quit Sourcetree, delete the appropriate Keychain entries, and then relaunch. Then edit your account to set the password. Alternatively you can delete and re-add the account without relaunching and it should work fine. 

Hope that helps,

Brian Ganninger
Senior Mac Developer, Sourcetree

When I go into Sourcetree -> Preferences -> Accounts -> Edit... I see the number of dots for my MacBook password, not for my Bitbucket password. They have different lengths, so it's easy to check. I can set the password manually there, but when I try to use it, it asks for my MacBook account password for the keychain, and sets that as my Bitbucket password. It won't let me continue until I've supplied my keychain password, i.e. the Bitbucket password is rejected.

Suggest an answer

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

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

62,182 views 127 27
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