# I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR\_STRATEGY to NO\_OCR or configure yourOCR parser correctly

**URL:** <https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512>\
**Category:** Elasticsearch\
**Created:** [March 12, 2022, 7:03am UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512 "2022-03-12T07:03:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morphus1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/morphus1/32/98593_2.png) [@Morphus1](https://discuss.elastic.co/u/Morphus1)\
**Post date:** [March 12, 2022, 7:03am UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/1 "2022-03-12T07:03:33Z")

</div>

Hi Everyone,

I'm trying to use OCR when indexing but not getting any results.

I've tried using tesseract for images and Tika for the pdfs but not a single one will get indexed with "content".

The error message is:

```auto
09:42:43,441 INFO [f.p.e.c.f.t.TikaInstance] OCR is enabled. This might slowdown the process.
09:42:44,195 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\2A32-WHB-001.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
09:42:45,413 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0023 - Red Marked.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
09:42:45,587 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0031 - Red Marked.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
09:42:45,657 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0037.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
09:42:45,715 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0039.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
09:42:45,775 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0043.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
09:42:45,797 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\Exception list - HP STEAM LINE - .pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
09:42:45,838 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\MD-512-TE-2015.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly

```

And my setup file looks like:

```auto
---
name: "ocr_testing"
fs:
  url: "D:\\OCRTESTING"
  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: false
  xml_support: false
  index_folders: true
  lang_detect: false
  continue_on_error: false
  ocr:
    language: "eng"
    enabled: true
    pdf_strategy: "ocr_and_text"
    path: "D:/tesseract/"
    data_path: "D:/tesseract/tessdata"
    output_type: "txt"
  follow_symlinks: false
elasticsearch:
  nodes:
  - url: "http://127.0.0.1:9200"
  bulk_size: 100
  flush_interval: "5s"
  byte_size: "10mb"
  ssl_verification: true

```

I've installed the ingest attachment.

Everything else is standard "out of the box".

I'm currently trying to scrounge up more types of scanned docs to test with as this is my primary use case.

I will also mention that Adobe has no issues with OCR on any of the files tested so far but when saved still show with nothing in the "content".

I do realize the docs say "\_source\_content" but that doesn't show up either.

Any insight would be greatly appreciated.

Chris

---

<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:** [March 12, 2022, 8:06am UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/2 "2022-03-12T08:06:00Z")

</div>

Hey Chris.

Not related to your question but ingest attachment plugin is not needed when you are using FSCrawler.

I think that you might need to change:

```
path: "D:/tesseract/"
data_path: "D:/tesseract/tessdata"

```

To:

```
path: "D:\\tesseract"
data_path: "D:\\tesseract\\tessdata"

```

Could you try?

Also run fscrawler with `--debug` so I can see more information.

---

<div class="post-metadata">

**Author:** ![Morphus1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/morphus1/32/98593_2.png) [@Morphus1](https://discuss.elastic.co/u/Morphus1)\
**Post date:** [March 12, 2022, 9:16am UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/3 "2022-03-12T09:16:15Z")

</div>

Hi David, to the rescue again... I appreciate it.

```auto
11:54:52,219 INFO [f.p.e.c.f.FsCrawlerImpl] Starting FS crawler
11:54:52,219 INFO [f.p.e.c.f.FsCrawlerImpl] FS crawler started in watch mode. It will run unless you stop it with CTRL+C.
11:54:52,815 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:52,836 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:52,839 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:52,840 INFO [f.p.e.c.f.c.v.ElasticsearchClientV7] Elasticsearch Client for version 7.x connected to a node running version 7.17.1
11:54:53,009 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:53,013 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:53,015 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:53,016 INFO [f.p.e.c.f.c.v.ElasticsearchClientV7] Elasticsearch Client for version 7.x connected to a node running version 7.17.1
11:54:53,019 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:53,330 WARN [o.e.c.RestClient] request [PUT http://127.0.0.1:9200/ocr_testing?master_timeout=30s&timeout=30s] returned 2 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Camel case format name dateOptionalTime is deprecated and will be removed in a future version. Use snake case name date_optional_time instead."],[299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:53,338 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/_cluster/health/ocr_testing?master_timeout=30s&level=cluster&timeout=30s&wait_for_status=yellow] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:53,531 WARN [o.e.c.RestClient] request [PUT http://127.0.0.1:9200/ocr_testing_folder?master_timeout=30s&timeout=30s] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:53,536 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/_cluster/health/ocr_testing_folder?master_timeout=30s&level=cluster&timeout=30s&wait_for_status=yellow] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:53,541 INFO [f.p.e.c.f.FsParserAbstract] FS crawler started for [ocr_testing] for [D:\OCRTESTING] every [1m]
11:54:53,543 WARN [o.e.c.RestClient] request [GET http://127.0.0.1:9200/] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:53,668 INFO [f.p.e.c.f.t.TikaInstance] OCR is enabled. This might slowdown the process.
11:54:54,365 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\2A32-WHB-001.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
11:54:55,525 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0023 - Red Marked.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
11:54:55,695 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0031 - Red Marked.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
11:54:55,770 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0037.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
11:54:55,824 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0039.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
11:54:55,879 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\616318-P79810-0043.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
11:54:55,893 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\Exception list - HP STEAM LINE - .pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
11:54:55,999 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\MD-512-TE-2015.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
11:54:56,034 WARN [f.p.e.c.f.t.TikaDocParser] Failed to extract [100000] characters of text for [D:\OCRTESTING\Office zoom in.pdf]: Unable to extract PDF content -> Unable to end a page -> I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR_STRATEGY to NO_OCR or configure yourOCR parser correctly
11:54:56,074 WARN [o.e.c.RestClient] request [POST http://127.0.0.1:9200/ocr_testing/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=true&expand_wildcards=open&allow_no_indices=true&ignore_throttled=false&search_type=query_then_fetch&batched_reduce_size=512] returned 2 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."],[299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."]
11:54:56,089 WARN [o.e.c.RestClient] request [POST http://127.0.0.1:9200/ocr_testing_folder/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=true&expand_wildcards=open&allow_no_indices=true&ignore_throttled=false&search_type=query_then_fetch&batched_reduce_size=512] returned 2 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."],[299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."]
11:54:57,994 WARN [o.e.c.RestClient] request [POST http://127.0.0.1:9200/_bulk?timeout=1m] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:54:58,040 WARN [o.e.c.RestClient] request [POST http://127.0.0.1:9200/_bulk?timeout=1m] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."]
11:55:56,131 WARN [o.e.c.RestClient] request [POST http://127.0.0.1:9200/ocr_testing/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=true&expand_wildcards=open&allow_no_indices=true&ignore_throttled=false&search_type=query_then_fetch&batched_reduce_size=512] returned 2 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."],[299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."]
11:55:56,145 WARN [o.e.c.RestClient] request [POST http://127.0.0.1:9200/ocr_testing_folder/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=true&expand_wildcards=open&allow_no_indices=true&ignore_throttled=false&search_type=query_then_fetch&batched_reduce_size=512] returned 2 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."],[299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."]
11:56:56,177 WARN [o.e.c.RestClient] request [POST http://127.0.0.1:9200/ocr_testing/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=true&expand_wildcards=open&allow_no_indices=true&ignore_throttled=false&search_type=query_then_fetch&batched_reduce_size=512] returned 2 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."],[299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."]
11:56:56,187 WARN [o.e.c.RestClient] request [POST http://127.0.0.1:9200/ocr_testing_folder/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=true&expand_wildcards=open&allow_no_indices=true&ignore_throttled=false&search_type=query_then_fetch&batched_reduce_size=512] returned 2 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."],[299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."]

```

\_settings.yml

```auto
---
name: "ocr_testing"
fs:
  url: "D:\\OCRTESTING"
  update_rate: "1m"
  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: false
  xml_support: false
  index_folders: true
  lang_detect: false
  continue_on_error: false
  ocr:
    language: "eng"
    enabled: true
    pdf_strategy: "ocr_and_text"
    path: "D:\\tesseract"
    data_path: "D:\\tesseract\\tessdata"
    output_type: "txt"
  follow_symlinks: false
elasticsearch:
  nodes:
  - url: "http://127.0.0.1:9200"
  bulk_size: 100
  flush_interval: "5s"
  byte_size: "10mb"
  ssl_verification: true

```

There doesn't seem to be any extra information, `.\bin\fscrawler ocr_testing --debug`

I can't find any log file either: `config/log4j2.xml`

\_status.json is also empty, same for the other indices not sure if that's an issue.

```auto
{
  "name" : "ocr_testing",
  "lastrun" : "2022-03-12T12:05:54.4408395",
  "indexed" : 0,
  "deleted" : 0
}

```

I threw a png in there to kick it off but it wouldn't work so deleted the index and remade it again using fscrawler.

I've tried restarting elastic also, could it be something else unrelated to this like a PC setting or something? Something installed or not installed? Environment settings? java versions, python versions?

---

<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:** [March 12, 2022, 9:39am UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/4 "2022-03-12T09:39:34Z")

</div>

Which FSCrawler version are you using?  
Could you share your document you are trying to index?

---

<div class="post-metadata">

**Author:** ![Morphus1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/morphus1/32/98593_2.png) [@Morphus1](https://discuss.elastic.co/u/Morphus1)\
**Post date:** [March 12, 2022, 10:08am UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/5 "2022-03-12T10:08:48Z")

</div>

Hi David,

Elasticsearch 7.17.1  
Kibana 7.17.1  
fscrawler es7-2.9

Sure, privately no problem.

Regards,

---

<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:** [March 12, 2022, 12:06pm UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/6 "2022-03-12T12:06:27Z")

</div>

Ok great. Yes please, DM me.

About the debug/trace issue, I think I solved it in the latest 2.10-SNAPSHOT.

For now, you can define a user setting `FS_JAVA_OPTS` set to `-DLOG_LEVEL=debug`.

---

<div class="post-metadata">

**Author:** ![Morphus1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/morphus1/32/98593_2.png) [@Morphus1](https://discuss.elastic.co/u/Morphus1)\
**Post date:** [March 12, 2022, 12:41pm UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/7 "2022-03-12T12:41:48Z")

</div>

> [@I regret that I couldn't find an OCR parser to handle image/ocr-png.Please set the OCR\_STRATEGY to NO\_OCR or configure yourOCR parser correctly](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/6):
>
> Ok great. Yes please, DM me. About the debug/trace issue, I think I solved it in the latest 2.10-SNAPSHOT. For now, you can define a user setting FS\_JAVA\_OPTS set to -DLOG\_LEVEL=debug.

Hi David, couldn't attach the PDF's so I've taken the liberty of sending them to you via

```auto
mailto:david@pilato.fr

```

Hope that's ok.

Regards,

Chris

---

<div class="post-metadata">

**Author:** ![Morphus1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/morphus1/32/98593_2.png) [@Morphus1](https://discuss.elastic.co/u/Morphus1)\
**Post date:** [March 13, 2022, 2:45am UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/8 "2022-03-13T02:45:39Z")

</div>

Hi David,

je suis désolé,

Everything is working now.

Reboot this morning and added [Harvard Dataset](https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/DJHVHB)

It's even working on the old files. The only messages coming through in PS are the security warnings.

Appreciate you, 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:** [March 13, 2022, 3:18am UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/9 "2022-03-13T03:18:59Z")

</div>

Great news!

---

<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:** [April 10, 2022, 3:19am UTC](https://discuss.elastic.co/t/i-regret-that-i-couldnt-find-an-ocr-parser-to-handle-image-ocr-png-please-set-the-ocr-strategy-to-no-ocr-or-configure-yourocr-parser-correctly/299512/10 "2022-04-10T03:19:34Z")

</div>

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