# Cant seem to install plugin with elasticsearch

**URL:** https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086
**Category:** Elasticsearch
**Created:** [August 20, 2021, 2:30pm UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086 "2021-08-20T14:30:44Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![cctk](https://avatars.discourse-cdn.com/v4/letter/c/73ab20/32.png) [@cctk](https://discuss.elastic.co/u/cctk)
#### Post date: [August 20, 2021, 2:30pm UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086/1 "2021-08-20T14:30:44Z")

</div>

HI ,

I am having issues with` Elasticsearch-plugin` command or maybe elasticsearch in general. I have tried countless ways and can't seem to find out the issue.

when I install the plugin `./elasticsearch-plugin install repository-s3` using the plugin manager the connection hangs and doesn't finish.

I also made sure http and https was open...still no results.

I also used the offline download using the file and I get this error:

```auto
-> Downloading file:/usr/share/elasticsearch/plugins/repository-s3-7-2.zip
[=================================================] 100%   
-> Failed installing file:/usr/share/elasticsearch/plugins/repository-s3-7-2.zip
-> Rolling back file:/usr/share/elasticsearch/plugins/repository-s3-7-2.zip
-> Rolled back file:/usr/share/elasticsearch/plugins/repository-s3-7-2.zip
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-14653170667895787521/plugin-descriptor.properties
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:375)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:426)
	at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
	at java.base/java.nio.file.Files.newInputStream(Files.java:160)
	at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:173)
	at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:787)
	at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:846)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:246)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:216)
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
	at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:80)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
	at org.elasticsearch.cli.Command.main(Command.java:79)
	at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:36)

```

I would appreciate some help.

---

<div class="post-metadata">

### Author: ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)
#### Post date: [August 21, 2021, 1:20am UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086/2 "2021-08-21T01:20:28Z")

</div>

> [@cctk](#):
>
> `Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-14653170667895787521/plugin-descriptor.properties`

The installation complains that the `plugin-descriptor.properties` file cannot be found. This means the plugin artefact (zip file) is corrupted or not correctly packaged. I suspect that you were not installing the plugin from the official repository.

> [@cctk](#):
>
> `-> Downloading file:/usr/share/elasticsearch/plugins/repository-s3-7-2.zip`

This line shows that the plugin was installed from a local file instead of the official repo. You can either install from the official repo or download for offline installation as [documented](https://www.elastic.co/guide/en/elasticsearch/plugins/7.2/repository-s3.html).

---

<div class="post-metadata">

### Author: ![Mienac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mienac/32/93948_2.png) [@Mienac](https://discuss.elastic.co/u/Mienac)
#### Post date: [August 21, 2021, 2:07am UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086/3 "2021-08-21T02:07:19Z")

</div>

Hello @cctk

> [@cctk](#):
>
> when I install the plugin `./elasticsearch-plugin install repository-s3` using the plugin manager the connection hangs and doesn't finish.

You might try to use Batch mode, like this: ./elasticsearch-plugin install --batch repository-s3

For more information you can click [here](https://www.elastic.co/guide/en/elasticsearch/plugins/current/_other_command_line_parameters.html#_batch_mode) , [here](https://github.com/elastic/cloud-on-k8s/issues/3414) and [here](https://discuss.elastic.co/t/installation-of-plugins-using-initcontainers-stuck/240811)

Let me know the result.

---

<div class="post-metadata">

### Author: ![Mienac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mienac/32/93948_2.png) [@Mienac](https://discuss.elastic.co/u/Mienac)
#### Post date: [August 24, 2021, 8:26am UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086/4 "2021-08-24T08:26:28Z")

</div>

Hello @cctk ,

How are you?

I'm following up just to know if the information shared solved the issue.

Thanks,

---

<div class="post-metadata">

### Author: ![cctk](https://avatars.discourse-cdn.com/v4/letter/c/73ab20/32.png) [@cctk](https://discuss.elastic.co/u/cctk)
#### Post date: [August 25, 2021, 9:04am UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086/5 "2021-08-25T09:04:33Z")

</div>

I have not tried it properly yet however, I did try the `--batch` command already but nothing worked.

---

<div class="post-metadata">

### Author: ![Mienac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mienac/32/93948_2.png) [@Mienac](https://discuss.elastic.co/u/Mienac)
#### Post date: [August 26, 2021, 12:36pm UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086/6 "2021-08-26T12:36:06Z")

</div>

Did you get the same error after adding - - batch to the command?

---

<div class="post-metadata">

### Author: ![cctk](https://avatars.discourse-cdn.com/v4/letter/c/73ab20/32.png) [@cctk](https://discuss.elastic.co/u/cctk)
#### Post date: [August 26, 2021, 12:51pm UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086/7 "2021-08-26T12:51:48Z")

</div>

sorted the issue. It was actually easier than I made it out to be.  
ran the following.  
`./elasticsearch-plugins install https://artifacts.elastic.co/downloads/elasticsearch-plugins/repository-s3/repository-s3-7.14.0.zip`

thank you

---

<div class="post-metadata">

### Author: ![Mienac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mienac/32/93948_2.png) [@Mienac](https://discuss.elastic.co/u/Mienac)
#### Post date: [August 26, 2021, 12:52pm UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086/8 "2021-08-26T12:52:58Z")

</div>

Thanks for sharing the solution

---

<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: [September 23, 2021, 12:53pm UTC](https://discuss.elastic.co/t/cant-seem-to-install-plugin-with-elasticsearch/282086/9 "2021-09-23T12:53:22Z")

</div>

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