The remote authentication server is not available - Bitbucket

IT_RD August 19, 2021

Hi,

When trying to sign in as Admin user in bitbucket server, I get the below error:

" The remote authentication server is not available. Please try again later." 

Any help is much appreciated.

Thanks

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2021

This means your server is configured to use a user directory (often external) which is not responding when it asks about the admin who is trying to log in.

In most cases, this will be an external user directory (LDAP or Crowd for example), so you would need to fix that remote server, but there is also an internal directory ("embedded" crowd) running as part of bitbucket.  If that has failed, you'll need to read the bitbucket logs to see why.

IT_RD August 22, 2021

I checked the log file and found the below error:

The following URL does not specify a valid Crowd User Management REST service: http://10.1.1.67:8080/rest/usermanagement/1/authentication?username=admin

Looks like the URL is for Jira, but I haven't got any Jira setup done on that server yet.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2021

That suggests that you've told the server to "use Jira for the user directory", but if that Jira is offline, of course, it can't use it.

IT_RD August 22, 2021

Hi Nic,

Just noticed this in the log file:

'JIRA User Directory (262145)' is not functional during authentication of 'admin'

Any idea?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2021

Yes, that's saying your Jira is not running, so it can't connect to the user server in it.

IT_RD August 23, 2021

I understand that. Any way this issue can be fixed?

I need to login as admin in bitbucket to create new users. Any work arounds or fix?

IT_RD August 24, 2021

Hi,

Any help is appreciated. I tried all troubleshooting and still no luck.

Is there a way I can reset the whole bit bucket with out losing any data/code and create the users from the beginning. Its only a few users, but I should be able to create new users.

Thanks

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 25, 2021

I don't think it's a work-around or fix for anything here, but you've got two options.

Either start running the Jira system that you've configured for Bitbucket to use for the users, or re-configure Bitbucket to use another one.

As you can't log in as an admin, it's likely that you'll need to recover admin access, with which you will be able to set up a new directory and remove the broken Jira one.  See https://confluence.atlassian.com/bitbucketserver/lockout-recovery-process-776640158.html

IT_RD August 25, 2021

Thanks for the reply.

Jira was not installed and I installed Jira now. To reconfigure Bitbucket it appears I need the admin login. Is there a way I can re-configure the user directory on bitbucket without admin login?

I tried the lockout recovery process and when I start the bitbucket after the changes by running start-bitbucket.bat as mentioned in the lock out process, the command line gets stuck. Also the Elastisearch service wont start too.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 25, 2021

Installing a new Jira is not the answer.  Your Bitbucket was set up to look at a Jira for its users, you need to tell it to use that Jira, and make that Jira available to it, not install things in different places.

I think you should step back, and review all your accounts access.

IT_RD August 25, 2021

We have 4 users including admin. 3 users are normal users (developers) who can still login and use bitbucket. Just the admin user cannot login. I tried password recovery but I get below email:

Bitbucket has received a password reset request for 'admin' today at 9:32 AM. 

Bitbucket is unable to reset the password for your account because it is managed by a read-only external directory. Please contact your administrator to change your password.

 If you did not request a new password, you don't need to take any further action and can safely disregard this email. 

- Atlassian Bitbucket Server

If the user access is linked to Jira, how come when Jira was not available all other users could use bit bucket and not admin? Very strange.

IT_RD August 25, 2021

Can I reinstall or upgrade the existing bitbucket and will that resolve the problem?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events