Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Unable to install ElasticSearch Service

System Administrator
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 13, 2019

I'm running BitBucket on Windows.  I got the BitBucket server to work as a service by adding a JAVA_HOME variable pointed at the embedded Java but despite this and the path being in PATH when I run "service.bat install" in an elevated command prompt in the folder C:\Atlassian\Bitbucket\6.9.0\elasticsearch\bin I get this message:

could not find java; set JAVA_HOME or ensure java is in PATH

set tells me that the JAVA_HOME variable is there and in the path.

Event Viewer just says "Incorrect Function".

 

EDIT

The software is quite unhelpful and there appear to be no instructions or support.  Every upgrade fails with the same sort of problems.  I gave up on this Elasticsearch thing and focused on just achieving the upgrade.

To get it to work I had to:

stop the existing BitBucket service
run the installer for the new one
sc delete BITBUCKET
restart
move the jre folder from the old install to the new one
delete the old install folder
run CMD as administrator
cd C:\Atlassian\Bitbucket\6.10.0\bin
set jre_home=C:\Atlassian\Bitbucket\6.10.0\jre (Editing the set-jre-home.bat file has no effect)
service.bat install
start the service

 

This got me a working website.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events