Logstash plugin installation issue- unable to download data

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

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

@magnusbaeck

@warkolm

I defined following in Environment variables of windows:

HTTP_PROXY= http://localhost:3128
HTTPS_PROXY= http://localhost:3128

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

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

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