Local GEM installation fails with logstash 5.0.1 on RHEL7

Hi All,

Currently have an issue with installing a local GEM file, which worked in the previous editions like a charm.

We want to install a local GEM file, which delivers us a 'logstash-codec-leef' ( a fork with minor changes from logstash-codec-cef).
We created / updated the code for implementing with logstash 5.x.x at https://www.github.com/AVWSolutions/logstash-codec-leef. Our tests and installation works on an internet connected system.

Now we want to implement this locally (without internet connectivity ) with the installation options that are available (pack, unpack or just gem) , unluckily both fail.

We also tried to compile the gem without deps, but that wasn't working either.

  • logstash-plugin --local logstash-codec-leef
    Installing logstash-codec-leef
    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.

bin/logstash-plugin install --local --no-verify /tmp/logstash-codec-leef-3.0.1-java.gem
Installing logstash-codec-leef
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

Setting the HTTP_PROXY option isn't possible, since we install it within a protected/isolated datacenter network.

How can we install this package without internet connectivity ?

Hi all,

Here by an update that the codec is now working by ignoring the above errors and fixing a typo (missing : ) in the code, which jruby syntax checker didn't mentioned ( jruby -c returned Syntax OK, but debug solved the case)

Still this is a workaround rather then a solution.

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