git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
fatal: remote error: CAPTCHA required
Your Bitbucket account has been locked. To unlock it and log in again you must
solve a CAPTCHA. This is typically caused by too many attempts to login with an
incorrect password. The account lock prevents your SCM client from accessing
Bitbucket and its mirrors until it is solved, even if you enter your password
correctly.
If you are currently logged in to Bitbucket via a browser you may need to
logout and then log back in in order to solve the CAPTCHA.
Visit Bitbucket at https://bitbucket.pearson.com for more details.
The above mentioned content is the error message, please help me fix this
Clear contents of below files placed in your source tree folder.
<your user path>\AppData\Local\Atlassian\SourceTree\userhost
<your user path>\AppData\Local\Atlassian\SourceTree\passwd
Then restart SourceTree.
Cloning the repos with SSH instead of HTTPS solved my problem. I have my ssh key added to my account.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the command
git config --global credential.helper osxkeychain
however when Sourcetree prompted for password, I typed my password but it still gives the error. I can login to Bitbucket website just fine with same password, never shows me a CAPTCHA - I have never seen the CAPTCHA, this is the error in Sourcetree:
`
fatal: remote error: CAPTCHA required
Your Bitbucket account has been locked. To unlock it and log in again you must
solve a CAPTCHA. This is typically caused by too many attempts to login with an
incorrect password. The account lock prevents your SCM client from accessing
Bitbucket and its mirrors until it is solved, even if you enter your password
correctly.
If you are currently logged in to Bitbucket via a browser you may need to
logout and then log back in in order to solve the CAPTCHA.
Visit Bitbucket at https://git.forge.lmig.com for more details.
`
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just gave up working with this piece of software. Its too frustrating. There are better solutions available
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I resolved this issue by opening the server on in-private window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No Update no switch, close SourceTree, open console (Terminal) and try this one:
git config --global credential.helper osxkeychain
After this start SourceTree again, type your Password for SourceTree and push again ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For the ones who did this but didn't work:
1. Go to Tools - Options - Authentication, delete all accounts there.
2. Do a pull request.
3. Enter your account name and password in the pop-up window.
Done! 2 new valid accounts will be created automatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This solved the problem for me, looks like
Read on for the sequence in more detail that led up to the issue, and detail steps to resolve it:
On branch PK_develop
Your branch is up to date with 'origin/PK_develop'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
...
no changes added to commit (use "git add" and/or "git commit -a")
And the solution:
$ git pull
remote: Counting objects: 24, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 24 (delta 12), reused 0 (delta 0)
Unpacking objects: 100% (24/24), done.
From https://git.[mycompany].com:8443/scm/[myProject]/projects
ce7892e..946e8f5 [myColleague]_develop -> origin/[myColleague]_develop
4125e64..e6277aa develop -> origin/develop
d209efe..551ffac featureABC -> origin/featureABC
Already up to date.
[myLANID]@[myMachine] MINGW64 /c/GITCode/[myProject]/Develop/projects (PK_develop)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Super frustrating and just to help anyone else struggling with this, this is what worked for me on Windows 10:
I hope it works like it did for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've the same issue, because i let the system remember my psw, and after that i change my psw for windows. So it always try to login with my old password and request for CAPTCHA.
Solution:
1. clean your default psw and clean all the history
2. enter the your new password manually for all the related places: wiki,bitbucket
Then you will not be bothered again by CAPTCHA.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Works like a charm!! Thank you Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For Mac users, you can follow this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For me, the error solved with this answer, https://stackoverflow.com/a/75938167/13573168
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you have to log out of bitbucket and log back in to see the captcha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still doesn't work for me. I also get the problem from using git purely from the command line.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! works for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Better solution is to choose another system for subversion
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I was getting the same error messages too. I found out that my OSX Keychain was storing my source tree password as just '1'. After updating it to the actual password it works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Clear contents of below files placed in your source tree folder.
{your user path}\AppData\Local\Atlassian\SourceTree\userhost
{your user path}\AppData\Local\Atlassian\SourceTree\passwd
Then restart SourceTree.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I use Ubuntu 18.04, git GUI is GitKraken v6 and company uses proxy. The issue is the same, what most described with SourceTree. Any suggestion above did not work for me.
The CAPTCHA problem started after changing domain password.
With browser i will logged in automatically with domain credentials if i go to web interface. Also i git commands work in terminal and Intellij git plugin works fine. CAPTCHA issue appears only with GitKraken.
UPDATE:
Seem's that AD pwd change does not match somehow with Bitbucket. For me was the workaround to clone repo over ssh and everything works fine.
If i clone over https, then i still have this issue. For SourceTree seems the issue similar, but keywords for solution in google is "How to update HTTP(S) credentials in sourcetree" or "how do i update the password for git linux"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the command:
git config --global credential.helper osxkeychain
however when Sourcetree prompted for password, I typed my password but it still gives the error. I can login to Bitbucket website just fine with same password, never shows me a CAPTCHA - I have never seen the CAPTCHA, this is the error in Sourcetree:
`
fatal: remote error: CAPTCHA required
Your Bitbucket account has been locked. To unlock it and log in again you must
solve a CAPTCHA. This is typically caused by too many attempts to login with an
incorrect password. The account lock prevents your SCM client from accessing
Bitbucket and its mirrors until it is solved, even if you enter your password
correctly.
If you are currently logged in to Bitbucket via a browser you may need to
logout and then log back in in order to solve the CAPTCHA.
Visit Bitbucket at https://git.forge.lmig.com for more details.
`
When I go to that link and log out / login I never see the CAPTCHA at all. I have been trying for days to get my access back, tried deleting old keychains and rebooting. I have logged out and back in dozens of times, I have run out of ideas. Any help? Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Works for me too. Thx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Click on the link in your error message and enter your captcha there, as soon as you have updated the captcha it should run. As far as I can remember it was like that, hope could help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had this issue on my MacBook and figured out how to solve it. Somewhere in the OS where SourceTree was supposed to keep my bitbucket password, it was actually keeping the hash to the password. So any time I would push or pull or do anything that requires a password, SourceTree would try the wrong password until it prompted a "CAPCHA required". I just had to find where in the OS it was keeping that hash and change it to my password.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
I had to solve this problem several times already, where I eventually managed to solve it everytime in a slightly different manner, since the instructions above do not seem to fully solve it for me either.
It also just happend to me again and what I did this time was the following:
Note, that we use CROWD as our primary user directory and there is a synchronization between the two.
1. BITBUCKET: Clear the CAPCHA field for the locked out user.
2. Windows Credential manager: edit the password (probably its still correct here since it did not change).
2. CROWD: remove the "require password change [=true] field" and "invalid password attempts [=4]" field for that user in CROWD (I'm not sure if removing that second field is also relevant, but after spending several times several hours per user on this problem I'm kind done with it).
3. BITBUCKET: "Synchronize now" with the CROWD directory.
4. GIT/SourceTree: try to "fetch" from the repo again.
This is actually the first time that my connection issues were instantly resolved.
Hope it helps you and others too!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.