Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

[BUG] ElasticSearch ISM plugin V 1.12.0.1 stand alone Installation Error - AccessDenied #454

Open
susmitasain opened this issue Jun 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@susmitasain
Copy link

susmitasain commented Jun 16, 2021

Describe the bug
On Elastic Search Version 7.10.0 I was trying to install stand alone opendistro ISM plugin - opendistro_index_management - 1.12.0.1 as per compatibility charts - https://opendistro.github.io/for-elasticsearch-docs/docs/install/plugins/#plugin-compatibility.

Trying to download using below commands -

sudo bin/elasticsearch-plugin install https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro-index-management-1.12.0.1.zip

but the following URL - https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro-index-management-1.12.0.1.zip shows AccessDenied.

<Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>V5YERAXG0WY366CQ</RequestId> <HostId>IMcQUp6isMmBt0Q6oh5SJ7Y31hMagPstpfk/ZyDUxOjV7bsTpVU3buhhp1Iw3BVT7AYBxYexeuo=</HostId> </Error>

Other plugins installed
opendistro-job-scheduler-1.12.0.0

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to the Elasticsearch home directory for V 7.10.0

  2. Run sudo bin/elasticsearch-plugin install https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-job-scheduler/opendistro-job-scheduler-1.12.0.0.zip

  3. Run sudo bin/elasticsearch-plugin install https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro-index-management-1.12.0.1.zip

  4. See below error -
    -> Installing https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro-index-management-1.12.0.1.zip -> Downloading https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro-index-management-1.12.0.1.zip -> Failed installing https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro-index-management-1.12.0.1.zip -> Rolling back https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro-index-management-1.12.0.1.zip -> Rolled back https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro-index-management-1.12.0.1.zip Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro-index-management-1.12.0.1.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.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:448) at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:329) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:251) at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:224) at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:91) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) at org.elasticsearch.cli.Command.main(Command.java:90) at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)

Expected behavior
The ISM plugin should have installed .

@susmitasain susmitasain added the bug Something isn't working label Jun 16, 2021
@susmitasain susmitasain changed the title [BUG] ElasticSearch ISM plugin V 1.12.0.1 stand alone Installation Error [BUG] ElasticSearch ISM plugin V 1.12.0.1 stand alone Installation Error - AccessDenied Jun 16, 2021
@guimarca
Copy link

guimarca commented May 9, 2022

It happened to me today. It turns out that version of the plugin was named using underscores instead of dashes. This works:

/usr/share/elasticsearch/bin/elasticsearch-plugin install --batch https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-index-management/opendistro_index_management-1.12.0.1.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants