Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Problem installing plugins from artifacts.opensearch.org #188

Closed
prog8 opened this issue Aug 11, 2021 · 4 comments
Closed

[BUG] Problem installing plugins from artifacts.opensearch.org #188

prog8 opened this issue Aug 11, 2021 · 4 comments
Labels
v1.2.0 OpenSearch 1.2 version

Comments

@prog8
Copy link

prog8 commented Aug 11, 2021

I am not fully sure if this is a bug or a problem how I approach installing plugins. I tried to install dicovery-gce plugin in a way presented below.

$ bin/opensearch-plugin install discovery-gce                                                                                                                                                                                       
-> Installing discovery-gce
-> Downloading discovery-gce from opensearch
[=================================================] 100%   
-> Failed installing discovery-gce
-> Rolling back discovery-gce
-> Rolled back discovery-gce
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://artifacts.opensearch.org/releases/plugins/discovery-gce/1.0.0/discovery-gce-1.0.0.zip.asc
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1927)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1523)
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
	at java.base/java.net.URL.openStream(URL.java:1167)
	at org.opensearch.plugins.InstallPluginCommand.urlOpenStream(InstallPluginCommand.java:482)
	at org.opensearch.plugins.InstallPluginCommand.verifySignature(InstallPluginCommand.java:622)
	at org.opensearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:600)
	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)

The zip package was fetched correctly. The only problem is that asc file. It is either missing or closed access (HTTP 403).

If I download the plugin manually with wget:

wget https://artifacts.opensearch.org/releases/plugins/discovery-gce/1.0.0/discovery-gce-1.0.0.zip

And then install the plugin it seems to work.

$ bin/opensearch-plugin install file:///tmp/discovery-gce-1.0.0.zip                                                                                                                                                                 
-> Installing file:///tmp/discovery-gce-1.0.0.zip
-> Downloading file:///tmp/discovery-gce-1.0.0.zip
[=================================================] 100%   
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@     WARNING: plugin requires additional permissions     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.RuntimePermission setFactory
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.net.SocketPermission * connect,resolve
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y
-> Installed discovery-gce
@dblock dblock transferred this issue from opensearch-project/OpenSearch Aug 11, 2021
@dblock
Copy link
Member

dblock commented Aug 11, 2021

I moved this to opensearch-build.

@gaiksaya
Copy link
Member

gaiksaya commented Aug 11, 2021

I think the issue is already being tracked here: opensearch-project/OpenSearch#996

@peternied
Copy link
Member

[Triage] @prog8 we are tracking the resolution of this issue with #86 which will be available after the 1.1.0 release.

@peternied peternied added triaged This issue has been reviewed by the triage team v1.1.0 labels Sep 21, 2021
@dblock dblock added v1.2.0 OpenSearch 1.2 version and removed v1.1.0 triaged This issue has been reviewed by the triage team labels Oct 13, 2021
@bbarani
Copy link
Member

bbarani commented Nov 15, 2021

@prog8 This issue has been fixed in 1.1.0 release hence I am closing this issue. Please feel free to re-open this issue if you have any other questions.

@bbarani bbarani closed this as completed Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.2.0 OpenSearch 1.2 version
Projects
None yet
Development

No branches or pull requests

5 participants