git Bitbucket 存储库开始返回“远程:无效密码尝试次数过多。尝试通过网站登录。” (403) 从昨天开始

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43027919/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:54:19  来源:igfitidea点击:

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

gitbitbucketatlassian-sourcetree

提问by sunsetjunks

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

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

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).

这发生在服务器(尝试 git pull)和客户端(Mac 上的 SourceTree)上。

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.

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

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!

更新 #1:生成新的应用程序密码不适用于服务器和客户端。使用基本身份验证重新添加 SourceTree 帐户也无济于事。Bitbucket 甚至不允许进行身份验证,就像看起来一样 - 新的应用程序密码“上次访问”没有任何作用。

更新 #2:接受的答案确实是一个解决方案。这很奇怪,但重置主 bitbucket 用户帐户的密码是有效的。但顺序如下:重置bitbucket用户密码;为服务器和客户端创建一个新的应用程序密码(SourceTree);对于mac,删除KeyChain Access中bitbucket的记录;删除记录后只能尝试从SourceTree拉或推,否则帐户立即被锁定!

采纳答案by Karthikeyan

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

出现上述错误的原因是Atlassion 帐户锁定,与App 密码无关。

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

所以我使用以下网址重置了我的 Atlassian 帐户(根据 Atlassian 的 servicedesk 建议)

https://id.atlassian.com/

https://id.atlassian.com/

So now git fetchis working fine.

所以现在git fetch工作正常。

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

如果您忘记了当前密码,您可以通过以下网址重置密码

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

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

Hope this help :)

希望这有帮助:)

回答by yoitsro

Atlassian have just released a fix:

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

你好呀,

我们刚刚针对导致此错误的根本问题部署了修复程序。如果可以,请重试您的操作,如果您遇到任何其他问题,请告诉我们。

我们建议您退出Bitbucket Cloud并重新登录。然后请重试。

对于此问题可能给您和您的团队造成的任何延迟或中断,我们深表歉意。如果您有任何问题,请随时告诉我们。

谢谢你,普拉文

Update 2017-03-30:

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

嗨,大家好,

在过去的几天里,一些用户在 Bitbucket Cloud 上通过 HTTPS 使用 Git 和 Mercurial 时可能遇到与身份验证问题相关的 503 或 403 错误。

我们刚刚针对此问题在平台上部署了一个修复程序。如果可以,请在浏览器中导航到“id.atlassian.com”,并确保您退出所有活动会话。

如果您随后可以尝试使用您的电子邮件和密码登录 id.atlassian.com - 请确保不要使用 Google 登录表单,而是使用基本的电子邮件/密码字段。您可能会被要求通过验证码屏幕,甚至在必要时重置您的密码。

一旦您正确登录到 id.atlassian.com,如果可以,请再次尝试您的 GIT/Mercurial 操作,并让我们知道您是否能够成功进行身份验证。

如果您遇到任何问题或有任何疑问,请告诉我们。

我们再次感谢您的耐心等待,并对这些问题可能给您或您的团队造成的任何停机时间表示歉意。

谢谢,Bitbucket 云团队

回答by Viktor Nikitenko

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.

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

回答by VladN

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

在我的情况下,问题似乎是 OAuth 身份验证。如果我切换到基本身份验证,一切正常。

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

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

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

现在试图找出 OAuth 有什么问题。

Update

更新

Another fix that seemed to work was deleting the passwdfile 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.

另一个似乎有效的修复方法是passwdC:\Users\[your-user]\AppData\Local\Atlassian\SourceTree. 现在在 SourceTree 中执行 git fetch/pull/push 并提示您登录。输入您的凭据,现在一切正常。

回答by passatgt

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

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

回答by Sagar

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

只需重新输入您当前的密码即可正常工作。

Settings->Accounts->Edit

Settings->Accounts->Edit

just login to your Atlassian account it must be resolved.

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

回答by Koga

Delete the "passwd" file from,

删除“passwd”文件,

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

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.

然后重新启动 SourceTree。然后从所需的 repo 中获取。SourceTree 将提示一个弹出窗口,输入 repo 的密码。这对我有用。

回答by Egemen Hamut?u

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.

Sourcetree Mac 开发人员在下面的链接中表示它现在已在 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://community.atlassian.com/t5/Sourcetree-questions/How-to-solve-quot-Too-many-invalid-password-attempts-quot-error/qaq-p/609886#M21780

回答by Igor Leonovich

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

使用多个 bitbucket 帐户时可能会发生此问题。对于这种情况,您只需转到“存储库设置”->“远程”并在远程路径中指定您的登录名,如下所示https://[email protected]/your-project/your-repo.git

回答by dj_serega

The following helped me:

以下帮助了我:

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

“对于SourceTree,在工具-选项-身份验证中,删除BitBucket帐户,然后单击添加再次添加”。