Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Elasticsearch does not start when bitbucket version is udpated

Rohit Dalvi
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.
December 16, 2021

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

su stash /data/atlassian-bitbucket-7.17.3/bin/start-bitbucket.sh

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 start-bitbucket.sh --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:
https://go.atlassian.com/bbs-troubleshooting-installations

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

1 answer

0 votes
Rohit Dalvi
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.
January 20, 2022

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
TAGS
AUG Leaders

Atlassian Community Events