Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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/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

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
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

156 views 2 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you