HowTo: Reset failed login count from Confluence database
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
You're seeing CAPTCHA on every Confluence login attempt (due to the number of failed login attempts) and do not have access to the admin UI to reset the failed login attempts.
環境
Confluence Server および Data Center
ソリューション
We strongly recommend you back up your database before you begin.
- Confluence をシャットダウンします。
- Clear all cookies from your browser and close all browsers.
Run the following query to see the current number of failed login attempts for the user name you need to reset (in this example the username is
admin
):SELECT TOTALFAILED, CURFAILED FROM LOGININFO WHERE username IN ( SELECT user_key FROM user_mapping WHERE lower_username = 'admin' );
Once you've confirmed that the user name has failed login attempts, run the following update:
UPDATE LOGININFO SET CURFAILED = 0 WHERE username IN ( SELECT user_key FROM user_mapping WHERE lower_username = 'admin' );
If you have multiple users to update, you can use the following query by adding each user to it:
UPDATE LOGININFO SET CURFAILED = 0 WHERE username IN ( SELECT user_key FROM user_mapping WHERE lower_username IN ('username1', 'username2'));
Start Confluence and attempt to log in again.