Hi,
I'm finding that plugin installation is failing from behind proxy. This has me wondering how proxying should be configured in the current version. Neither of these approaches are working for me:
I am encountering the same issue here in a docker container where the entrypoint script ensures that certain plugins are installed prior to starting elasticsearch. This used to work end of November and now fails. As I am using the same version of Elasticsearch, I assume that it is not a change in the logstash-plugin code but something in the plugin repository changed which breaks our proxy connection.
Same issue here, just looking for the plugins to download an install it with bin/logstash-plugin install --local {plugin} but cannot find the plugins.
I'm also behind a proxy. bin/logstash-plugin list works...
Trying to install the "multiline" plugin and I get a Connection refused:
root@server:/usr/share/logstash/bin# DEBUG=1 ./logstash-plugin install logstash-filter-multiline
DEBUG: exec /usr/share/logstash/vendor/jruby/bin/jruby --1.9 /usr/share/logstash/lib/pluginmanager/main.rb install logstash-filter-multiline
Looking if package named: logstash-filter-multiline exists at https://artifacts.elastic.co/downloads/logstash-plugins/logstash-filter-multiline/logstash-filter-multiline-5.1.1.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:27
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
root@server:/usr/share/logstash/bin#
It seems that logstash-plugin is simply ignoring the proxy.
I accidentally installed the latest logstash version instead of the intended version. When I fixed that (thus reverting to 5.0.1), the plugin installation works again. I also had to set not only HTTP_PROXY but also HTTPS_PROXY for all plugins to succeed.
This looks like a regression to me (as it worked in 5.1.1) but I am not deep enough into logstash to determine whether this is due to plugin-install or the bundled jruby version.
root@server:/usr/share/logstash/bin# ./logstash-plugin install logstash-filter-multiline
Validating logstash-filter-multiline
Installing logstash-filter-multiline
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core-event-java (5.1.1), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.1.1'` succeeds before bundling.
WARNING: SSLSocket#session= is not supported
^Croot@server:/usr/share/logstash/bin#
And if I try to use the suggested command, I get:
root@server:/usr/share/logstash/bin# gem install logstash-core-event-java -v '5.1.1'
ERROR: Could not find a valid gem 'logstash-core-event-java' (= 5.1.1) in any repository
Can I have a definitive statement on the fix for this please? I've upgraded to 5.2.0 and i still cannot install plugins. And, the above workaround fails too:
# bin/logstash-plugin install logstash-filter-de_dot
Validating logstash-filter-de_dot
Installing logstash-filter-de_dot
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core-event-java (5.2.0), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.2.0'` succeeds before bundling.
WARNING: SSLSocket#session= is not supported
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.