# Installing plugins via proxy doesn't work (anymore)

**URL:** <https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901>\
**Category:** Elasticsearch\
**Created:** [September 30, 2016, 8:18am UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901 "2016-09-30T08:18:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roland\_L](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@Roland\_L](https://discuss.elastic.co/u/Roland_L)\
**Post date:** [September 30, 2016, 8:18am UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/1 "2016-09-30T08:18:01Z")

</div>

Hi,

so I've been at this for over an hour now and I'm getting really desperate. I want to install the "license" plugin in my ES (for Kibana Reporting), but I'm unable to install the plugin through the corporate proxy. I already have installed the "head" plugin some months ago with the following:

`/usr/share/elasticsearch/bin/plugin -DproxyPort=3128 -DproxyHost=http:// ****** -install mobz/elasticsearch-head`

Back then it worked fine. Now I can't seem to use the proxy anymore. I've tried all of the following, but neither of these works:

```
/usr/share/elasticsearch/bin/plugin -Dhttps.proxyPort=3128 -Dhttps.proxyHost=http:// ****** install license
/usr/share/elasticsearch/bin/plugin -Dhttp.proxyPort=3128 -Dhttp.proxyHost=http:// ****** install license
/usr/share/elasticsearch/bin/plugin -DproxyPort=3128 -DproxyHost=http:// ****** install license
/usr/share/elasticsearch/bin/plugin -Dproxy_port=3128 -Dproxy_host=http:// ****** install license

```

The result is always a SocketTimeout:

```
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.1/license-2.4.1.zip ...
Failed: SocketTimeoutException[connect timed out]
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

```

Downloading the plugin via wget (on the same host with the same proxy) works:

```
https_proxy=http:// ****** :3128 wget "https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.1/license-2.4.1.zip"
--2016-09-30 09:55:59-- https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.1/license-2.4.1.zip
Resolving ******(******)... ******
Connecting to ******(******)| ****** |:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 103393 (101K) [application/zip]
Saving to: `license-2.4.1.zip'

100%[================================>] 103,393 538K/s in 0.2s    

2016-09-30 09:56:00 (538 KB/s) - `license-2.4.1.zip' saved [103393/103393]

```

Does anybody have an idea what I'm missing? (Elasticsearch version: 2.4.1)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 30, 2016, 8:36am UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/2 "2016-09-30T08:36:52Z")

</div>

Can you try:

```auto
/usr/share/elasticsearch/bin/plugin install license -DproxyPort=3128 -DproxyHost=http:// ******

```

---

<div class="post-metadata">

**Author:** ![Roland\_L](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@Roland\_L](https://discuss.elastic.co/u/Roland_L)\
**Post date:** [September 30, 2016, 9:00am UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/3 "2016-09-30T09:00:14Z")

</div>

Hi!

Tried that too, didn't work either. ☹

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 30, 2016, 9:51am UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/4 "2016-09-30T09:51:00Z")

</div>

Can you try with the `--verbose` option?

---

<div class="post-metadata">

**Author:** ![Roland\_L](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@Roland\_L](https://discuss.elastic.co/u/Roland_L)\
**Post date:** [September 30, 2016, 10:39am UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/5 "2016-09-30T10:39:55Z")

</div>

Hi!

The verbose option doesnn't say much, only: "**Failed: SocketTimeoutException[connect timed out]**". Which would basically mean that it's some kind of network error. But since it works with _wget_ I'd guess that the ES plugin-script doesn't respect the proxy or can't use it properly.

---

<div class="post-metadata">

**Author:** ![MarkOStewart](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@MarkOStewart](https://discuss.elastic.co/u/MarkOStewart)\
**Post date:** [September 30, 2016, 1:02pm UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/6 "2016-09-30T13:02:55Z")

</div>

Try a manual install. This worked for me when I was messing around with Elastic.

From this discussion on StackOverflow.

> <https://stackoverflow.com/questions/19587974/manual-install-of-elasticsearch-plugins>

You can also download plugin zip file to a temporary location and then install it by specifying path to it using --url parameter:

bin/plugin --install knapsack --url file:///Full/Path/To/elasticsearch-knapsack-2.1.2.zip  
See Plugins documentation for more information.

Good luck

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 30, 2016, 1:15pm UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/7 "2016-09-30T13:15:16Z")

</div>

That's my concern actually. I mean that if it's documented and not working then it's a bug.  
May I suggest that you open an issue and link to this discussion?

---

<div class="post-metadata">

**Author:** ![Roland\_L](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@Roland\_L](https://discuss.elastic.co/u/Roland_L)\
**Post date:** [October 28, 2016, 1:44pm UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/8 "2016-10-28T13:44:49Z")

</div>

Ah, I completely forgot this one. So it seems that it was some error on our network. I tried it again and it works. Sorry for the confusion.

---

<div class="post-metadata">

**Author:** ![Roland\_L](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@Roland\_L](https://discuss.elastic.co/u/Roland_L)\
**Post date:** [November 28, 2016, 11:52am UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/9 "2016-11-28T11:52:12Z")

</div>

It wasn't a network error after all. The problem still persists.

I've opened a bugticket: [https://github.com/elastic/elasticsearch/issues/21824](https://github.com/elastic/elasticsearch/issues/21824)

---

<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:** [July 5, 2017, 10:05pm UTC](https://discuss.elastic.co/t/installing-plugins-via-proxy-doesnt-work-anymore/61901/10 "2017-07-05T22:05:24Z")

</div>


