Bitbucket repository started returning "remote: Too many invalid password attempts. Try logging in through the website." (403) since yesterday

GitBitbucketAtlassian Sourcetree

Git Problem Overview


Since yesterday, bitbucket repository started returning this on any request:

remote: Too many invalid password attempts. Try logging in through the website.  
fatal: unable to access 'https://[email protected]/xxxxxxxxxx/xxxxxxxxxxx.git/': The requested URL returned error: 403

This happens on both the server (trying to git pull) and client (SourceTree on mac).

The user employed on both sides is the same, I can login to bitbucket and see no problems. Both SourceTree and git on the server use different "App Password" generated in bitbucket. I am the only person using this account daily.

I created a new App Password and tried with it just to get the same error.

What can I do to solve the case?

> Update #1: Generating a new App Password does not work for both server and client. Re-adding a SourceTree account with Basic authentication does not help too. Bitbucket even does not allow to come to authentication, as it seems - the new App Passwords "Last Access" snows nothing. > > Update #2: The accepted answer is indeed a solution. This is quite strange, but resetting the password of the main bitbucket user account works. But the sequence is as follows: reset bitbucket user password; create a new app password for both server and client (SourceTree); for mac, remove the record for bitbucket in KeyChain Access; only try to pull or push from SourceTree after removing the record or the account is locked immediately!

Git Solutions


Solution 1 - Git

The reason for getting the above error is due to Atlassion account lock & not related with App passwords.

So I have reset my Atlassian account(as per Atlassian's servicedesk suggession ) using below url

https://id.atlassian.com/

So now git fetch is working fine.

If you forgot your current password you can reset password by below url

https://id.atlassian.com/login/resetpassword

Hope this help :)

Solution 2 - Git

Atlassian have just released a fix:

> Hi there, > > We just deployed the fix for the root issue causing this bug. If you > could please retry your actions, and let us know if you run in to any > further issues. > > We recommend that, you log out of Bitbucket Cloud and login once > again. Then please retry again. > > We apologize for any delays, or outages this issue may have caused > you, and your teams. Please feel free to let us know if you have any > questions. > > Thank you, > Pravin

Update 2017-03-30:

> Hi Everyone, > > For the past few days some users may have experienced 503 or 403 > errors related to authentication issues when using Git and Mercurial > over HTTPS on Bitbucket Cloud. > > We have just deployed a fix to the platform for this issue. If you > could please navigate to "id.atlassian.com" in your browser, and make > sure you log out of any active sessions. > > If you could then attempt to login to id.atlassian.com with your > email, and password - please make sure to NOT use the Google login > form, and instead use the basic email/password fields. You may be > asked to go through a captcha screen, or even reset your password if > necessary. > > Once you get logged in properly to id.atlassian.com, if you could > please try your GIT/Mercurial operations again, and let us know if you > are able to successfully authenticate. > > Please let us know if you encounter any issues, or have any questions. > > We would again like to thank you for your patience, and apologize for > any downtime these issues may have caused you or your team. > > Thank you, The Bitbucket Cloud Team

Solution 3 - Git

It seems that in my case the problem is OAuth authentication. If I switch to Basic authentication, everything works fine.

For SourceTree, in Tools - Options - Authentication, delete the BitBucket account and then click Add to add again the credentials but with one minor change: In Authentication combobox select Basic. Enter your bitbucket username in Username field and press refresh password. You'll be prompted to enter your account's password but if till now you used Google account to login, set a new password here https://id.atlassian.com/manage/change-password

Now trying to find out what's wrong with OAuth.

Update

Another fix that seemed to work was deleting the passwd file from C:\Users\[your-user]\AppData\Local\Atlassian\SourceTree. Now in SourceTree do a git fetch/pull/push and you'll be prompted to login. Enter your credentials and everything should work fine now.

Solution 4 - Git

Atlassian related. I went to bitbucket, logged out, logged back in and git started working. Did not need to change my password. Took less than a minute.

Solution 5 - Git

If you have Bitbucket open in your browser, sign out. After that, i was able to clone the repo i wanted with Sourcetree.

Solution 6 - Git

Just re-enter your current password it will work fine.

Settings->Accounts->Edit

just login to your Atlassian account it must be resolved.

Solution 7 - Git

I changed the password and it works fine.. :)

Solution 8 - Git

Delete the "passwd" file from,

C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree.

Then restart the SourceTree. Then fetch from the required repo. SourceTree will prompt a popup to enter the password of the repo. This worked for me.

Solution 9 - Git

I've just changed the bitbucket password and it worked like a charm!

Solution 10 - Git

This issue can be occurred while using multiple bitbucket accounts. For this case you can just go to "Repository settings" -> "Remotes" and specify your login in the remote path like this https://[email protected]/your-project/your-repo.git

Solution 11 - Git

The following helped me:

"For SourceTree, in Tools - Options - Authentication, delete the BitBucket account and then click Add to add again".

Solution 12 - Git

If you are using SourceTree and using oauth, i would suggest you go Tools > Options > Authentication and delete the saved passwords and your bitbucket account then add them back again. This worked for me. It will go off and refresh your token and add them back again.

Solution 13 - Git

Sourcetree Mac Developer stated in the link below that it is now fixed in 2.7.4 release, please update your Sourcetree in your Mac to this version.

https://community.atlassian.com/t5/Sourcetree-questions/How-to-solve-quot-Too-many-invalid-password-attempts-quot-error/qaq-p/609886#M21780

Solution 14 - Git

I set up an SSH key following this doc https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/ and it is working fine since then. Http could get quite problematic with bitbucket for some reason.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionsunsetjunksView Question on Stackoverflow
Solution 1 - GitKarthikeyanView Answer on Stackoverflow
Solution 2 - GityoitsroView Answer on Stackoverflow
Solution 3 - GitVladNView Answer on Stackoverflow
Solution 4 - GitViktor NikitenkoView Answer on Stackoverflow
Solution 5 - GitpassatgtView Answer on Stackoverflow
Solution 6 - GitSagarView Answer on Stackoverflow
Solution 7 - GitMesmerize86View Answer on Stackoverflow
Solution 8 - GitKogaView Answer on Stackoverflow
Solution 9 - GitAntonio GalloView Answer on Stackoverflow
Solution 10 - GitIgor LeonovichView Answer on Stackoverflow
Solution 11 - Gitdj_seregaView Answer on Stackoverflow
Solution 12 - GitMike HughesView Answer on Stackoverflow
Solution 13 - GitEgemen HamutçuView Answer on Stackoverflow
Solution 14 - GitViajanDeeView Answer on Stackoverflow