# Issues in installing gem file in logstash 5.2.1

**URL:** <https://discuss.elastic.co/t/issues-in-installing-gem-file-in-logstash-5-2-1/83256>\
**Category:** Logstash\
**Created:** [April 21, 2017, 9:48pm UTC](https://discuss.elastic.co/t/issues-in-installing-gem-file-in-logstash-5-2-1/83256 "2017-04-21T21:48:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkamalkool6](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@rajkamalkool6](https://discuss.elastic.co/u/rajkamalkool6)\
**Post date:** [April 21, 2017, 9:48pm UTC](https://discuss.elastic.co/t/issues-in-installing-gem-file-in-logstash-5-2-1/83256/1 "2017-04-21T21:48:55Z")

</div>

I am using logstash 5.2.1 and I am trying to install some ruby gems into my logstash. I have the gems already downloaded and its in my local directory. When I try to install it I am getting some connection refused error.

Could you please , advice do I need to add any property into my command.

**Command**

`./logstash-plugin install /root/software/Gems/beefcake-0.3.7.gem`

**Error**

`Something went wrong when installing /root/software/Gems/beefcake-0.3.7.gem, message: Connection refused - Connection refused`

Thanks in advance

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 24, 2017, 5:46am UTC](https://discuss.elastic.co/t/issues-in-installing-gem-file-in-logstash-5-2-1/83256/2 "2017-04-24T05:46:37Z")

</div>

Perhaps the gem has a dependency that Logstash is trying to install from [rubygems.org](http://rubygems.org). Perhaps you have to turn on the use of an HTTP proxy?

---

<div class="post-metadata">

**Author:** ![rajkamalkool6](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@rajkamalkool6](https://discuss.elastic.co/u/rajkamalkool6)\
**Post date:** [April 24, 2017, 7:17am UTC](https://discuss.elastic.co/t/issues-in-installing-gem-file-in-logstash-5-2-1/83256/3 "2017-04-24T07:17:38Z")

</div>

@magnusbaeck. Thank you Magnus for the kind resposne but I downloaded the gem from rubygems.orgam and trying to install the gems from my local directory. You can see my command in the question part.

Kindly correct my command If I am missing any syntax.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 24, 2017, 8:35am UTC](https://discuss.elastic.co/t/issues-in-installing-gem-file-in-logstash-5-2-1/83256/4 "2017-04-24T08:35:20Z")

</div>

Sure, but if the downloaded gem depends on another gem that you don't have installed it might still want to fetch it from [rubygems.org](http://rubygems.org). I don't have any good suggestions here.

---

<div class="post-metadata">

**Author:** ![rajkamalkool6](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@rajkamalkool6](https://discuss.elastic.co/u/rajkamalkool6)\
**Post date:** [April 24, 2017, 5:19pm UTC](https://discuss.elastic.co/t/issues-in-installing-gem-file-in-logstash-5-2-1/83256/5 "2017-04-24T17:19:56Z")

</div>

@magnusbaeck The gems which I am trying to install doesn't have any dependency. I am not sure why it was happening like this.

---

<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:** [May 22, 2017, 5:26pm UTC](https://discuss.elastic.co/t/issues-in-installing-gem-file-in-logstash-5-2-1/83256/6 "2017-05-22T17:26:58Z")

</div>

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