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


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" Server returned HTTP response code: 451 for URL:
	at java.base/
	at java.base/
	at java.base/
	at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(
	at org.elasticsearch.plugins.InstallPluginCommand.downloadAndValidate(
	at org.elasticsearch.plugins.InstallPluginCommand.execute(
	at org.elasticsearch.plugins.InstallPluginCommand.execute(
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(
	at org.elasticsearch.cli.MultiCommand.execute(
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(
	at org.elasticsearch.cli.Command.main(
	at org.elasticsearch.plugins.PluginCli.main(

Also, it's not possible to dowload plugin from a link

--2020-05-25 11:29:04--
Resolving (, 2a04:4e42:3::734
Connecting to (||: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.