I can see that elasticsearch isn't running; how do I fix this?

This question is in reference to Atlassian Documentation: Troubleshooting steps for Bitbucket Server Code Search

It's a great troubleshooting guide: now I know what's wrong. But it doesn't say anything about how to fix it! How do I install elasticsearch and get it running!?

1 answer

Does $BITBUCKET_INSTALL_DIR/bin/start-search.sh work for you?

e.g. for me that's ./bitbucket-4.11.1/bin/start-search.sh


I also add these two lines to the beginning of that script (as well as the "stop-search.sh" one), but one of these days I'm going to dig deeper and figure out a way that I can stop doing this (annoying to have to remember to edit the files every time I upgrade Bitbucket):


export JAVA_HOME=`readlink -f /etc/alternatives/java_sdk`
export BITBUCKET_HOME=/PATH/TO/bitbucket-home

Note:  this is on Centos7.   Technique for setting JAVA_HOME might be different in your environment.  And if you're on windows the files to edit / invoke would probably be "start-search.bat" and "stop-search.bat".


p.s.  I invite you to try my add-on:  Bit-Booster for Bitbucket Server

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,739 views 1 5
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