IOException: Server returned HTTP response code: 451 on plugin download. Legal issues in Germany

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.

Welcome! :smiley:

Thanks for sharing your solution ^

Any idea why this would be an issue with digitalocean servers? I'm trying to install elastic stack on a Centos 8 machine in digitalocean and getting the same error.

Edit: I'm in the US and so is my digitalocean server.

Turns out there is an issue with our CDN provider, they are doing some further changes in the near future to resolve this. Apologies for the troubles :slight_smile:

1 Like

As the temporary workaround, I hosted the package on my server to enable download from custom url. Hope, you'll resolve the issues with CDN soon. Thanks for the response.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.