opendistro-for-elasticsearch / index-management

🗃 Open Distro Index Management
https://opendistro.github.io/
Apache License 2.0
115 stars 45 forks source link

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

Open susmitasain opened 3 years ago

susmitasain commented 3 years ago

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.

`

AccessDenied Access Denied V5YERAXG0WY366CQ IMcQUp6isMmBt0Q6oh5SJ7Y31hMagPstpfk/ZyDUxOjV7bsTpVU3buhhp1Iw3BVT7AYBxYexeuo= ` **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 .
guimarca commented 2 years ago

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