The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events