# Error in installing xpack plugin for elasticsearch

**URL:** <https://discuss.elastic.co/t/error-in-installing-xpack-plugin-for-elasticsearch/119194>\
**Category:** Elasticsearch\
**Created:** [February 9, 2018, 9:08am UTC](https://discuss.elastic.co/t/error-in-installing-xpack-plugin-for-elasticsearch/119194 "2018-02-09T09:08:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaurav\_Agarwal](https://discuss.elastic.co/u/Gaurav_Agarwal)\
**Post date:** [February 9, 2018, 9:08am UTC](https://discuss.elastic.co/t/error-in-installing-xpack-plugin-for-elasticsearch/119194/1 "2018-02-09T09:08:18Z")

</div>

C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1\bin\>elasticsearch-plugin install x-pack  
-\> Downloading x-pack from elastic  
[=================================================] 100%  
Exception in thread "main" java.lang.IllegalStateException: Could not load plugin descriptor for exi  
sting plugin [.installing-5449458442685265315]. Was the plugin built before 2.0?  
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:339)  
at org.elasticsearch.plugins.InstallPluginCommand.jarHellCheck(InstallPluginCommand.java:576  
)  
at org.elasticsearch.plugins.InstallPluginCommand.verify(InstallPluginCommand.java:558)  
at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:601)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:215)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:204)  
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:75)  
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:48)  
Suppressed: java.io.IOException: Could not remove the following files (in the order of attem  
pts):  
C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1\plugins.installing-4517633116304757261:  
java.nio.file.DirectoryNotEmptyException: C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1  
plugins.installing-4517633116304757261

```
            at org.apache.lucene.util.IOUtils.rm(IOUtils.java:329)
            at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:

```

1. 

```
       ... 8 more

```

Caused by: java.nio.file.NoSuchFileException: C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1  
.1\plugins.installing-5449458442685265315\plugin-descriptor.properties  
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)  
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)  
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)  
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)  
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:123)  
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:336)  
... 11 more  
java.io.IOException: Could not remove the following files (in the order of attempts):  
C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1\plugins.installing-4517633116304757261  
bcprov-jdk15on-1.58.jar: java.nio.file.AccessDeniedException: C:\Users\gagarwal3\Downloads\Elastic\E  
lasticsearch\6.1.1\plugins.installing-4517633116304757261\bcprov-jdk15on-1.58.jar  
C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1\plugins.installing-4517633116304757261:  
java.nio.file.DirectoryNotEmptyException: C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1  
plugins.installing-4517633116304757261

```
    at org.apache.lucene.util.IOUtils.rm(IOUtils.java:329)
    at org.elasticsearch.plugins.InstallPluginCommand.close(InstallPluginCommand.java:743)
    at org.apache.lucene.util.IOUtils.close(IOUtils.java:89)
    at org.elasticsearch.plugins.PluginCli.close(PluginCli.java:53)
    at org.elasticsearch.cli.Command.lambda$main$0(Command.java:70)
    at java.lang.Thread.run(Thread.java:748)

```

I m getting this error when I try to install the xpack plugin please let me know how to install the xpack plugin

---

<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:** [March 9, 2018, 9:16am UTC](https://discuss.elastic.co/t/error-in-installing-xpack-plugin-for-elasticsearch/119194/3 "2018-03-09T09:16:43Z")

</div>

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