# FSCrawler2.6 : failed to create elasticsearch client, disabling crawler

**URL:** <https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701>\
**Category:** Elasticsearch\
**Created:** [April 29, 2021, 6:46pm UTC](https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701 "2021-04-29T18:46:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![joseph-l.amalraj](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@joseph-l.amalraj](https://discuss.elastic.co/u/joseph-l.amalraj)\
**Post date:** [April 29, 2021, 6:46pm UTC](https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701/1 "2021-04-29T18:46:04Z")

</div>

Hi,  
Can you please share your suggestions for this issue..

I am using FSCrawler v2.6 and my ELK v6.8.14.. when i tried to ingest pdf files, getting below errors..

FYI.. with the same settings.json and data, i was able to run in FSCrawler v2.4.

```auto
16:31:16,867 DEBUG [f.p.e.c.f.f.FsCrawlerUtil] Mapping [2/_settings.json] already exists
16:31:16,870 DEBUG [f.p.e.c.f.f.FsCrawlerUtil] Mapping [2/_settings_folder.json] already exists
16:31:16,871 DEBUG [f.p.e.c.f.f.FsCrawlerUtil] Mapping [5/_settings.json] already exists
16:31:16,871 DEBUG [f.p.e.c.f.f.FsCrawlerUtil] Mapping [5/_settings_folder.json] already exists
16:31:16,872 DEBUG [f.p.e.c.f.f.FsCrawlerUtil] Mapping [6/_settings.json] already exists
16:31:16,872 DEBUG [f.p.e.c.f.f.FsCrawlerUtil] Mapping [6/_settings_folder.json] already exists
16:31:16,875 DEBUG [f.p.e.c.f.c.FsCrawler] Starting job [processformstemplates]...
**16:31:17,270 WARN [f.p.e.c.f.c.ElasticsearchClientManager] failed to create elasticsearch client, disabling crawler...**
**16:31:17,270 FATAL [f.p.e.c.f.c.FsCrawler] Fatal error received while running the crawler: [null]**
**16:31:17,270 DEBUG [f.p.e.c.f.c.FsCrawler] error caught**
 **java.lang.NullPointerException: null**
        at fr.pilato.elasticsearch.crawler.fs.client.ElasticsearchClient.lambda$buildRestClient$0(ElasticsearchClient.java:333) ~[fscrawler-elasticsearch-client-2.6-SNAPSHOT.jar:?]
        at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_181]
        at fr.pilato.elasticsearch.crawler.fs.client.ElasticsearchClient.buildRestClient(ElasticsearchClient.java:322) ~[fscrawler-elasticsearch-client-2.6-SNAPSHOT.jar:?]
        at fr.pilato.elasticsearch.crawler.fs.client.ElasticsearchClientManager.start(ElasticsearchClientManager.java:91) ~[fscrawler-elasticsearch-client-2.6-SNAPSHOT.jar:?]
        at fr.pilato.elasticsearch.crawler.fs.cli.FsCrawler.main(FsCrawler.java:260) [fscrawler-cli-2.6-SNAPSHOT.jar:?]
16:31:17,273 DEBUG [f.p.e.c.f.FsCrawlerImpl] Closing FS crawler [processformstemplates]
16:31:17,274 DEBUG [f.p.e.c.f.c.ElasticsearchClientManager] Closing Elasticsearch client manager
16:31:17,274 DEBUG [f.p.e.c.f.FsCrawlerImpl] ES Client Manager stopped
16:31:17,274 INFO [f.p.e.c.f.FsCrawlerImpl] FS crawler [processformstemplates] stopped
16:31:17,275 DEBUG [f.p.e.c.f.FsCrawlerImpl] Closing FS crawler [processformstemplates]
16:31:17,275 DEBUG [f.p.e.c.f.c.ElasticsearchClientManager] Closing Elasticsearch client manager
16:31:17,275 DEBUG [f.p.e.c.f.FsCrawlerImpl] ES Client Manager stopped
16:31:17,275 INFO [f.p.e.c.f.FsCrawlerImpl] FS crawler [processformstemplates] stopped

```

And **my \_settings.json..**

```auto
$ cat _settings.json

```

```auto
{
  "name" : "processformstemplates",
  "fs" : {
    "url" : "/usr/share/fscrawler/data",
    "update_rate" : "15m",
    "excludes" : ["*/~*"],
    "json_support" : false,
    "filename_as_id" : false,
    "add_filesize" : true,
    "remove_deleted" : true,
    "add_as_inner_object" : false,
    "store_source" : false,
    "index_content" : true,
    "attributes_support" : false,
    "raw_metadata" : true,
    "xml_support" : false,
    "index_folders" : true,
    "lang_detect" : false,
    "continue_on_error" : false,
    "pdf_ocr" : true,
    "ocr" : {
      "language" : "eng"
    }
  },
  "elasticsearch" : {
    "nodes" : [ {
      "url" : "http://elasticsearch-dev.svc.cluster.local:9200"
    } ],
    "bulk_size" : 100,
    "flush_interval" : "5s",
    "byte_size" : "10mb"
  },
  "rest" : {
    "url" : "http://127.0.0.1:8080/fscrawler"
  }
}

```

Thanks,  
Joseph

---

<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:** [April 29, 2021, 7:11pm UTC](https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701/2 "2021-04-29T19:11:01Z")

</div>

You should upgrade to FSCrawler 2.7-SNAPSHOT.

(I'm working to release it soon but that's definitely the most stable version)

---

<div class="post-metadata">

**Author:** ![joseph-l.amalraj](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@joseph-l.amalraj](https://discuss.elastic.co/u/joseph-l.amalraj)\
**Post date:** [April 30, 2021, 1:57am UTC](https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701/3 "2021-04-30T01:57:18Z")

</div>

Thanks for your response.  
If we need go for FS Crawler 2.7, then we should change ELK version to 7.x, is my understanding right ?..

---

<div class="post-metadata">

**Author:** ![joseph-l.amalraj](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@joseph-l.amalraj](https://discuss.elastic.co/u/joseph-l.amalraj)\
**Post date:** [April 30, 2021, 2:00am UTC](https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701/4 "2021-04-30T02:00:23Z")

</div>

Please share your suggestions, if we have workaround for FSCrawler 2.6 to resolve the issue. Thanks.

---

<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:** [April 30, 2021, 2:09am UTC](https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701/5 "2021-04-30T02:09:41Z")

</div>

No. There's a version for es 6 clusters. See [Index of /repositories/snapshots/fr/pilato/elasticsearch/crawler/fscrawler-es6/2.7-SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/fr/pilato/elasticsearch/crawler/fscrawler-es6/2.7-SNAPSHOT/)

---

<div class="post-metadata">

**Author:** ![joseph-l.amalraj](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@joseph-l.amalraj](https://discuss.elastic.co/u/joseph-l.amalraj)\
**Post date:** [April 30, 2021, 2:13am UTC](https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701/6 "2021-04-30T02:13:39Z")

</div>

Hi David, are you saying " There's a version for es 6 clusters." for FSCrawler 2.7?.  
Please clarify.

---

<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:** [April 30, 2021, 2:16am UTC](https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701/7 "2021-04-30T02:16:06Z")

</div>

Yes. See [Download FSCrawler — FSCrawler 2.7-SNAPSHOT documentation](https://fscrawler.readthedocs.io/en/latest/installation.html)

Depending on your Elasticsearch cluster version, you can download FSCrawler 2.7 using the following links:

- [fscrawler-es7-2.7-SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/fr/pilato/elasticsearch/crawler/fscrawler-es7/2.7-SNAPSHOT/) for Elasticsearch V7.
- [fscrawler-es6-2.7-SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/fr/pilato/elasticsearch/crawler/fscrawler-es6/2.7-SNAPSHOT/) for Elasticsearch V6.

The filename ends with `.zip` .

---

<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:** [May 28, 2021, 2:16am UTC](https://discuss.elastic.co/t/fscrawler2-6-failed-to-create-elasticsearch-client-disabling-crawler/271701/8 "2021-05-28T02:16:41Z")

</div>

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