# Bitbucket-elastic connection problem

**URL:** https://discuss.elastic.co/t/bitbucket-elastic-connection-problem/195935
**Category:** Elasticsearch
**Created:** [August 20, 2019, 1:00pm UTC](https://discuss.elastic.co/t/bitbucket-elastic-connection-problem/195935 "2019-08-20T13:00:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![konstantin-fch](https://avatars.discourse-cdn.com/v4/letter/k/2acd7d/32.png) [@konstantin-fch](https://discuss.elastic.co/u/konstantin-fch)
#### Post date: [August 20, 2019, 1:00pm UTC](https://discuss.elastic.co/t/bitbucket-elastic-connection-problem/195935/1 "2019-08-20T13:00:25Z")

</div>

Hello, i have a next problem.

Bitbucket instance during test displays:  
INFO [I/O dispatcher 4] c.a.b.s.s.t.DefaultElasticsearchConnectionTester Connected to Elasticsearch version 6.5.3

In browser when i go to the elastic\_test\_link(localhost:9200/\_cat/health?v) it display:  
epoch timestamp cluster status...  
1566305545 12:52:25 elasticsearch green...

I see Elastic - running and in status 'green'.. but during search in bitbucket i have next in logs bitbucket:  
ERROR [http-nio-7990-exec-3] admin @1S1WF1Yx955x515x0 eraers "POST /rest/search/latest/search HTTP/1.1" c.a.b.i.s.search.rest.SearchResource Unexpected response code from Elasticsearch: 404

Maybe you can tell me where I should look .. To understand what is happening to them.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 20, 2019, 2:01pm UTC](https://discuss.elastic.co/t/bitbucket-elastic-connection-problem/195935/2 "2019-08-20T14:01:55Z")

</div>

the URL endpoint you are trying to poll is not from Elasticsearch (the one starting with `rest`), I think your best bet would be to ping the vendor/author of that piece of code.

---

<div class="post-metadata">

### Author: ![konstantin-fch](https://avatars.discourse-cdn.com/v4/letter/k/2acd7d/32.png) [@konstantin-fch](https://discuss.elastic.co/u/konstantin-fch)
#### Post date: [August 27, 2019, 5:02am UTC](https://discuss.elastic.co/t/bitbucket-elastic-connection-problem/195935/3 "2019-08-27T05:02:29Z")

</div>

As it revealed, im was no attentive and trying install dont supported version Elasticsearch. All works good from box, when i install correct version...

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 24, 2019, 5:02am UTC](https://discuss.elastic.co/t/bitbucket-elastic-connection-problem/195935/4 "2019-09-24T05:02:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
