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

**URL:** <https://discuss.elastic.co/t/ioexception-server-returned-http-response-code-451-on-plugin-download-legal-issues-in-germany/234141>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 25, 2020, 11:32am UTC](https://discuss.elastic.co/t/ioexception-server-returned-http-response-code-451-on-plugin-download-legal-issues-in-germany/234141 "2020-05-25T11:32:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bil\_Bo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bil_bo/32/48319_2.png) [@Bil\_Bo](https://discuss.elastic.co/u/Bil_Bo)\
**Post date:** [May 25, 2020, 11:32am UTC](https://discuss.elastic.co/t/ioexception-server-returned-http-response-code-451-on-plugin-download-legal-issues-in-germany/234141/1 "2020-05-25T11:32:03Z")

</div>

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](https://en.wikipedia.org/wiki/HTTP_451) when I try to download [analysis-ukrainian](https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-ukrainian.html). 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.

```auto
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

```auto
    wget https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-ukrainian/analysis-ukrainian-7.7.0.zip

```

```auto
--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.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 26, 2020, 12:29am UTC](https://discuss.elastic.co/t/ioexception-server-returned-http-response-code-451-on-plugin-download-legal-issues-in-germany/234141/2 "2020-05-26T00:29:36Z")

</div>

Welcome! 😃

> [@Bil\_Bo](#):
>
> **UPD:** I managed to download the package from German ip via vpn. It seems to be Digital Ocean issue.

Thanks for sharing your solution ^

---

<div class="post-metadata">

**Author:** ![kicker10BOG](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@kicker10BOG](https://discuss.elastic.co/u/kicker10BOG)\
**Post date:** [May 27, 2020, 8:18pm UTC](https://discuss.elastic.co/t/ioexception-server-returned-http-response-code-451-on-plugin-download-legal-issues-in-germany/234141/3 "2020-05-27T20:18:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 27, 2020, 9:44pm UTC](https://discuss.elastic.co/t/ioexception-server-returned-http-response-code-451-on-plugin-download-legal-issues-in-germany/234141/4 "2020-05-27T21:44:38Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Bil\_Bo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bil_bo/32/48319_2.png) [@Bil\_Bo](https://discuss.elastic.co/u/Bil_Bo)\
**Post date:** [May 28, 2020, 1:04am UTC](https://discuss.elastic.co/t/ioexception-server-returned-http-response-code-451-on-plugin-download-legal-issues-in-germany/234141/5 "2020-05-28T01:04:21Z")

</div>

As the temporary workaround, I hosted the package on my server to enable [download from custom url](https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-management-custom-url.html). Hope, you'll resolve the issues with CDN soon. Thanks for the response.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 25, 2020, 1:04am UTC](https://discuss.elastic.co/t/ioexception-server-returned-http-response-code-451-on-plugin-download-legal-issues-in-germany/234141/6 "2020-06-25T01:04:34Z")

</div>

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