# Elasticsearch-plugin consistently installs plugins EARLIER than my version

**URL:** <https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626>\
**Category:** Elasticsearch\
**Created:** [March 15, 2017, 1:00am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626 "2017-03-15T01:00:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Metelsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bob_metelsky/32/11387_2.png) [@Bob\_Metelsky](https://discuss.elastic.co/u/Bob_Metelsky)\
**Post date:** [March 15, 2017, 1:00am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626/1 "2017-03-15T01:00:09Z")

</div>

I have a ES 5.2 cluster  
I would think there would be some version checking so the application does NOT install incompatible versions.

Why does elasticsearch-plugin installer do this?

Also it seems the documentation to install a plugin from a zip file is hidden somewhere or scarce.  
Particullay Im trying to install mapper-attachments-5.2.2.zip

I think there is more to it than creating plugins directory and unzipping there....

In the ES\_HOME directory I create a plugins directory and unzip mapper-attachments-5.2.2.zip that creates a elasticsearch directory,Then i do ES\_HOME/elasticsearch-plugin install mapper-attachments and it again installs a pre 5,2 version

Seems the [online documentation](https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-attachments.html) has inconsistencies as well...

"Mapper Attachments Plugin edit  
Warning  
Deprecated in 5.0.0.  
**The mapper-attachments plugin has been replaced by the ingest-attachment plugin"**

Im running  
elasticsearch -version  
Version: 5.2.2, Build: f9d9b74/2017-02-24T17:26:45.835Z, JVM: 1.8.0\_121

I simply do  
elasticsearch-plugin install ingest-attachment

yet the installer is installing plugins before version 2.0!!

again a failure...

[2017-03-14T22:38:32,971][ERROR][o.e.b.Bootstrap] Exception  
java.lang.IllegalStateException: Could not load plugin descriptor for existing plugin [ingest-attachment]. Was the plugin built before 2.0?

yum update elasticsearch

Setting up Update Process  
elasticsearch-5.x | 1.3 kB  
elasticsearch-5.x/primary  
No Packages marked for Update

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 15, 2017, 3:30am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626/2 "2017-03-15T03:30:36Z")

</div>

I just ran `elasticsearch-5.2.2/bin/elasticsearch-plugin install ingest-attachment` on a freshly extracted download of ES and didn't have any issues.

The docs are not incorrect, that is the command you need to run.

---

<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 15, 2017, 11:22am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626/3 "2017-03-15T11:22:24Z")

</div>

BTW mapper attachments is deprecated.

---

<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 15, 2017, 11:23am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626/4 "2017-03-15T11:23:00Z")

</div>

May be you did not uninstall existing plugins?

---

<div class="post-metadata">

**Author:** ![Bob\_Metelsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bob_metelsky/32/11387_2.png) [@Bob\_Metelsky](https://discuss.elastic.co/u/Bob_Metelsky)\
**Post date:** [March 15, 2017, 8:14pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626/5 "2017-03-15T20:14:07Z")

</div>

Complete output below and attached log

1 My initial issue - is why does ES allow installing of incompatible plugins?

I did a rpm install using your repository  
this was installed last week  
no other ES was installed on this cluster  
using the repo gives me the ES\_HOME of  
/usr/share/elasticsearch/bin

[elasticsearch-5.x]  
name=Elasticsearch repository for 5.x packages  
baseurl=https://artifacts.elastic.co/packages/5.x/yum  
gpgcheck=1  
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch  
enabled=1  
autorefresh=1  
type=rpm-md

[root@server ~]# elasticsearch -version  
Version: 5.2.2, Build: f9d9b74/2017-02-24T17:26:45.835Z, JVM: 1.8.0\_121

[root@server ~]# ls -ltr /usr/share/elasticsearch/bin  
total 32  
-rwxr-xr-x 1 root root 2573 Feb 24 12:29 elasticsearch-translog  
-rwxr-xr-x 1 root root 223 Feb 24 12:29 elasticsearch-systemd-pre-exec  
-rwxr-xr-x 1 root root 2599 Feb 24 12:29 elasticsearch-plugin  
-rwxr-xr-x 1 root root 404 Feb 24 12:29 [elasticsearch.in.sh](http://elasticsearch.in.sh)  
-rwxr-xr-x 1 root root 7852 Feb 24 12:29 elasticsearch  
drwxr-xr-x 2 root root 4096 Mar 11 08:49 x-pack  
drwxr-xr-x 3 root root 4096 Mar 14 21:02 plugins

[root@server ~]# /usr/share/elasticsearch/bin/elasticsearch-plugin list  
x-pack

[root@server ~]# /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment  
-\> Downloading ingest-attachment from elastic  
[=================================================] 100%  
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  
@ WARNING: plugin requires additional permissions @  
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

- java.lang.RuntimePermission getClassLoader
- java.lang.reflect.ReflectPermission suppressAccessChecks
- java.security.SecurityPermission createAccessControlContext
- java.security.SecurityPermission insertProvider
- java.security.SecurityPermission putProviderProperty.BC  
See [http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html](http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html)  
for descriptions of what these permissions allow and the associated risks.  
Continue with installation? [y/N]y  
-\> Installed ingest-attachment

[root@server ~]# /usr/share/elasticsearch/bin/elasticsearch-plugin list  
ingest-attachment  
x-pack

[root@server ~]# service elasticsearch start  
[root@server ~]# service elasticsearch restart  
Stopping elasticsearch: [OK]  
Starting elasticsearch: [FAILED]

[cluster log showing error here](https://goo.gl/7BJzbG)

boils down to

[2017-03-15T15:52:28,651][ERROR][o.e.b.Bootstrap] Exception  
java.lang.IllegalStateException: **_Could not load plugin descriptor for existing plugin [ingest-attachment]. Was the plugin built before 2.0?_**  
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:295) ~[elasticsearch-5.2.2.jar:5.2.2]

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 15, 2017, 10:56pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626/6 "2017-03-15T22:56:07Z")

</div>

Can you post or gist/pastebin/etc the entire log please?

---

<div class="post-metadata">

**Author:** ![Bob\_Metelsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bob_metelsky/32/11387_2.png) [@Bob\_Metelsky](https://discuss.elastic.co/u/Bob_Metelsky)\
**Post date:** [March 16, 2017, 12:01am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626/7 "2017-03-16T00:01:05Z")

</div>

The entire log is here  
[https://sites.google.com/site/developtroubleshooting/es-plugin-error](https://sites.google.com/site/developtroubleshooting/es-plugin-error)

Im sure you don't expect me to have the log from day 1...

---

<div class="post-metadata">

**Author:** ![Bob\_Metelsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bob_metelsky/32/11387_2.png) [@Bob\_Metelsky](https://discuss.elastic.co/u/Bob_Metelsky)\
**Post date:** [March 16, 2017, 12:30am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626/8 "2017-03-16T00:30:07Z")

</div>

At the bottom of the page listed above - there is a link to my current log running 4 nodes

I removed the ingest-mapper so ES could start

you can get the[log here as well](https://sites.google.com/site/developtroubleshooting/es-plugin-error/ES-cluster.log?attredirects=0&d=1)

---

<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 13, 2017, 12:30am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-consistently-installs-plugins-earlier-than-my-version/78626/9 "2017-04-13T00:30:07Z")

</div>

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