# Fail to install logstash plugin, version 7.6.2

**URL:** <https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443>\
**Category:** Logstash\
**Created:** [January 28, 2021, 2:47am UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443 "2021-01-28T02:47:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![wink](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@wink](https://discuss.elastic.co/u/wink)\
**Post date:** [January 28, 2021, 2:47am UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443/1 "2021-01-28T02:47:49Z")

</div>

Hi, I just do everything like on [https://www.elastic.co/guide/en/logstash/current/java-filter-plugin.html#\_copy\_the\_example\_repo\_3](https://www.elastic.co/guide/en/logstash/current/java-filter-plugin.html#_copy_the_example_repo_3).  
I did not change any code.  
But It comes out some error when I try to install the plugin

```auto
./bin/logstash-plugin install --no-verify --local ./logstash-filter-java_filter_example-1.0.2.gem

```

ERROR: Something went wrong when installing ./logstash-filter-java\_filter\_example-1.0.2.gem, message: undefined method `headers' for #\<Net::HTTPFound 302 Found readbody=true\>

---

<div class="post-metadata">

**Author:** ![alexz00](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@alexz00](https://discuss.elastic.co/u/alexz00)\
**Post date:** [January 28, 2021, 5:56pm UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443/2 "2021-01-28T17:56:16Z")

</div>

Hi, I'm facing the same error with multiple versions. All our scripts that worked till few days ago now are failing with this same error...

---

<div class="post-metadata">

**Author:** ![jdnoprada](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jdnoprada/32/83106_2.png) [@jdnoprada](https://discuss.elastic.co/u/jdnoprada)\
**Post date:** [January 29, 2021, 10:06am UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443/3 "2021-01-29T10:06:07Z")

</div>

Weird, same here just now. Did you manage to work around this issue?

Just to give more context, was able to add a non-custom plugin earlier after a few tries (elapsed plugin). Was having the same HTTPFound 302 error before the plugin was successfully installed. However, upon installing a custom local java filter plugin, using OP's same command, I can't install it anymore with the same HTTPFound 302 error.

---

<div class="post-metadata">

**Author:** ![Surasit\_Liangpornrat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/surasit_liangpornrat/32/83134_2.png) [@Surasit\_Liangpornrat](https://discuss.elastic.co/u/Surasit_Liangpornrat)\
**Post date:** [January 29, 2021, 3:55pm UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443/4 "2021-01-29T15:55:18Z")

</div>

im facing this error too

---

<div class="post-metadata">

**Author:** ![wink](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@wink](https://discuss.elastic.co/u/wink)\
**Post date:** [February 1, 2021, 5:39am UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443/5 "2021-02-01T05:39:54Z")

</div>

not yet.

---

<div class="post-metadata">

**Author:** ![alexz00](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@alexz00](https://discuss.elastic.co/u/alexz00)\
**Post date:** [February 1, 2021, 10:43pm UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443/6 "2021-02-01T22:43:50Z")

</div>

I managed to make it work, updating rubygems (gem update --system, but I'm not sure that this was relevant) and removing './' from the path:

bin/logstash-plugin install --no-verify myplugin.gem

instead than

bin/logstash-plugin install --no-verify ./myplugin.gem

You can check if this works for you.

---

<div class="post-metadata">

**Author:** ![Surasit\_Liangpornrat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/surasit_liangpornrat/32/83134_2.png) [@Surasit\_Liangpornrat](https://discuss.elastic.co/u/Surasit_Liangpornrat)\
**Post date:** [February 2, 2021, 8:39am UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443/7 "2021-02-02T08:39:14Z")

</div>

It works for me.  
Thank you so much.

---

<div class="post-metadata">

**Author:** ![jdnoprada](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jdnoprada/32/83106_2.png) [@jdnoprada](https://discuss.elastic.co/u/jdnoprada)\
**Post date:** [February 3, 2021, 2:59am UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443/8 "2021-02-03T02:59:01Z")

</div>

Wow removing './' actually worked. Didn't even have to do the `gem update --system`. Thank Alex!

---

<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 3, 2021, 2:59am UTC](https://discuss.elastic.co/t/fail-to-install-logstash-plugin-version-7-6-2/262443/9 "2021-03-03T02:59:19Z")

</div>

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