# Can't install logstash plugins, trying to install them breaks the logstash installation

**URL:** <https://discuss.elastic.co/t/cant-install-logstash-plugins-trying-to-install-them-breaks-the-logstash-installation/103689>\
**Category:** Logstash\
**Created:** [October 12, 2017, 9:37am UTC](https://discuss.elastic.co/t/cant-install-logstash-plugins-trying-to-install-them-breaks-the-logstash-installation/103689 "2017-10-12T09:37:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![A.McBride](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@A.McBride](https://discuss.elastic.co/u/A.McBride)\
**Post date:** [October 12, 2017, 9:37am UTC](https://discuss.elastic.co/t/cant-install-logstash-plugins-trying-to-install-them-breaks-the-logstash-installation/103689/1 "2017-10-12T09:37:51Z")

</div>

I'm trying to install the email plugin for logstash by using "logstash-plugin install logstash-output-email", however when I do it I get the following error:

Validating logstash-output-email  
Installing logstash-output-email  
Error Bundler::InstallError, retrying 1/10  
An error occurred while installing logstash-core (5.6.2), and Bundler cannot continue.  
Make sure that `gem install logstash-core -v '5.6.2'` succeeds before bundling.  
WARNING: can not set Session#timeout=(0) no session context

After trying to install the plugin, my logstash won't start anymore and gives the error:

Bundler::GemNotFound: Could not find gem 'logstash-output-email (\>= 0) java' in any of the gem sources listed in your Gemfile or installed on this machine.  
verify\_gemfile\_dependencies\_are\_found! at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:328  
each at org/jruby/RubyArray.java:1613  
verify\_gemfile\_dependencies\_are\_found! at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:307  
start at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:199  
resolve at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:182  
resolve at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:192  
specs at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:132  
specs\_for at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:177  
requested\_specs at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:166  
requested\_specs at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/environment.rb:18  
setup at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/runtime.rb:13  
setup at C:/Users/Admin/logstash-5.6.2/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler.rb:122  
setup! at C:/Users/Admin/logstash-5.6.2/lib/bootstrap/bundler.rb:67  
(root) at C:\Users\Admin\logstash-5.6.2\lib\bootstrap\environment.rb:u6708:

Even though this error message says that it can't find the gem in these sources, the files do contain the line gem "logstash-output-email". I'm really confused as to why I can't just install the plugin. Is there something I can do here to make sure the plugin get installed?

Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![jeroiraz](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@jeroiraz](https://discuss.elastic.co/u/jeroiraz)\
**Post date:** [October 12, 2017, 5:41pm UTC](https://discuss.elastic.co/t/cant-install-logstash-plugins-trying-to-install-them-breaks-the-logstash-installation/103689/2 "2017-10-12T17:41:35Z")

</div>

Same issue on macOS Sierra and elasticsearch plugin

---

<div class="post-metadata">

**Author:** ![A.McBride](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@A.McBride](https://discuss.elastic.co/u/A.McBride)\
**Post date:** [October 17, 2017, 10:03am UTC](https://discuss.elastic.co/t/cant-install-logstash-plugins-trying-to-install-them-breaks-the-logstash-installation/103689/3 "2017-10-17T10:03:23Z")

</div>

No help to be offered here? I'd really like to be able to install non-default plugins and searching for help has yielded nothing.

---

<div class="post-metadata">

**Author:** ![gezzi](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gezzi](https://discuss.elastic.co/u/gezzi)\
**Post date:** [November 10, 2017, 12:40am UTC](https://discuss.elastic.co/t/cant-install-logstash-plugins-trying-to-install-them-breaks-the-logstash-installation/103689/4 "2017-11-10T00:40:34Z")

</div>

I have the same issue with 5.5.3.  
c:\ELK\v553\logstash-5.5.3\>bin\logstash-plugin.bat install logstash-output-datadog\_metrics  
Validating logstash-output-datadog\_metrics  
Installing logstash-output-datadog\_metrics  
Error Bundler::InstallError, retrying 1/10  
An error occurred while installing logstash-core (5.5.3), and Bundler cannot continue.  
Make sure that `gem install logstash-core -v '5.5.3'` succeeds before bundling.

After trying many other recommendations, but shying away from complicated ruby steps (since i don't know ruby), eventually i did what the error says to try ... Make sure that `gem install logstash-core -v '5.5.3'` succeeds before bundling.

c:\ELK\v553\logstash-5.5.3\>vendor\jruby\bin\gem install logstash-core -v '5.5.3'  
jar dependencies for logstash-core-5.5.3-java.gemspec . . .  
org.apache.logging.log4j:log4j-api:2.6.2  
org.apache.logging.log4j:log4j-core:2.6.2  
com.fasterxml.jackson.core:jackson-core:2.7.4  
com.fasterxml.jackson.core:jackson-databind:2.7.4  
com.fasterxml.jackson.module:jackson-module-afterburner:2.7.4  
com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.7.4  
Successfully installed logstash-core-5.5.3-java  
1 gem installed

c:\ELK\v553\logstash-5.5.3\>bin\logstash-plugin.bat install logstash-output-datadog\_metrics  
Validating logstash-output-datadog\_metrics  
Installing logstash-output-datadog\_metrics  
Installation successful

(it was not that simple though. At first the above step "c:\ELK\v553\logstash-5.5.3\>vendor\jruby\bin\gem install logstash-core -v '5.5.3'" failed after downloading many gems because of a weird issue from a java jar that i am not sure how it reached!!!

ERROR: While executing gem ... (SystemCallError)  
Unknown error - Unknown Error (123) - :c:\XXX\lib\com\fasterxml\jackson\core\jackson-databind\2.7.4\jackson-databind-2.7.4.jar  
So i renamed XXX to YYY and ran again and it worked out.

---

<div class="post-metadata">

**Author:** ![gezzi](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gezzi](https://discuss.elastic.co/u/gezzi)\
**Post date:** [November 13, 2017, 7:29pm UTC](https://discuss.elastic.co/t/cant-install-logstash-plugins-trying-to-install-them-breaks-the-logstash-installation/103689/5 "2017-11-13T19:29:28Z")

</div>

maybe my response from a couple of days ago can help

---

<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:** [December 11, 2017, 7:29pm UTC](https://discuss.elastic.co/t/cant-install-logstash-plugins-trying-to-install-them-breaks-the-logstash-installation/103689/6 "2017-12-11T19:29:34Z")

</div>

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