# Attempting to download logstash plugin - "Connection refused" error - is returned

**URL:** <https://discuss.elastic.co/t/attempting-to-download-logstash-plugin-connection-refused-error-is-returned/177852>\
**Category:** Logstash\
**Created:** [April 22, 2019, 1:15pm UTC](https://discuss.elastic.co/t/attempting-to-download-logstash-plugin-connection-refused-error-is-returned/177852 "2019-04-22T13:15:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgolubov55](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mgolubov55](https://discuss.elastic.co/u/mgolubov55)\
**Post date:** [April 22, 2019, 1:15pm UTC](https://discuss.elastic.co/t/attempting-to-download-logstash-plugin-connection-refused-error-is-returned/177852/1 "2019-04-22T13:15:15Z")

</div>

After setting the following environment variables: http\_proxy and https\_proxy to [http://localhost:3128](http://localhost:3128) , I attempted to download the exec output plugin by typing:

./bin/logstash-plugin install logstash-output-exec

I received the following error message:  
Unable to download data from [https://rubygems.org](https://rubygems.org) - Errno::ECONNREFUSED: Connection refused - Failed to open TCP connection to localhost:3128 \<Connection refused - connect\<2\> for "localhost" port 3128\> [https://rubygems.org/latest\_specs.4.8.gz](https://rubygems.org/latest_specs.4.8.gz)

I am running this from a workstation behind the corporate firewall.  
Is this a ruby issue? logstash issue? or network/workstation issue?

---

<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:** [May 20, 2019, 1:15pm UTC](https://discuss.elastic.co/t/attempting-to-download-logstash-plugin-connection-refused-error-is-returned/177852/2 "2019-05-20T13:15:17Z")

</div>

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