I was trying to test using the REST API, I got a response telling me I needed to complete a captcha. I logged out and tried to log in and saw this image:
f
Unfortunately the CAPTCHA isn't displaying:
I see the server is rturning a 500 for the captcha request
Error creating bean with name 'imageCaptchaServicePrototype' defined in class path resource [stash-context.xml]: Cannot create inner bean 'com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine#4ef54ec2' of type [com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine#4ef54ec2' defined in class path resource [stash-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine]: Constructor threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
I can't reset password, because:
I know this is an old thread, but it still hasn't been fixed. Anyone know a workaround other that to ask your administrator to reset it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If it can't mail out, then yes, you will need an admin to unlock. Or, you could google "reset bitbucket admin password" and that will get you in. Otherwise you will need to wait for your bitbucket admin to unlock/set password.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
I am sorry I did not get back to this thread earlier to say we were able to fix it following this KB guide: https://confluence.atlassian.com/bitbucketserverkb/captcha-image-doesn-t-render-779171210.html
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, and welcome to the community!
This sounds like a bug to me, something we should fix! To help us identify the cause, could you please provide these details:
To help you with regaining access to your Bitbucket instance, please have a look at this article: How to identify and reset all users blocked by CAPTCHA. In particular the cURL command mentioned is useful:
curl --user <user_name>:<password> -X DELETE http://baseurl:7990/rest/api/1.0/admin/users/captcha?name=<user_name>
Should you want to reset CAPTCHA through the database: please read the article thoroughly, and make sure you create a backup!
I hope this helps - I'm looking forward to hearing from you.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.