Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Elasticsearch does not start when bitbucket version is udpated

I updated bitbucket DC from 6.10 to 7.17.3. When I  run  

su stash /data/atlassian-bitbucket-7.17.3/bin/

The bitbucket service is started but the elasticsearch is not starting,  I see below message during startup


Starting Atlassian Bitbucket as the current user

Starting bundled Elasticsearch
Hint: Run --no-search to skip starting Elasticsearch
could not find java in bundled jdk at /data/atlassian-bitbucket-7.17.3/elasticsearch/jdk/bin/jav
There was a problem starting bundled Elasticsearch

Starting Bitbucket webapp at http://localhost:7990
The Bitbucket webapp has been started.

If you cannot access Bitbucket within 3 minutes, or encounter other issues, check the troubleshooting guide at:

 I am wondering if I need to change or set java path again, I  am using 1.8.0_202

1 answer

The new version of Bitbucket comes with the updated version of Elasticsearch and  for that we had tell ES about the  java path. I set up the java path like below and it started working.

export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac)))))
source ~/.bashrc
export PATH=$PATH:$JAVA_HOME/bin


Suggest an answer

Log in or Sign up to answer

Atlassian Community Events