# Ingest attachment plugin installed, nodes restarted still get the No handler for type \[attachment\] error

**URL:** <https://discuss.elastic.co/t/ingest-attachment-plugin-installed-nodes-restarted-still-get-the-no-handler-for-type-attachment-error/201361>\
**Category:** Elasticsearch\
**Created:** [September 27, 2019, 8:19am UTC](https://discuss.elastic.co/t/ingest-attachment-plugin-installed-nodes-restarted-still-get-the-no-handler-for-type-attachment-error/201361 "2019-09-27T08:19:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stevens\_Laurent](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevens_laurent/32/42789_2.png) [@Stevens\_Laurent](https://discuss.elastic.co/u/Stevens_Laurent)\
**Post date:** [September 27, 2019, 8:19am UTC](https://discuss.elastic.co/t/ingest-attachment-plugin-installed-nodes-restarted-still-get-the-no-handler-for-type-attachment-error/201361/1 "2019-09-27T08:19:43Z")

</div>

Hi,

I'm trying to store attachments to my ES cluster but I'm stuck at the mapping creation step. Here is my actual situation :

The ingest-attachment plugin is installed on each node :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/7/c7a08a448bef637616c3c0c3b45a56424832702c.jpeg)

And each nodes has been restarted successfully.

But when i try to create a mapping containing an attachment i still get the error :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/b/dbb892a1dbdf95d363d3b2b0a448743850b6fba4.png)

ES is in 7.2v

Any idea ?

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:** [September 27, 2019, 8:35am UTC](https://discuss.elastic.co/t/ingest-attachment-plugin-installed-nodes-restarted-still-get-the-no-handler-for-type-attachment-error/201361/2 "2019-09-27T08:35:32Z")

</div>

Bonjour 🙂

That's not how ingest attachment plugin works.  
You are trying to behave like the mapper attachments plugin used to work. This plugin has been removed.

Have a look at the documentation to see how ingest attachment works: [https://www.elastic.co/guide/en/elasticsearch/plugins/7.3/ingest-attachment.html](https://www.elastic.co/guide/en/elasticsearch/plugins/7.3/ingest-attachment.html)

---

<div class="post-metadata">

**Author:** ![Stevens\_Laurent](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevens_laurent/32/42789_2.png) [@Stevens\_Laurent](https://discuss.elastic.co/u/Stevens_Laurent)\
**Post date:** [September 27, 2019, 9:02am UTC](https://discuss.elastic.co/t/ingest-attachment-plugin-installed-nodes-restarted-still-get-the-no-handler-for-type-attachment-error/201361/3 "2019-09-27T09:02:12Z")

</div>

Thanks, for the fast answer 🙂

If I'm understanding well, you don't store the attachment in the document but you have to create a pipeline for the attachment and a mapping for other fields. Then you link the attachment to the document you put in the index with the pipeline, right ?

---

<div class="post-metadata">

**Author:** ![Stevens\_Laurent](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevens_laurent/32/42789_2.png) [@Stevens\_Laurent](https://discuss.elastic.co/u/Stevens_Laurent)\
**Post date:** [September 27, 2019, 9:21am UTC](https://discuss.elastic.co/t/ingest-attachment-plugin-installed-nodes-restarted-still-get-the-no-handler-for-type-attachment-error/201361/4 "2019-09-27T09:21:17Z")

</div>

It's a succes,

To help other, Here is the process :

- You create your document mapping
- You create the ingest pipeline for attachments [(like here)](https://www.elastic.co/guide/en/elasticsearch/plugins/7.3/using-ingest-attachment.html)
- Then when you create a document you attach the document by adding the "data" field in the list of fields that takes your document (created in step 1) and add the ?pipeline=attachment in the URL.

Hope it helps 🙂

---

<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:** [October 25, 2019, 9:21am UTC](https://discuss.elastic.co/t/ingest-attachment-plugin-installed-nodes-restarted-still-get-the-no-handler-for-type-attachment-error/201361/5 "2019-10-25T09:21:21Z")

</div>

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