# Logstash plugin installation issue- unable to download data

**URL:** <https://discuss.elastic.co/t/logstash-plugin-installation-issue-unable-to-download-data/181105>\
**Category:** Logstash\
**Created:** [May 15, 2019, 6:51am UTC](https://discuss.elastic.co/t/logstash-plugin-installation-issue-unable-to-download-data/181105 "2019-05-15T06:51:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahere37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Post date:** [May 15, 2019, 6:51am UTC](https://discuss.elastic.co/t/logstash-plugin-installation-issue-unable-to-download-data/181105/1 "2019-05-15T06:51:13Z")

</div>

hi all  
I am using logstash version 6.6.0 on windows, and now I am interested of logstash plugin installation. for this purpose, i ran following command in CMD which gives me Error.

```
C:\logstash-6.6.0\bin>logstash-plugin install logstash-input-jmx
Validating logstash-input-jmx
Unable to download data from https://rubygems.org - Errno::ECONNREFUSED: Connection refused - Failed to open TCP connection to localhost:3128 (Connection refused - connect(2) for "localhost" port 3128) (https://api.rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-input-jmx

```

to handle this issue I set HTTP\_PROXY and HTTPS\_PROXY in terminal, but the same error can be found:

```
C:\logstash-6.6.0\bin>set HTTP_PROXY=http://localhost:3128

C:\logstash-6.6.0\bin>set HTTPS_PROXY=http://localhost:3128

C:\logstash-6.6.0\bin>logstash-plugin install logstash-input-jmx
Validating logstash-input-jmx
Unable to download data from https://rubygems.org - Errno::ECONNREFUSED: Connection refused - Failed to open TCP connection to localhost:3128 (Connection refused - connect(2) for "localhost" port 3128) (https://api.rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-input-jmx

```

how can i handle this issue? any advise will be so appreciated

---

<div class="post-metadata">

**Author:** ![sahere37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Post date:** [May 15, 2019, 7:32am UTC](https://discuss.elastic.co/t/logstash-plugin-installation-issue-unable-to-download-data/181105/2 "2019-05-15T07:32:08Z")

</div>

could you please advise me? its very urgent. many thanks

@magnusbaeck

@warkolm

---

<div class="post-metadata">

**Author:** ![sahere37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Post date:** [May 15, 2019, 9:28am UTC](https://discuss.elastic.co/t/logstash-plugin-installation-issue-unable-to-download-data/181105/3 "2019-05-15T09:28:22Z")

</div>

I defined following in Environment variables of windows:

HTTP\_PROXY= [http://localhost:3128](http://localhost:3128/)  
HTTPS\_PROXY= [http://localhost:3128](http://localhost:3128/)

and used --no-verify , which leads to following:

```auto
C:\logstash-6.6.0\bin>logstash-plugin install --no-verify logstash-input-jmx
Installing logstash-input-jmx
Error Bundler::HTTPError, retrying 1/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 2/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 3/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 4/10
Could not fetch specs from http://rubygems.org/
Error Bundler::HTTPError, retrying 5/10

```

any advise will be so appreciated

---

<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 12, 2019, 9:28am UTC](https://discuss.elastic.co/t/logstash-plugin-installation-issue-unable-to-download-data/181105/4 "2019-06-12T09:28:26Z")

</div>

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