Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 220
Nathan Fig Avatar asked Jun 17 '15 23:06

Nathan Fig


People also ask

Where is CAPTCHA in bitbucket?

Go to the bitbucket server/account and log out. Log in and solve captcha. In sourcetree go to the menu Tools/Options and choose 'Authentication' Select your account - there could be several and then enter you password.

How do I unlock a bitbucket user?

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.

Is Stash a bitbucket?

Bitbucket Server (formerly known as Stash) is a combination Git server and web interface product written in Java and built with Apache Maven. It allows users to do basic Git operations (such as reviewing or merging code, similar to GitHub) while controlling read and write access to the code.


2 Answers

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.

like image 199
chjortlund Avatar answered Sep 24 '22 21:09

chjortlund


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.

like image 35
Ozan Aksoy Avatar answered Sep 25 '22 21:09

Ozan Aksoy