Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can the error be fixed. No changes made & similar problem solutions never worked Bitbucket5.10.1

nancy_d_matthews April 17, 2020

[XX@XXX bin]# ./start-bitbucket.sh
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

Startup has been aborted

1 answer

0 votes
Alexis Robert
Community Champion
April 17, 2020

Hi @nancy_d_matthews , 

 

the error message says to check the JRE_HOME setting in set-jre-home.sh file, can you have a look at it and make sure it's the correct value ? 

 

Let me know if this helps, 

 

--Alexis

nancy_d_matthews April 17, 2020

Yes!

This has been working and until yesterday as I try to start the server.

The PATH is set to the jre home inside the bitbucket folder.

JRE_HOME="/home/appadmin/atlassian/bitbucket/5.10.1/jre/bin"

 

And others like tomcat uses:

$JAVA_HOME =/app/appadmin/java1.8/jre1.8.0_231

Alexis Robert
Community Champion
April 17, 2020

Hi @nancy_d_matthews , 

 

did you change anything since yesterday ? From what I can see the JRE_HOME is correctly set but it might be because the JRE location has changed.

Also, can you let me know how you're starting Bitbucket ? Is it from the command line, or a init.d script or something else ? 

 

--Alexis

nancy_d_matthews April 17, 2020

Nothing has been changed.

I use ./start-bitbucket.sh from the command line on the bin directory for the start.

Alexis Robert
Community Champion
April 19, 2020

Can you check what is defined for JRE_HOME in the set-jre-home.sh file ? and also, what is the result of 

echo $JRE_HOME

This will help identify the issue.

 

Thanks, 

 

--Alexis

Like nancy_d_matthews likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events