Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601294 - app-admin/logstash-bin-5.0.1 plugin (logstash-codec-multiline) install fails
Summary: app-admin/logstash-bin-5.0.1 plugin (logstash-codec-multiline) install fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-30 16:09 UTC by Thomas Stein
Modified: 2017-08-16 16:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2016-11-30 16:09:09 UTC
hello devs.

I'm trying to install a logstash 5.0.1 plugin but it fails with:

dev logstash # bin/logstash-plugin install logstash-codec-multiline
Validating logstash-codec-multiline
Installing logstash-codec-multiline
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core-event-java (5.0.1), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.0.1'` succeeds before bundling.
Error Bundler::InstallError, retrying 2/10
An error occurred while installing logstash-core-event-java (5.0.1), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.0.1'` succeeds before bundling.
Error Bundler::InstallError, retrying 3/10
An error occurred while installing logstash-core-event-java (5.0.1), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '5.0.1'` succeeds before bundling.
^Cdev logstash #

Don't know where to go from here. Actually logstash bin does not even have a ruby dependency. Installing ruby also does not fix the problem. Any Hints?

thanks and cheers
t.

Reproducible: Always
Comment 1 Patrick Lauer gentoo-dev 2016-11-30 16:36:34 UTC
logstash is written in JRuby. System ruby has nothing to do with it.

I'll try to reproduce, it might just be another upstream packaging problem (2.x had lots of issues with that :) )
Comment 2 Patrick Lauer gentoo-dev 2016-11-30 16:41:59 UTC
I can reproduce it, but logstash-core-event-java looks like the expected version. Sadness.
Comment 3 Thomas Stein 2016-11-30 18:37:25 UTC
Well, good to know nothing is wrong at my side. Thanks.
Comment 4 Thomas Stein 2017-01-09 10:50:33 UTC
Hola.

The same happens with logstash-bin-5.1.1. I'm not able to install any plugin.

Validating logstash-codec-multiline
Installing logstash-codec-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

Is this working for someone?

thanks and cheers
Comment 5 Thomas Stein 2017-01-12 14:19:39 UTC
Just were able to install the plugin in a *clean* install.

logstash # DEBUG=1 JARS_SKIP='true' bin/logstash-plugin install logstash-codec-multiline
DEBUG: exec /opt/logstash/vendor/jruby/bin/jruby --1.9 /opt/logstash/lib/pluginmanager/main.rb install logstash-codec-multiline
Looking if package named: logstash-codec-multiline exists at https://artifacts.elastic.co/downloads/logstash-plugins/logstash-codec-multiline/logstash-codec-multiline-5.1.1.zip
Package not found at: https://artifacts.elastic.co/downloads/logstash-plugins/logstash-codec-multiline/logstash-codec-multiline-5.1.1.zip
Validating logstash-codec-multiline
Installing logstash-codec-multiline
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
HTTP GET https://bundler.rubygems.org/api/v1/dependencies
HTTP 200 OK
Fetching gem metadata from https://rubygems.org/
...

...
Bundle complete! 114 Gemfile dependencies, 203 gems now installed.
Gems in the group development were not installed.
Bundled gems are installed into ./vendor/bundle.
Installation successful
Comment 6 WOLfgang Schricker 2017-03-06 20:49:27 UTC
(In reply to Thomas Stein from comment #5)
[...]
> logstash # DEBUG=1 JARS_SKIP='true' bin/logstash-plugin install
[...]

Thanks, the "JARS_SKIP='true'" is the solution for logstash-filter-translate also:

logstash # DEBUG=1 JARS_SKIP='true' bin/logstash-plugin install logstash-filter-translate
...
Bundle complete! 115 Gemfile dependencies, 204 gems now installed.
Gems in the group development were not installed.
Bundled gems are installed into ./vendor/bundle.
Installation successful
Comment 7 Tomáš Mózes 2017-03-20 07:56:39 UTC
Yes, it happens with 5.2.1 also. When you unpack logstash somewhere and run the plugin install, it works, but running from portage installed logstash failed.

I've at least added a note to the 5.2.2 bump:
https://github.com/gentoo/gentoo/pull/4251
Comment 8 Tomáš Mózes 2017-08-16 16:45:12 UTC
Please try https://github.com/gentoo/gentoo/commit/15b28a3312f35244dbe093946f127d046555f42a

You can now install plugins via eselect.