Bitbucket 存储库从昨天开始返回 "remote: Too many invalid password attempts. Try logging in through the website." (403)

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

从昨天开始,bitbucket 存储库开始根据任何请求返回此信息:

remote: Too many invalid password attempts. Try logging in through the website.  
fatal: unable to access 'https://xxxxxxxxx@bitbucket.org/xxxxxxxxxx/xxxxxxxxxxx.git/': The requested URL returned error: 403

服务器(尝试 git 拉)和客户端(mac 上的 SourceTree)都会发生这种情况。

双方使用的用户相同,我可以登录bitbucket,没问题。 服务器上的 SourceTree 和 git 使用在 bitbucket 中生成的不同“应用程序密码”。 我是唯一一个每天使用这个账号的人。

我创建了一个新的应用程序密码并尝试使用它只是为了得到同样的错误。

我该怎么做才能破案?

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!

我更改了密码,它工作正常..:)

我刚刚更改了 bitbucket 密码,效果非常好!

看来我的问题是 OAuth 身份验证。如果我切换到基本身份验证,一切正常。

对于 SourceTree,在工具 - 选项 - 身份验证中,删除 BitBucket 帐户,然后单击添加以再次添加凭据,但有一个小的变化:在身份验证组合框 select 基本中。在用户名字段中输入您的 bitbucket 用户名,然后按刷新密码。系统会提示您输入帐户密码,但如果到目前为止您使用 Google 帐户登录,请在此处设置新密码 https://id.atlassian.com/manage/change-password

现在正试图找出 OAuth 的问题所在。

更新

另一个似乎有效的修复是从 C:\Users\[your-user]\AppData\Local\Atlassian\SourceTree 中删除 passwd 文件。现在在 SourceTree 中执行 git fetch/pull/push 并且系统会提示您登录。输入您的凭据,现在一切正常。

出现上述错误的原因是Atlassion account lock & 与App passwords.

无关

所以我使用下面的 url

重置了我的 Atlassian 帐户(根据 Atlassian 的服务台建议)

https://id.atlassian.com/

所以现在 git fetch 工作正常。

如果您忘记了当前密码,可以通过以下方式重置密码url

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

希望对您有所帮助:)

Atlassian 刚刚发布了一个修复程序:

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

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

Atlassian 相关。我去了 bitbucket,注销,重新登录,git 开始工作。不需要更改我的密码。不到一分钟。

使用多个 bitbucket 帐户时可能会发生此问题。对于这种情况,您可以转到 "Repository settings" -> "Remotes" 并在远程路径中指定您的登录名,例如 https://yourlogin@bitbucket.org/your-project/your-repo.git

以下帮助了我:

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

如果您使用 SourceTree 并且 使用 oauth,我建议您转到工具 > 选项 > 身份验证并删除 已保存的密码 and 你的 bitbucket 帐户,然后再将它们添加回来。这对我有用。它将熄灭并刷新您的令牌并再次添加它们。

如果您在浏览器中打开了 Bitbucket,请退出。在那之后,我能够使用 Sourcetree 克隆我想要的 repo。

只需re-enter您当前的密码即可。

Settings->Accounts->Edit

只需登录您的 Atlassian 帐户即可解决。

删除"passwd"文件

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

然后重启SourceTree。然后从所需的回购中获取。 SourceTree 将提示弹出窗口输入存储库的密码。这对我有用。

Sourcetree Mac 开发人员在下面的 link 中声明它现在已在 2.7.4 版本中修复,请将 Mac 中的 Sourcetree 更新到此版本。

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

我按照此文档 https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/ 设置了一个 SSH 密钥,此后它运行良好。由于某些原因,HTTP 在 bitbucket 中可能会出现问题。