User fails to login Bitbucket server application post OS update on the database server

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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.

*Except Fisheye and Crucible

Summary

Admin user couldn't log in to Bitbucket application after OS update on the database server. The login fails with the error:

1 Authentication failed because the user does not exist, the account is inactive, or the provided credentials are incorrect. 

The issue may be seen for multiple users coming from either the Bitbucket internal directory or external LDAP directory.

Environment

  • Bitbucket Data Center: Any supported Bitbucket version.

  • Database:  PostgreSQL.

  • OS update on the database server that involves a glibc version upgrade >= 2.28. 

Diagnosis

  • Using the Bitbucket lockout recovery process, reset the password for the admin user account to fix the problem. The admin user account may not be found. When trying to open user profile, a 404 error is seen in Bitbucket server UI.

  • Navigating to users in Bitbucket server UI in recovery mode, their last authenticated time is not displayed. 

  • Create a temporary test admin user in recovery mode to log in to the Bitbucket UI. After creating a temporary admin user, the original "admin user" can successfully access Bitbucket. The last authenticated time for users is also displayed.

Cause

The potential root cause is the upgrade of theglibc version to >=2.28 which causes issues with the search in the database itself. More details can be found in PostgreSQL - glibc upgrade.

Solution

  1. Stop the Bitbucket Data Center cluster.

  2. Reindex the Bitbucket database schema: 

    1 REINDEX SCHEMA <SCHEMA_NAME>
  3. Start the Bitbucket Data Center cluster.

  4. If there's LDAP connector is configured, a full sync will happen after a restart - make sure this finishes successfully.

  5. Verify if the issue still persists.

Updated on March 18, 2025

Still need help?

The Atlassian Community is here for you.