Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

One of the users unable to login into bitbucket Data center?

Venkat Jira Admin
Contributor
December 1, 2024

Hello,

We are currently using Bitbucket Data Center and have successfully integrated it with Active Directory (AD). While all users can access Bitbucket with their credentials, one user is encountering an issue. Despite entering the correct username and password, they are receiving an "invalid username or password" error. The AD team has confirmed that there are no issues with the user's AD account. Additionally, the necessary permissions have been granted to the user in Bitbucket. Could you kindly advise on how to resolve this issue?

Thank you in advance for your assistance.

1 answer

0 votes
Aman Shrivastava
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 8, 2024

Hi @Venkat Jira Admin 

If the user exists in Bitbucket and enters the correct password while logging in, we should examine the logs to identify the potential cause of the problem. You can activate the debug logs via the GUI and use a curl command to enable two additional debug loggers. After reproducing the issue, review the logs for the specific error.
I am providing the steps to enable and disable the necessary debug logs, but please note that such cases might require further investigation depending on the error. Therefore, I recommend raising a support case to review the issue.

Procedure to Enable/Disable Debug logs:

  1. From the UI go to Gear Icon > Support > Logging and Profiling and check Enable debug logging, Profiling and click the Save button.
  2. Enable the debug log for the crowd by the below command
    curl -u <adminuser> -v -X PUT -d "" -H "Content-Type: application/json" <Bitbucket_BASE_url>/rest/api/latest/logs/logger/com.atlassian.crowd/debug 
    
    curl -X PUT -u <ADMIN_USERNAME> <Bitbucket_BASE_url>/rest/api/latest/logs/logger/com.atlassian.plugins.authentication/debug
    
  3. Try to reproduce the issue.
  4. Disable debug logs from the GUI. Go to Gear Icon > Support > Logging and Profiling uncheck Enable debug logging, Profiling, and click the Save button.
  5. Disable the debug log for the crowd by the below command
    curl -u <adminuser> -v -X PUT -d "" -H "Content-Type: application/json" <bitbucket_url>/rest/api/latest/logs/logger/com.atlassian.crowd/info
    
    curl -X PUT -u <ADMIN_USERNAME> <Bitbucket_BASE_url>/rest/api/latest/logs/logger/com.atlassian.plugins.authentication/info
    
  6. Verify the logs to see the error. 

Regards,
Aman

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events