Stash Git error "fatal: remote error: CAPTCHA required"

72,618

Solution 1

The problem was a malformed URL: it should be https://[email protected]/scm/~username/project.git instead of stash@stash.

Solution 2

You might have a session to BitBucket open in a browser, that gives the impression that everything is fine. Simply logout and in again, when logging in you need to solve a CAPTCHA, after that you are good to go.

Solution 3

Another common issue with captcha warning seems to relate with password changes. Once your password is changed in the system you are authenticated with, both sourcetree and eclipse plug-in might have password conflict with the already logged in session on bitbucket, causing CAPTCHA authentication to activate.

Solution: Enter to your bitbucket session, logout and login again. If issue persist, then you might want to check the URL, since captcha activation would direct you to another direction and your user account with malfunctioning URL will raise authentication failures again and again.

Solution 4

This happened to me. I tried to remove sourcetree password file but didn't worked. I logout and login on bitbucket but didn't worked too. The thing that worked was to go to Panel Control on Windows and Credential Manager, I changed/removed all references to my git repo.

Solution 5

In case of stash on macOS, this has worked for me:

  1. Close SourceTree
  2. Open Keychain Access
  3. Search for "stash", and remove any entries
  4. Go to stash website, log-out and login again
  5. Open SourceTree and enter your password
Share:
72,618
Nathan Fig
Author by

Nathan Fig

Updated on September 01, 2021

Comments

  • Nathan Fig
    Nathan Fig over 2 years

    Attempting to pull from my Stash project, using the following commands:

    $ git remote add origin https://[email protected]/scm/~username/project.git
    $ git pull origin develop
    

    I'm prompted for my password, which I enter and then get the following error:

    Your Stash account has been marked as requiring a CAPTCHA to be solved before you may login again. This is typically caused by too many attempts to login with an incorrect password. The required CAPTCHA prevents your SCM client from accessing Stash until it is solved, even if you enter your password correctly. If you are currently logged in to Stash via a browser you may need to logout and then log back in in order to clear the CAPTCHA.

    Logging out and back in again does not help. How do I fix this?