Issue Summary
Elasticsearch fails to install when upgrading Bitbucket to latest version 7.1.0 on Windows Operating system
Steps to Reproduce
- Upgrade the existing Bitbucket instance to v7.1.0
- Elasticsearch service fails to upgrade to 7.5.2
Expected Results
With Bitbucket, Elasticsearch service is expected to be upgraded to latest version 7.5.2
Actual Results
Elasticsearch service fails to upgrade to 7.5.2
The below exception is thrown in the AtlassianBitbucketElasticsearch.log file:
[2020-03-30 10:58:49] [info] [ 7124] Service AtlassianBitbucketElasticsearch name Atlassian Bitbucket Elasticsearch 7.5.2 (AtlassianBitbucketElasticsearch) [2020-03-30 10:58:49] [error] [ 7124] The specified service already exists. [2020-03-30 10:58:49] [error] [ 7124] Failed installing 'AtlassianBitbucketElasticsearch' service [2020-03-30 10:58:49] [error] [ 7124] The specified service already exists. [2020-03-30 10:58:49] [error] [ 7124] Commons Daemon procrun failed with exit value: 8 (Failed to install service) [2020-03-30 10:58:49] [error] [ 7124] The specified service already exists.
Workaround
Currently, the workaround is to delete existing elasticsearch service and upgrade again.