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

Can't start bitbucker server because of JAVA_HOME

 

On a CentOS Release 7.7.1908 server

The server bitbucket had been running on had been moved and restarted and now when I try and start bitbucket back up it says 

The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Edit set-jre-home.sh and define JRE_HOME

I modified the location of JAVA_HOME to the correct one in /etc/profile and it shows it correctly now but it's still giving the same error. How can I fix the error 

1 answer

1 accepted

0 votes
Answer accepted

Hi Noah,

What path did you set JRE_HOME (this is different from JAVA_HOME) to in <BitbucketInstall>/bin/set-jre-home.sh?

Cheers,

Christian

Premier Support Engineer

Atlassian

I fixed it already, there was apparently a separate bitbucket user that I didn't know about since I didn't set it up. Switching to that user and setting JAVA_HOME in bashrc to the correct path fixed it.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,886 views 0 7
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