Elasticsearch access denied

After upgrading our stash instance to the latest version of Bitbucket server we received the new code search functionality and everyone in the team was happy! We then migrated our database from MySQL to MS SQL and moved our server from Centos to windows server 2012 (in that order).  Search is now not working (sad) and when clicking on test in the search settings we are getting "Access to Elasticsearch was denied. Check username and password.".

We've checked the obvious things like firewall etc.. any ideas?

4 answers

I can't help you unfortunately, but I'd suggest opening an issue at support.atlassian.com. They might be able to look at logs form your instance and see if anything pops up. Good luck!

Thanks, opened a support ticket on Friday smile

I have the same problem. I found some config parameters in elasticsearch\config-template\buckler\buckler.yml but if I use the credentials configured there, access isn't granted.

Did you found solution ?

0 votes
a I'm New Here Oct 27, 2017

I came across this and later found an answer. 

My port 7992 was stuck to an old process. I checked by typing the following command in (Linux) while bitbucket was turned off:

netstat -tlp

In the right column, it will list the process ID (PID). It needs to get stopped/killed. DON'T DO WHILE BITBUCKET IS RUNNING.

kill -9 [PID]

ex. kill -9 3792

Now start up bitbucket again and your good to go.

Enjoy,
Ben

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

649 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot