# Failed to create elasticsearch client

**URL:** https://discuss.elastic.co/t/failed-to-create-elasticsearch-client/256243
**Category:** Elasticsearch
**Tags:** docker
**Created:** [November 21, 2020, 7:25pm UTC](https://discuss.elastic.co/t/failed-to-create-elasticsearch-client/256243 "2020-11-21T19:25:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Deviad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deviad/32/79460_2.png) [@Deviad](https://discuss.elastic.co/u/Deviad)
#### Post date: [November 21, 2020, 7:25pm UTC](https://discuss.elastic.co/t/failed-to-create-elasticsearch-client/256243/1 "2020-11-21T19:25:57Z")

</div>

Hello everyone,  
I pasted all the files in here:

> <https://gist.github.com/Deviad/486513dc0ab5f82f6ea1ba06d3dc9d6b>
>
> There are more than three files. show original

I am running elasticsearch in a container and fscrawler throws:  
19:06:59.272 [main] FATAL fr.pilato.elasticsearch.crawler.fs.cli.FsCrawlerCli - We can not start Elasticsearch Client. Exiting.  
java.net.ConnectException: Connection refused

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/e/9ee3c75ef78960d9989660c5e9ec34b500497792.png)

Thank you in advance for your help.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 15, 2020, 10:45am UTC](https://discuss.elastic.co/t/failed-to-create-elasticsearch-client/256243/2 "2020-12-15T10:45:50Z")

</div>

Is your elasticsearch node running?

Could you share elasticsearch logs?

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

---

<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: [January 12, 2021, 10:45am UTC](https://discuss.elastic.co/t/failed-to-create-elasticsearch-client/256243/3 "2021-01-12T10:45:56Z")

</div>

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