# Error while installing Plugin

**URL:** https://discuss.elastic.co/t/error-while-installing-plugin/162164
**Category:** Elasticsearch
**Created:** [December 26, 2018, 4:32pm UTC](https://discuss.elastic.co/t/error-while-installing-plugin/162164 "2018-12-26T16:32:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![thefred](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@thefred](https://discuss.elastic.co/u/thefred)
#### Post date: [December 26, 2018, 4:32pm UTC](https://discuss.elastic.co/t/error-while-installing-plugin/162164/1 "2018-12-26T16:32:55Z")

</div>

Hello

I am currently trying to install a custom plugin in elasticsearch 6.5.4 and Java 11, windows server 2012 R2. Upon running install plugin command the following error occurs. Any thoughts? Below is my plugin-descriptor file.

> D:\apps\elasticsearch-6.5.4\bin\>elasticsearch-plugin install file:///D:/apps/elasticsearchScripts/elasticsearch.zip  
> -\> Downloading file:///D:/apps/elasticsearchScripts/elasticsearch.zip  
> [=================================================] 100%  
> Exception in thread "main" java.nio.file.NoSuchFileException: D:\apps\elasticsearch-6.5.4\plugins.installing-8588432668017145940\plugin-descriptor.properties  
> at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)  
> at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)  
> at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)  
> at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:231)  
> at java.base/java.nio.file.Files.newByteChannel(Files.java:370)  
> at java.base/java.nio.file.Files.newByteChannel(Files.java:421)  
> at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)  
> at java.base/java.nio.file.Files.newInputStream(Files.java:155)  
> 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)

plugin-descriptor file:

> ```
> description=ConversionsAndFiltersPlugin
> version=10.0
> name=ConversionsAndFilters
> classname=org.randomcompany.elasticsearch.nativescripts.plugin.ConversionsAndFiltersPlugin
> java.version=11
> elasticsearch.version=6.5.4
> extended.plugins=
> has.native.controller=false
> 
> ```

---

<div class="post-metadata">

### Author: ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)
#### Post date: [December 26, 2018, 4:38pm UTC](https://discuss.elastic.co/t/error-while-installing-plugin/162164/2 "2018-12-26T16:38:58Z")

</div>

Can you list files in your plugin .zip files?

---

<div class="post-metadata">

### Author: ![thefred](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@thefred](https://discuss.elastic.co/u/thefred)
#### Post date: [December 26, 2018, 4:48pm UTC](https://discuss.elastic.co/t/error-while-installing-plugin/162164/3 "2018-12-26T16:48:32Z")

</div>

Igor, thanks for making me revisit this...

The problem was that the .zip file contained folder plus the .jar and .properties files.

making a new zip only with the .jar and .properties file (as supposed to) resolved the problem....

we can close this one and i will try to leave behind how dumb I feel as of now 🙂

Thanks for the support, keep it up !

---

<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: [January 23, 2019, 4:48pm UTC](https://discuss.elastic.co/t/error-while-installing-plugin/162164/4 "2019-01-23T16:48:35Z")

</div>

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