# Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-2424676764641674618/plugin-descriptor.properties

**URL:** <https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-nosuchfileexception-usr-share-elasticsearch-plugins-installing-2424676764641674618-plugin-descriptor-properties/165588>\
**Category:** Elasticsearch\
**Tags:** license\
**Created:** [January 24, 2019, 11:55am UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-nosuchfileexception-usr-share-elasticsearch-plugins-installing-2424676764641674618-plugin-descriptor-properties/165588 "2019-01-24T11:55:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![admindbypf](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@admindbypf](https://discuss.elastic.co/u/admindbypf)\
**Post date:** [January 24, 2019, 11:55am UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-nosuchfileexception-usr-share-elasticsearch-plugins-installing-2424676764641674618-plugin-descriptor-properties/165588/1 "2019-01-24T11:55:21Z")

</div>

When I install license-2.4.6.zip on RHEL 7, I get this error:

[root@sldbuetmora01 ~]# /usr/share/elasticsearch/bin/elasticsearch-plugin install file:/root/license-2.4.6.zip  
-\> Downloading file:/root/license-2.4.6.zip  
[=================================================] 100%  
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-1191312640426963828/plugin-descriptor.properties  
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)  
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)  
at java.nio.file.Files.newByteChannel(Files.java:361)  
at java.nio.file.Files.newByteChannel(Files.java:407)  
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)  
at java.nio.file.Files.newInputStream(Files.java:152)  
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:162)  
at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:713)  
at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:792)  
at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:775)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:231)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:216)  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)  
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)  
at org.elasticsearch.cli.Command.main(Command.java:90)  
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)

---

<div class="post-metadata">

**Author:** ![Luisa\_Natalia\_Rey\_Go](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@Luisa\_Natalia\_Rey\_Go](https://discuss.elastic.co/u/Luisa_Natalia_Rey_Go)\
**Post date:** [January 29, 2019, 3:47pm UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-nosuchfileexception-usr-share-elasticsearch-plugins-installing-2424676764641674618-plugin-descriptor-properties/165588/2 "2019-01-29T15:47:58Z")

</div>

I have the same issue, I tryed a lot of options given in another forum, but nothing works for me

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [January 30, 2019, 12:25am UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-nosuchfileexception-usr-share-elasticsearch-plugins-installing-2424676764641674618-plugin-descriptor-properties/165588/3 "2019-01-30T00:25:03Z")

</div>

I'm a bit confused about versions here:

> [@admindbypf](#):
>
> ```auto
> /usr/share/elasticsearch/bin/elasticsearch-plugin install file:/root/license-2.4.6.zip
> 
> ```

The use of `elasticsearch-plugin` implies that you're running a version of Elasticsearch 5.x or newer.  
But you're trying to install the 2.4.6 license plugin.

That's not going to work.  
What version of Elasticsearch are you running, and what are you trying to achieve by installing the (very old) license plugin?

---

<div class="post-metadata">

**Author:** ![Luisa\_Natalia\_Rey\_Go](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@Luisa\_Natalia\_Rey\_Go](https://discuss.elastic.co/u/Luisa_Natalia_Rey_Go)\
**Post date:** [January 30, 2019, 10:05am UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-nosuchfileexception-usr-share-elasticsearch-plugins-installing-2424676764641674618-plugin-descriptor-properties/165588/4 "2019-01-30T10:05:22Z")

</div>

Actually my issue is with a different plugin, I am trying to install

> **[StaySense/fast-cosine-similarity](https://github.com/StaySense/fast-cosine-similarity)**
>
> Fast cosine similarity (vector scoring) ElasticSearch 6.4+ Plugin - StaySense/fast-cosine-similarity

And I have installed ElasticSearch 6.4.3

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [January 30, 2019, 8:45pm UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-nosuchfileexception-usr-share-elasticsearch-plugins-installing-2424676764641674618-plugin-descriptor-properties/165588/5 "2019-01-30T20:45:43Z")

</div>

What is the error you get when trying to install that plugin? That is not the same as your output shows in your original post.

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [January 30, 2019, 8:46pm UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-nosuchfileexception-usr-share-elasticsearch-plugins-installing-2424676764641674618-plugin-descriptor-properties/165588/6 "2019-01-30T20:46:54Z")

</div>

However, the original error you saw is because you had a failed/aborted plugin installation. You need to delete that `/usr/share/elasticsearch/plugins/.installing-1191312640426963828` directory.

---

<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:** [February 27, 2019, 8:47pm UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-nosuchfileexception-usr-share-elasticsearch-plugins-installing-2424676764641674618-plugin-descriptor-properties/165588/7 "2019-02-27T20:47:01Z")

</div>

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