# Local GEM installation fails with logstash 5.0.1 on RHEL7

**URL:** <https://discuss.elastic.co/t/local-gem-installation-fails-with-logstash-5-0-1-on-rhel7/66517>\
**Category:** Logstash\
**Created:** [November 18, 2016, 10:19am UTC](https://discuss.elastic.co/t/local-gem-installation-fails-with-logstash-5-0-1-on-rhel7/66517 "2016-11-18T10:19:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnold79](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arnold79/32/141473_2.png) [@arnold79](https://discuss.elastic.co/u/arnold79)\
**Post date:** [November 18, 2016, 10:19am UTC](https://discuss.elastic.co/t/local-gem-installation-fails-with-logstash-5-0-1-on-rhel7/66517/1 "2016-11-18T10:19:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![arnold79](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arnold79/32/141473_2.png) [@arnold79](https://discuss.elastic.co/u/arnold79)\
**Post date:** [November 18, 2016, 3:44pm UTC](https://discuss.elastic.co/t/local-gem-installation-fails-with-logstash-5-0-1-on-rhel7/66517/2 "2016-11-18T15:44:55Z")

</div>

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.

---

<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 16, 2016, 3:44pm UTC](https://discuss.elastic.co/t/local-gem-installation-fails-with-logstash-5-0-1-on-rhel7/66517/3 "2016-12-16T15:44:58Z")

</div>

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