# Log stash plugin update failed with connection error

**URL:** https://discuss.elastic.co/t/log-stash-plugin-update-failed-with-connection-error/34675
**Category:** Logstash
**Created:** [November 16, 2015, 1:02pm UTC](https://discuss.elastic.co/t/log-stash-plugin-update-failed-with-connection-error/34675 "2015-11-16T13:02:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Omar\_Al\_Zabir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/omar_al_zabir/32/5943_2.png) [@Omar\_Al\_Zabir](https://discuss.elastic.co/u/Omar_Al_Zabir)
#### Post date: [November 16, 2015, 1:02pm UTC](https://discuss.elastic.co/t/log-stash-plugin-update-failed-with-connection-error/34675/1 "2015-11-16T13:02:32Z")

</div>

I have setup proxy and I can do curl/wget properly with the proxy. I have got both http and https proxy setup. I have also exported them to both lowercase and uppercase, e.g. https\_proxy and HTTPS\_PROXY.

But still trying to update plugin fails:

$ bin/plugin update logstash-input-beats  
ERROR: Updated Aborted, message: Connection refused - Connection refused

Install works file.

Is there a way to manually download the updates locally and install it?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [November 16, 2015, 1:21pm UTC](https://discuss.elastic.co/t/log-stash-plugin-update-failed-with-connection-error/34675/2 "2015-11-16T13:21:43Z")

</div>

According to [https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html#proxy-plugins](https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html#proxy-plugins) you should set HTTP\_PROXY, not HTTPS\_PROXY. That page also describes how to install a downloaded gem by hand.

---

<div class="post-metadata">

### Author: ![Omar\_Al\_Zabir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/omar_al_zabir/32/5943_2.png) [@Omar\_Al\_Zabir](https://discuss.elastic.co/u/Omar_Al_Zabir)
#### Post date: [November 17, 2015, 2:58pm UTC](https://discuss.elastic.co/t/log-stash-plugin-update-failed-with-connection-error/34675/3 "2015-11-17T14:58:41Z")

</div>

Have tried that, no luck. I have all 4 combinations setup, http\_proxy, https\_proxy, HTTP\_PROXY, HTTPS\_PROXY.

---

<div class="post-metadata">

### Author: ![pemontto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pemontto/32/3908_2.png) [@pemontto](https://discuss.elastic.co/u/pemontto)
#### Post date: [November 23, 2015, 11:46am UTC](https://discuss.elastic.co/t/log-stash-plugin-update-failed-with-connection-error/34675/4 "2015-11-23T11:46:12Z")

</div>

I've got the exact same issue, update won't work for us at all but install works fine. To update our plugins we've chosen to run  
`for i in $(/opt/logstash/bin/plugin list); do /opt/logstash/bin/plugin install "$i"; done`

The update function has given us nothing but trouble since the plugin system was introduced.

---

<div class="post-metadata">

### Author: ![garanews](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@garanews](https://discuss.elastic.co/u/garanews)
#### Post date: [March 22, 2016, 11:51am UTC](https://discuss.elastic.co/t/log-stash-plugin-update-failed-with-connection-error/34675/5 "2016-03-22T11:51:06Z")

</div>

This works with proxy,  
thanks.

---

<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 6, 2017, 5:05am UTC](https://discuss.elastic.co/t/log-stash-plugin-update-failed-with-connection-error/34675/6 "2017-07-06T05:05:56Z")

</div>


