BitBucket Search Eleasticsearch Windows service

Setup: Win 2008 Server including current updates, Java SE 1.8.0_91.

The 'AtlassianBitbucketElasticsearch' runs on a window server only if it was installed during installation of Bitbucket 4.7.1 with elasticserach.

If the service is removed by "<bitbucket-install-dir>\elasticksearch\bin\service.bat remove" and then installed again with "<bitbucket-install-dir>\elasticksearch\bin\service.bat remove" following the description on Installation yielded ran smoothly. However, the service will start and then fail imediately with the following error:

- <System>
  <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
  <EventID Qualifiers="49152">7024</EventID>
  <TimeCreated SystemTime="2016-06-30T08:56:55.664670700Z" />
  <Correlation />
  <Execution ProcessID="488" ThreadID="5672" />
  <Security />
- <EventData>
  <Data Name="param1">Atlassian Bitbucket Elasticsearch 2.3.1 (AtlassianBitbucketElasticsearch)</Data>
  <Data Name="param2">%%1</Data>

Result service name could not be adjusted. However the the manual installation of AtlassianBitbucket-service gives a stable running service.

Nevertheless, Bitbucket as well as elasticsearch work properly if started by "<bitbucket-install-dir>\bin\start-bitbucket.bat"

Any advices?

1 answer

In your Atlassian\ApplicationData\Bitbucket\logs\search folder there should be a stderr file for elastic search.

Does it also contain this same error that I'm seeing (jar hell on trying to read an existing jar file, that the .\atlbucket user has full access to)?




2016-07-19 17:53:40 Commons Daemon procrun stderr initialized
Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release
Exception in thread "main" les/Atlassian/Bitbucket/4.8.0/elasticsearch/modules/lang-expression/asm-5.0.4.jar, file:/J:/Program%20Files/Atlassian/Bitbucket/4.8.0/elasticsearch/modules/lang-expression/asm-commons-5.0.4.jar, file:/J:/Program%20Files/Atlassian/Bitbucket/4.8.0/elasticsearch/modules/lang-expression/lang-expression-2.3.1.jar, file:/J:/Program%20Files/Atlassian/Bitbucket/4.8.0/elasticsearch/modules/lang-expression/lucene-expressions-5.5.0.jar] due to jar hell
Likely root cause: access denied ("" "J:\Program Files\Atlassian\Bitbucket\4.8.0\elasticsearch\modules\lang-expression\antlr4-runtime-4.5.1-1.jar" "read")
        at Source)
        at Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkRead(Unknown Source)
        at<init>(Unknown Source)
        at<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at org.elasticsearch.bootstrap.JarHell.checkJarHell(
        at org.elasticsearch.plugins.PluginsService.loadBundles(
        at org.elasticsearch.plugins.PluginsService.<init>(
        at org.elasticsearch.node.Node.<init>(
        at org.elasticsearch.node.Node.<init>(
        at org.elasticsearch.bootstrap.Bootstrap.setup(
        at org.elasticsearch.bootstrap.Bootstrap.init(
        at org.elasticsearch.bootstrap.Elasticsearch.main(
Refer to the log for complete error details.
Excepting for the fact our installation paths differ.
I haven't found a solution myself yet, but I think this information might lead to more of a reason for the issue than the Windows event log message (which exists but was the same as yours and not very informative).

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

663 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot