I am trying to install logstash-filter-elasticsearch plugin using the following command:
JARS_DEBUG=true JARS_VERBOSE=true DEBUG=1 bin/logstash-plugin install logstash-filter-elasticsearch
The error I get is: Errno::ECONNREFUSED: Connection refused - Connection refused
I have set export https_proxy= and I have create a ~/.m2/settings.xml with proxy settings in there.
I am trying to download the file from a different computer without proxy and then I end up with this.
<?xml version="1.0" encoding="UTF-8"?>
NoSuchKeyThe specified key does not exist.downloads/logstash-plugins/logstash-filter-dissect/logstash-filter-dissect-5.2.0.zipCBC3FEE4A0F6D088FYeXTwYavdJ4XvYbnu+JRUIKxEp8Jw+6nI7idQPwnpARvPo+iLxQSVPHq/41f30yj95vWNxqBlU=
Looking if package named: logstash-filter-elasticsearch exists at https://artifacts.elastic.co/downloads/logstash-plugins/logstash-filter-elasticsearch/logstash-filter-elasticsearch-5.2.0.zip
Errno::ECONNREFUSED: Connection refused - Connection refused
initialize at org/jruby/ext/socket/RubyTCPSocket.java:126
open at org/jruby/RubyIO.java:1197
connect at /usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:763
timeout at org/jruby/ext/timeout/Timeout.java:98
connect at /usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:763
do_start at /usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:756
start at /usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:745
start at /usr/share/logstash/vendor/jruby/lib/ruby/1.9/net/http.rb:557
start at /usr/share/logstash/lib/pluginmanager/utils/http_client.rb:13
remote_file_exist? at /usr/share/logstash/lib/pluginmanager/utils/http_client.rb:23
get_installer_for at /usr/share/logstash/lib/pluginmanager/pack_fetch_strategy/repository.rb:27
create at /usr/share/logstash/lib/pluginmanager/install_strategy_factory.rb:15
each at org/jruby/RubyArray.java:1613
create at /usr/share/logstash/lib/pluginmanager/install_strategy_factory.rb:14
execute at /usr/share/logstash/lib/pluginmanager/install.rb:30
run at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67
execute at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/subcommand/execution.rb:11
run at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67
run at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132
(root) at /usr/share/logstash/lib/pluginmanager/main.rb:46
Yes it does, I can get trough plain and ssl site just fine but is must be something local, I installed a local vm directly connected to internet and I can install the plugin just fine...
So it looks like that logstash-plugin (5.2.0) is ignoring the env setting http_proxy or HTTP_PROXY.
A round of google told me you can set jruby options aswel so I went ahead and made a small adjustment to logstash-plugin and changed the line JRUBY_OPTS and added -J-Dhttp.proxyHost=wsus.oss.local -J-Dhttp.proxyPort=443 and now I can install plugins again.
So is this a bug? should I create a issue on github?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.