# OpenSearch does not yet support well on plugin installation?

**URL:** <https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469>\
**Category:** OpenDistro\
**Created:** [July 12, 2021, 8:23am UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469 "2021-07-12T08:23:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AvianDo](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@AvianDo](https://forum.opensearch.org/u/AvianDo)\
**Post date:** [July 12, 2021, 8:23am UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/1 "2021-07-12T08:23:09Z")

</div>

I tried to install additional plugins from command prompt, and think OpenSearch did not well on plugin installation. How would you guys think of? Since i can’t install any plugins to OpenSearch.

---

<div class="post-metadata">

**Author:** ![jkowall](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/jkowall/32/1063_2.png) [@jkowall](https://forum.opensearch.org/u/jkowall)\
**Post date:** [July 12, 2021, 12:33pm UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/2 "2021-07-12T12:33:23Z")

</div>

Please see the end of the tutorial @amitai did showing install/uninstall procedures.

[Taking the Leap: My First Steps in OpenSearch Plugins | Logz.io](https://logz.io/blog/opensearch-plugins/)

It works for sure on OpenSearch.

---

<div class="post-metadata">

**Author:** ![AvianDo](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@AvianDo](https://forum.opensearch.org/u/AvianDo)\
**Post date:** [July 12, 2021, 12:55pm UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/3 "2021-07-12T12:55:01Z")

</div>

thank you for showing the blog  
i did read and know that it needs when you want to build the plugin as well  
for those existing plugin like “repository-s3” that i want to install but always has error

---

<div class="post-metadata">

**Author:** ![jkowall](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/jkowall/32/1063_2.png) [@jkowall](https://forum.opensearch.org/u/jkowall)\
**Post date:** [July 12, 2021, 1:09pm UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/4 "2021-07-12T13:09:46Z")

</div>

I suggest opening an issue with the details of your problem in Github and it will be answered. You haven’t given any information aside from “has error” which is not very helpful in debugging your problem.

---

<div class="post-metadata">

**Author:** ![AvianDo](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@AvianDo](https://forum.opensearch.org/u/AvianDo)\
**Post date:** [July 12, 2021, 1:17pm UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/5 "2021-07-12T13:17:19Z")

</div>

I opened it 2 days ago:  
[https://github.com/opensearch-project/OpenSearch/issues/951](https://github.com/opensearch-project/OpenSearch/issues/951)  
Can you please have a look at it ?

---

<div class="post-metadata">

**Author:** ![vemsarat](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/vemsarat/32/1376_2.png) [@vemsarat](https://forum.opensearch.org/u/vemsarat)\
**Post date:** [July 12, 2021, 4:52pm UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/6 "2021-07-12T16:52:52Z")

</div>

Here is the doc we put in to help with instructions on installing…

> <https://github.com/opensearch-project/opensearch-plugins/blob/main/INSTALLING.md>

But for this problem, seems like the s3 plugin is not independently released which is why its failing to download the artifact.

---

<div class="post-metadata">

**Author:** ![maziar110](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/maziar110/32/1769_2.png) [@maziar110](https://forum.opensearch.org/u/maziar110)\
**Post date:** [July 16, 2021, 1:58pm UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/7 "2021-07-16T13:58:04Z")

</div>

Hi dear team, I have the same issue while I want to install `discovery-gce`  
Should I use the procedure here : [opensearch-plugins/INSTALLING.md at main · opensearch-project/opensearch-plugins · GitHub](https://github.com/opensearch-project/opensearch-plugins/blob/main/INSTALLING.md)  
Isn’t there an easier way to install plugins as I want to do it automatically in my code?  
e.g.  
`/etc/opensearch/bin/opensearch-plugin install --batch discovery-gce`

---

<div class="post-metadata">

**Author:** ![vemsarat](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/vemsarat/32/1376_2.png) [@vemsarat](https://forum.opensearch.org/u/vemsarat)\
**Post date:** [July 16, 2021, 5:44pm UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/8 "2021-07-16T17:44:36Z")

</div>

> [@AvianDo](#):
>
> [can't install repository-s3 plugin · Issue #951 · opensearch-project/OpenSearch · GitHub](https://github.com/opensearch-project/OpenSearch/issues/951)

@maziar110 the core plugins are do not have hosted artifacts. Which is why you cannot install them seamlessly today. Team is working on it:

> <https://github.com/opensearch-project/opensearch-build/issues/86>
>
> \*\*Is your feature request related to a problem? Please describe.\*\*
> Users are fi…nding it hard to install the native plugins as they are not readily available to download when running sh opensearch-plugin install command
> 
> \*\*Describe the solution you'd like\*\*
> All the internal plugins under /OpenSearch/tree/main/plugins are pre-compiled and hosted on https://artifacts.opensearch.org/releases/plugins/\* directory
> 
> \*\*Describe alternatives you've considered\*\*
> Manually building the plugins on local and making changes to point the install script to use the local version
> https://github.com/opensearch-project/OpenSearch/issues/951#issuecomment-878482124
> 
> \*\*Reference:\*\*
> https://github.com/opensearch-project/OpenSearch/issues/951

For now you can build the plugin from source and install it.

> <https://github.com/opensearch-project/OpenSearch/issues/951#issuecomment-878482124>
>
> i am having the issue to install repository-s3 plugin in OpenSearch Node with th…e following error:
> 
> \[opensearch@77afa25bb073 bin\]$ sh opensearch-plugin install repository-s3
> \-\> Installing repository-s3
> \-\> Downloading repository-s3 from opensearch
> \-\> Failed installing repository-s3
> \-\> Rolling back repository-s3
> \-\> Rolled back repository-s3
> Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://artifacts.opensearch.org/releases/plugins/repository-s3/1.0.0/repository-s3-1.0.0-rc1.zip
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1932)
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1528)
> at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
> at org.opensearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:438)
> at org.opensearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:515)
> at org.opensearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:306)
> at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:260)
> at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:237)
> at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:99)
> at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
> at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
> at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
> at org.opensearch.cli.Command.main(Command.java:103)
> at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)
> 
> Anyone has any idea what can i do?

> <https://github.com/opensearch-project/OpenSearch/issues/951#issuecomment-879251223>
>
> i am having the issue to install repository-s3 plugin in OpenSearch Node with th…e following error:
> 
> \[opensearch@77afa25bb073 bin\]$ sh opensearch-plugin install repository-s3
> \-\> Installing repository-s3
> \-\> Downloading repository-s3 from opensearch
> \-\> Failed installing repository-s3
> \-\> Rolling back repository-s3
> \-\> Rolled back repository-s3
> Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://artifacts.opensearch.org/releases/plugins/repository-s3/1.0.0/repository-s3-1.0.0-rc1.zip
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1932)
> at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1528)
> at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
> at org.opensearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:438)
> at org.opensearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:515)
> at org.opensearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:306)
> at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:260)
> at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:237)
> at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:99)
> at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
> at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
> at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:140)
> at org.opensearch.cli.Command.main(Command.java:103)
> at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)
> 
> Anyone has any idea what can i do?

---

<div class="post-metadata">

**Author:** ![amitai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/amitai/32/1072_2.png) [@amitai](https://forum.opensearch.org/u/amitai)\
**Post date:** [October 3, 2021, 9:09am UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/9 "2021-10-03T09:09:20Z")

</div>

(Just posting for those of you who still want to use this before version 1.1)

If you wish to do this in a docker you can use this Dockerfile:

```auto
FROM opensearchproject/opensearch:1.0.0
USER root
ADD https://artifacts.opensearch.org/releases/plugins/repository-s3/1.0.0/repository-s3-1.0.0.zip /usr
RUN chown -R opensearch:opensearch /usr/repository-s3-1.0.0.zip
USER opensearch:opensearch
RUN /usr/share/opensearch/bin/opensearch-plugin install --batch file:///usr/repository-s3-1.0.0.zip

```

Then run

```auto
docker build --tag=opensearch-with-s3-plugin .

```

And of course, use `opensearch-with-s3-plugin` in your `docker-compose.yml`.

---

<div class="post-metadata">

**Author:** ![hajdi](https://avatars.discourse-cdn.com/v4/letter/h/a183cd/32.png) [@hajdi](https://forum.opensearch.org/u/hajdi)\
**Post date:** [November 2, 2021, 10:07pm UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/10 "2021-11-02T22:07:00Z")

</div>

> [@amitai](#):
>
> `https://artifacts.opensearch.org/releases/plugins/repository-s3/1.0.0/repository-s3-1.0.0.zip`

Issue is → This repository is private and we cannot access it:  
HTTP request sent, awaiting response… 403 Forbidden

If you want customers to use this repository you have to make it public lol…

---

<div class="post-metadata">

**Author:** ![amitai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/amitai/32/1072_2.png) [@amitai](https://forum.opensearch.org/u/amitai)\
**Post date:** [November 3, 2021, 10:56am UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/11 "2021-11-03T10:56:26Z")

</div>

Hi @hajdi !  
I am not an AWS employee, I accessed this artifact without any issues.  
However, this is an outdated topic - you may use OpenSearch v1.1.0 and s3 plugin should work fine without the workaround 🥳

---

<div class="post-metadata">

**Author:** ![dblock](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/dblock/32/1350_2.png) [@dblock](https://forum.opensearch.org/u/dblock)\
**Post date:** [November 8, 2021, 1:03pm UTC](https://forum.opensearch.org/t/opensearch-does-not-yet-support-well-on-plugin-installation/6469/12 "2021-11-08T13:03:15Z")

</div>

> [@Https://artifacts.opensearch.org/releases/plugins returns 403 when trying to download plugins. Can this repository be public?](https://forum.opensearch.org/t/https-artifacts-opensearch-org-releases-plugins-returns-403-when-trying-to-download-plugins-can-this-repository-be-public/7512/1):
>
> Need help for installing OpenSearch S3 plugin

Amitai is correct, thanks!

Note that S3 [returns a 403 when a file doesn’t exist and the requester doesn’t have permission to list the bucket contents](https://stackoverflow.com/questions/19037664/how-do-i-have-an-s3-bucket-return-404-instead-of-403-for-a-key-that-does-not-e), which may be confusing - this is not a permissions problem. We published the native plugins in 1.1.0 (see [Release Native Plugins for 1.1.0 on S3 Production Bucket · Issue #686 · opensearch-project/opensearch-build · GitHub](https://github.com/opensearch-project/opensearch-build/issues/686)).
