# Problems Installing plugin on debian

**URL:** https://discuss.elastic.co/t/problems-installing-plugin-on-debian/86206
**Category:** Elasticsearch
**Created:** [May 18, 2017, 7:03am UTC](https://discuss.elastic.co/t/problems-installing-plugin-on-debian/86206 "2017-05-18T07:03:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sindrehi](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@sindrehi](https://discuss.elastic.co/u/sindrehi)
#### Post date: [May 18, 2017, 7:03am UTC](https://discuss.elastic.co/t/problems-installing-plugin-on-debian/86206/1 "2017-05-18T07:03:44Z")

</div>

Hi,

I've installed elasticsearch on a debian server. Now I try to install some plugins but have no luck.  
What I've tried is  
sudo bin/plugin --install ingest-attachment  
sudo bin/plugin --install elasticsearch/ingest-attachment  
sudo bin/plugin --install elasticsearch/ingest-attachment/latest  
sudo bin/plugin --install elasticsearch/ingest-attachment/5.4.0  
All of this commands only give me error that it cant install because it dont find install file

Then I tried this  
sudo bin/plugin --url [https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-5.4.0.zip](https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-5.4.0.zip)  
And nothing happens, but no error  
Tried this  
sudo bin/plugin --install [https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-5.4.0.zip](https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-5.4.0.zip)  
And now I get:  
Failed to install [https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-5.4.0.zip](https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-5.4.0.zip), reason: plugin directory /usr/share/elasticsearch/plugins already exists. To update the plugin, uninstall it first using -remove [https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-5.4.0.zip](https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-5.4.0.zip) command

Then i tried to download above mentioned zipfile with wget and then  
sudo bin/plugin --install file://ingest-attachment-5.4.0.zip  
But then I got error  
Failed to install [https://artifacts.elastic.co/downloads/elasticsearch-plugins/i](https://artifacts.elastic.co/downloads/elasticsearch-plugins/i) ngest-attachment/ingest-attachment-5.4.0.zip, reason: plugin directory /usr/shar e/elasticsearch/plugins already exists. To update the plugin, uninstall it first using -remove [https://artifacts.elastic.co/downloads/elasticsearch-plugins/inge](https://artifacts.elastic.co/downloads/elasticsearch-plugins/inge) st-attachment/ingest-attachment-5.4.0.zip command

Yes there is a plugin folder, but its empty. If I try to run  
sudo bin/plugin --list  
I got  
Installed plugins:  
- No plugin detected in /usr/share/elasticsearch/plugins

So if anyone can tell me how i install ingest-attachment plugin, because this was not as easy at it should be

Best Regards,  
Pål Sindre HIåsen

---

<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: [May 18, 2017, 7:43am UTC](https://discuss.elastic.co/t/problems-installing-plugin-on-debian/86206/2 "2017-05-18T07:43:39Z")

</div>

The right way is [https://www.elastic.co/guide/en/elasticsearch/plugins/current/ingest-attachment.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/ingest-attachment.html)

```auto
sudo bin/elasticsearch-plugin install ingest-attachment

```

---

<div class="post-metadata">

### Author: ![sindrehi](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@sindrehi](https://discuss.elastic.co/u/sindrehi)
#### Post date: [May 18, 2017, 8:01am UTC](https://discuss.elastic.co/t/problems-installing-plugin-on-debian/86206/3 "2017-05-18T08:01:03Z")

</div>

Hi,  
Thanks for your reply. Problem is that this command dont work  
sudo bin/elasticsearch-plugin install ingest-attachment  
sudo: bin/elasticsearch-plugin: command not found

I dont have elasticsearch-plugin thats where I started to check. And after some work figured out to use only sudo bin/plugin

Regards  
Sindre

---

<div class="post-metadata">

### Author: ![Xavy](https://avatars.discourse-cdn.com/v4/letter/x/e0b2c6/32.png) [@Xavy](https://discuss.elastic.co/u/Xavy)
#### Post date: [May 18, 2017, 8:14am UTC](https://discuss.elastic.co/t/problems-installing-plugin-on-debian/86206/4 "2017-05-18T08:14:59Z")

</div>

Hello:

It looks you're running an old version of ES here (probably the one hosted on Debian repos)

I would suggest you to add the Elastic repo:

deb [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) stable main  
and then upgrade.

Please refer to [https://www.elastic.co/guide/en/beats/libbeat/current/setup-repositories.html](https://www.elastic.co/guide/en/beats/libbeat/current/setup-repositories.html) regarding instructions to add ES repo.

---

<div class="post-metadata">

### Author: ![sindrehi](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@sindrehi](https://discuss.elastic.co/u/sindrehi)
#### Post date: [May 18, 2017, 8:38am UTC](https://discuss.elastic.co/t/problems-installing-plugin-on-debian/86206/5 "2017-05-18T08:38:54Z")

</div>

Thanks for your answer.

Yes I installed first time just from debian repos.  
I've deleted and installed it again, and now plugins are installed.

---

<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: [June 15, 2017, 8:39am UTC](https://discuss.elastic.co/t/problems-installing-plugin-on-debian/86206/6 "2017-06-15T08:39:22Z")

</div>

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