Hi,
After the recent update of elasticsearch I started to experience problems dowloading plugins when I build docker container for the search. In particular, I receive 451 Unavailable For Legal Reasons when I try to download analysis-ukrainian. The package is unavailable in Germany. I can download it from ukrainian ip but fail to ping it from our digital ocean servers in Frankfurt.
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 451 for URL: https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-ukrainian/analysis-ukrainian-7.6.2.zip
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1919)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:449)
at org.elasticsearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:528)
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:307)
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:125)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:91)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)
Also, it's not possible to dowload plugin from a link
wget https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-ukrainian/analysis-ukrainian-7.7.0.zip
--2020-05-25 11:29:04-- https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-ukrainian/analysis-ukrainian-7.7.0.zip
Resolving artifacts.elastic.co (artifacts.elastic.co)... 151.101.114.222, 2a04:4e42:3::734
Connecting to artifacts.elastic.co (artifacts.elastic.co)|151.101.114.222|:443... connected.
HTTP request sent, awaiting response... 451 Unavailable For Legal Reasons
2020-05-25 11:29:04 ERROR 451: Unavailable For Legal Reasons.
UPD: I managed to download the package from German ip via vpn. It seems to be Digital Ocean issue.