marked as requiring a CAPTCH error

When using source tree I keep getting this error a few times a day. After I logout of Stash and log backin with a captha it starts working but I'm getting very tired of doing this mulitle times a day. Any fix would be awesome.

I should add I'm using OS X 10.8.5.

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin 
fatal: remote error: CAPTCHA required
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.

Visit Stash at for more details.
Completed with errors, see above

1 answer

1 vote

Hi Jared,

Could it be that you've changed your credentials and that something (perhaps a Bamboo/Jenkins/.. build?) is still using your old credentials? If you need to figure out what IP address the authentication failures are being triggered from, you could have a look at the audit logs in STASH_HOME/log/audit. The atlassian-stash-audit.log file should contain entries like:

0:0:0:0:0:0:0:1 | AuthenticationFailureEvent | - | 1392111196025 | username | {"authentication-method":"form","error":"Invalid username or password."} | 633x670x0 | 1xzqso0

where the first component is the IP (in my case localhost in IPv6) of the calller.

Hope this helps!


I bet your correct, I started having the problem after I had to update my password. Unfornetly I don't have access to the server that Stash is on so I dont think I can get to the logs. I will have to work with our help desk, thanks.

I am getting the same error on an old version of Stash after having logged in as myself on a coworker's computer. We've cleared the cookies on his browser and closed it, and I've done the same on mine. I can log out and log in to our Stash interface with no problem. I used an invalid password enough times to get a CAPTCHA, but still when I try to use git to pull from Stash I get this error. I had my manager set my number of failed logins before CAPTCHA to 10, and that's the only thing that's "solved" the problem, but is there a definitive way to clear some flag out of the system to keep this error from reappearing if the failed login setting is put back to the default 5? And "upgrade" is not the answer I'm looking for. Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,110 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you