Test button in Elasticsearch for Bitbucket server results in the access denied

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.

Problem

The information that is in the Search section of the Admin cog Icon >> Server Settings page when sent after pressing the "Test" button results in the "Access denied" when using the Embedded Elasticsearch.

Cause

The password expected by Elasticsearch is out of sync with the one that Bitbucket Server is using to authenticate.

Resolution

We need to reset the password on Elasticsearch. Updating the credentials on the buckler.yml and restarting the Elasticsearch service should fix this issue.

  • Shutdown Elasticsearch and Bitbucket Server

    # service atlbitbucket stop
  • Edit the buckler.yml file. Back it up first

    # vi /var/atlassian/application-data/bitbucket/shared/search/buckler/buckler.yml
  • Right after the text "auth.basic.password:" remove the current default password and replace with any password of your choice.
  • Next, start up Bitbucket Server and ensure first that you're able to access http://localhost:7992 on the browser. You could also perform an initial test and entering the credentials on the pop-up dialog with the updated credentials to see if you're able to login.

    # service atlbitbucket start
  • If you're able to login, attempt to test with the same credentials from the Bitbucket Server Administration area

Last modified on Aug 29, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.