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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.