# Plugin not found

**URL:** <https://discuss.elastic.co/t/plugin-not-found/73472>\
**Category:** Logstash\
**Created:** [February 1, 2017, 7:18am UTC](https://discuss.elastic.co/t/plugin-not-found/73472 "2017-02-01T07:18:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [February 1, 2017, 7:18am UTC](https://discuss.elastic.co/t/plugin-not-found/73472/1 "2017-02-01T07:18:21Z")

</div>

Hi,

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"?\>

`NoSuchKey`The specified key does not exist.downloads/logstash-plugins/logstash-filter-dissect/logstash-filter-dissect-5.2.0.zipCBC3FEE4A0F6D088FYeXTwYavdJ4XvYbnu+JRUIKxEp8Jw+6nI7idQPwnpARvPo+iLxQSVPHq/41f30yj95vWNxqBlU=

Any clues on what to do next?

Thanks,  
Paul.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 1, 2017, 7:38am UTC](https://discuss.elastic.co/t/plugin-not-found/73472/2 "2017-02-01T07:38:06Z")

</div>

The documentation suggests setting HTTP\_PROXY, not https\_proxy.

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [February 1, 2017, 8:13am UTC](https://discuss.elastic.co/t/plugin-not-found/73472/3 "2017-02-01T08:13:27Z")

</div>

Hi,

changed the setting and there is no difference in the result.

Here is the complete error:

root@esearch9:/usr/share/logstash# export HTTP\_PROXY=http://wsus.oss.local:443/  
root@esearch9:/usr/share/logstash# JARS\_DEBUG=true JARS\_VERBOSE=true DEBUG=1 bin/logstash-plugin install logstash-filter-elasticsearch  
DEBUG: exec /usr/share/logstash/vendor/jruby/bin/jruby /usr/share/logstash/lib/pluginmanager/main.rb install logstash-filter-elasticsearch  
--- loaded jars ---

```
register ["org.bouncycastle", "bcpkix-jdk15on", "1.54"] - true
register ["org.bouncycastle", "bcprov-jdk15on", "1.54"] - true

```

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](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

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 1, 2017, 8:31am UTC](https://discuss.elastic.co/t/plugin-not-found/73472/4 "2017-02-01T08:31:01Z")

</div>

> root@esearch9:/usr/share/logstash# export HTTP\_PROXY=[http://wsus.oss.local:443/](http://wsus.oss.local:443/)

Does it really serve plain HTTP on port 443?

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [February 1, 2017, 8:50am UTC](https://discuss.elastic.co/t/plugin-not-found/73472/5 "2017-02-01T08:50:23Z")

</div>

Hi,

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...

(today is not my day)

Paul.

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [February 1, 2017, 9:07am UTC](https://discuss.elastic.co/t/plugin-not-found/73472/6 "2017-02-01T09:07:16Z")

</div>

So I got a solution for my problem.

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?

Paul.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 1, 2017, 9:28am UTC](https://discuss.elastic.co/t/plugin-not-found/73472/7 "2017-02-01T09:28:26Z")

</div>

Yes, that's a bug (either in the documentation or the code). Would you mind filing a GitHub issue with your findings?

---

<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:** [March 1, 2017, 9:29am UTC](https://discuss.elastic.co/t/plugin-not-found/73472/8 "2017-03-01T09:29:01Z")

</div>

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