# Cannot install local plugin without internet connection

**URL:** <https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673>\
**Category:** Logstash\
**Created:** [May 4, 2018, 6:52pm UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673 "2018-05-04T18:52:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![smbullet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smbullet/32/27833_2.png) [@smbullet](https://discuss.elastic.co/u/smbullet)\
**Post date:** [May 4, 2018, 6:52pm UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673/1 "2018-05-04T18:52:44Z")

</div>

I'm trying to install a locally built plugin but for some reason it's trying to connect to [artifacts.elastic.co](http://artifacts.elastic.co):

```
$ sudo bin/logstash-plugin install /path/to/my/plugin-1.0.0-java.gem
ERROR: Something went wrong when installing /path/to/my/plugin-1.0.0-java.gem, message: Failed to open TCP connection to artifacts.elastic.co:443 (execution expired)

```

This machine isn't connected to the internet so obviously this failed. My question is why do I need internet access to install a locally built plugin?

---

<div class="post-metadata">

**Author:** ![solo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/solo/32/29084_2.png) [@solo](https://discuss.elastic.co/u/solo)\
**Post date:** [May 15, 2018, 9:09am UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673/2 "2018-05-15T09:09:45Z")

</div>

I also have the same problem.  
I even tried with --local option but it didn't help.  
Did you find any solution?

---

<div class="post-metadata">

**Author:** ![smbullet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smbullet/32/27833_2.png) [@smbullet](https://discuss.elastic.co/u/smbullet)\
**Post date:** [May 15, 2018, 3:00pm UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673/3 "2018-05-15T15:00:21Z")

</div>

Unfortunately I did not. I had to set up a proxy on my machine to get it to connect to [artifacts.elastic.co](http://artifacts.elastic.co). I should probably report this bug.

---

<div class="post-metadata">

**Author:** ![motts](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@motts](https://discuss.elastic.co/u/motts)\
**Post date:** [May 15, 2018, 8:30pm UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673/4 "2018-05-15T20:30:31Z")

</div>

I am running into a similar issue with logstash plugins installing, but logstash will not start after the plugin is installed stating that logstash cannot find the plugin, but when I run the command to list installed plugins, the downloaded one is on that list 😕 very frustrating. I have tried multiple downloadable plugins and none of them are "found" by logstash, but show on the list of installed plugins 😕

---

<div class="post-metadata">

**Author:** ![solo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/solo/32/29084_2.png) [@solo](https://discuss.elastic.co/u/solo)\
**Post date:** [May 16, 2018, 8:45am UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673/5 "2018-05-16T08:45:03Z")

</div>

motts: With internet connection inactive?

---

<div class="post-metadata">

**Author:** ![motts](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@motts](https://discuss.elastic.co/u/motts)\
**Post date:** [May 16, 2018, 1:10pm UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673/6 "2018-05-16T13:10:38Z")

</div>

With internet I am having issues installing any plugins. I have 2 threads open, but none of them have been looked at. One closed because it was open too long without a comment ☹

> [@Logstash downloadable filter plugins are not found by Logstash](https://discuss.elastic.co/t/logstash-downloadable-filter-plugins-are-not-found-by-logstash/127539):
>
> Hello, I am using Logstash 6.2 currently and I am trying to get any downloadable filters to work, but when starting Logstash, I get an error stating that all of the downloaded filters cannot be found. Here is an example for the Alter plugin: [ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::PluginLoadingError", :message=\>"Couldn't find any filter plugin named 'alter'. Are you sure this is correct? Trying to loa…

and

> [@Logstash Alter filter not found](https://discuss.elastic.co/t/logstash-alter-filter-not-found/125278/6):
>
> This thread has been open almost a month now. Has anyone looked into this?

---

<div class="post-metadata">

**Author:** ![solo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/solo/32/29084_2.png) [@solo](https://discuss.elastic.co/u/solo)\
**Post date:** [May 16, 2018, 1:20pm UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673/7 "2018-05-16T13:20:51Z")

</div>

Motts: Because you are installing it incorrectly. What OS are you using?

Here is how to install a filter on Ubuntu Linux, see step nr 4 here:  
[https://nettport.com/en/kibana/logstash/logstash\_installation\_ubuntu.php](https://nettport.com/en/kibana/logstash/logstash_installation_ubuntu.php)

---

<div class="post-metadata">

**Author:** ![motts](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@motts](https://discuss.elastic.co/u/motts)\
**Post date:** [May 16, 2018, 3:12pm UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673/8 "2018-05-16T15:12:27Z")

</div>

I am using CentOS and LogStash 6.2.

I am installing the plugins the same way I have for LS 2.4 and 5.6, and those version never had issues. When I migrated to 6.x, I began to have problems with installing plugins though LS would say they were installed.

> Adding plugins to your deploymentedit  
> The most common situation when dealing with plugin installation is when you have access to internet. Using this method, you will be able to retrieve plugins hosted on the public repository ([RubyGems.org](http://RubyGems.org)) and install on top of your Logstash installation.
> 
> bin/logstash-plugin install logstash-output-kafka  
> Once the plugin is successfully installed, you can start using it in your configuration file.

REF: [Working with plugins | Logstash Reference [6.2] | Elastic](https://www.elastic.co/guide/en/logstash/6.2/working-with-plugins.html)

So, I should be installing the plugin with

> /bin/logstash-plugin install logstash-filter-alter

Logstash will run fine up until it gets to code that has a downloaded filter, then it will crash saying the filter is not installed. If I comment out the downloaded filter in the filter file, LS will restart without issues.

Here is logstash saying the filter is there:

[root@elk-logstash-lab02 /]# /usr/share/logstash/bin/logstash-plugin list filter  
logstash-filter-aggregate  
logstash-filter-alter  
logstash-filter-anonymize  
logstash-filter-cidr

Here is the error:

> [2018-05-16T11:05:09,854][ERROR][logstash.plugins.registry] Tried to load a plugin's code, but failed. {:exception=\>#\<LoadError: no such file to load -- logstash/filters/alter\>, :path=\>"logstash/filters/alter", :type=\>"filter", :name=\>"alter"}  
> [2018-05-16T11:05:09,859][FATAL][logstash.runner] The given configuration is invalid. Reason: Couldn't find any filter plugin named 'alter'. Are you sure this is correct? Trying to load the alter filter plugin resulted in this error: no such file to load -- logstash/filters/alter

Very frustrating.

---

<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:** [June 13, 2018, 3:12pm UTC](https://discuss.elastic.co/t/cannot-install-local-plugin-without-internet-connection/130673/9 "2018-06-13T15:12:36Z")

</div>

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