Can't get ElasticSearch bundled with Bitbucket 5.0.0 up and running

SSL configuration.

Elastic Search configured to listen to https://localhost:7992/

Bitbucket and ssh, both, work properly.

Anyone facing similar issue?

 

Log output:

2017-05-10 14:56:50,999 INFO  [I/O dispatcher 33]  c.a.b.s.s.t.DefaultElasticsearchConnectionTester Testing connection with Elasticsearch failed due to exception org.apache.http.ConnectionClosedException: Connection closed

2017-05-10 14:56:50,999 DEBUG [I/O dispatcher 33]  c.a.b.s.s.t.DefaultElasticsearchConnectionTester Detailed Exception: 

java.util.concurrent.CompletionException: org.apache.http.ConnectionClosedException: Connection closed

at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)

at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)

at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593)

at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)

at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)

at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)

at com.atlassian.elasticsearch.client.apache.httpclient.ApacheRequestExecutor$1.failed(ApacheRequestExecutor.java:155)

at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134)

at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.failed(AbstractClientExchangeHandler.java:414)

at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.endOfInput(HttpAsyncRequestExecutor.java:321)

at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:263)

at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)

at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)

at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:123)

at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:164)

at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:339)

at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:317)

at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278)

at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)

at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:590)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.http.ConnectionClosedException: Connection closed

... 12 common frames omitted

1 answer

1 accepted

This widget could not be displayed.
Jeff Thomas Atlassian Team Jun 02, 2017

Have you run through any of the troubleshooting steps available at Troubleshooting steps for Bitbucket Server Code Search?

Just based on the error you're seeing, it would imply that either Elasticsearch is not running or there is a firewall blocking the connection.

If you SSH into the server and run "curl http://localhost:7992", do you get a response?

Thanks! Very useful troubleshooting guide.

At the end, I had to 

- correct my password in plugin.search.elasticsearch.password, and 

- replace the https with http in plugin.search.elasticsearch.baseurl=http://localhost:7992/

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,216 views 8 11
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