# 5.2 Offline Plugin Install

**URL:** https://discuss.elastic.co/t/5-2-offline-plugin-install/73665
**Category:** Logstash
**Created:** [February 2, 2017, 11:47am UTC](https://discuss.elastic.co/t/5-2-offline-plugin-install/73665 "2017-02-02T11:47:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![NirKa](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@NirKa](https://discuss.elastic.co/u/NirKa)
#### Post date: [February 2, 2017, 11:47am UTC](https://discuss.elastic.co/t/5-2-offline-plugin-install/73665/1 "2017-02-02T11:47:38Z")

</div>

Hi,

I'm trying to use the new offline plugin install feature and it doesn't seem to work... looks like I'm missing something.  
I created a custom plugin that pushes events to google pub sub.

Steps:

1. Installed the plugin on a staging server (with internet access) and checked that its working.

2. packed the plugin with command:  
`bin/logstash-plugin prepare-offline-pack logstash-output-google-cloud-pubsub`

That generated the compressed file: logstash-offline-plugins-5.2.0.zip

1. I copied the file to the remote server to logstash-5.2.0 installation directory and executed command:  
`bin/logstash-plugin install file:///home/bi/logstash-5.2.0/logstash-offline-plugins-5.2.0.zip`

got this error:  
ERROR: File not found for: file:///home/bi/logstash-5.2.0/logstash-offline-plugins-5.2.0.zip, message: Can't file local file /home/bi/logstash-5.2.0/logstash-offline-plugins-5.2.0.zip

1. It looks like it doesn't like the "file://" part so i tried this:  
`bin/logstash-plugin install /home/bi/logstash-5.2.0/logstash-offline-plugins-5.2.0.zip`

got this error:  
Validating /home/bi/logstash-5.2.0/logstash-offline-plugins-5.2.0.zip  
Unable to download data from [https://rubygems.org](https://rubygems.org) - Errno::ECONNREFUSED: Connection refused - Connection refused ([https://api.rubygems.org/latest\_specs.4.8.gz](https://api.rubygems.org/latest_specs.4.8.gz))

1. Tried to install with --no-verify:  
`bin/logstash-plugin install --no-verify /home/bi/logstash-5.2.0/logstash-offline-plugins-5.2.0.zip`

got this error:  
Installing /home/bi/logstash-5.2.0/logstash-offline-plugins-5.2.0.zip  
Plugin not found, aborting  
ERROR: Installation Aborted, message: Could not find gem '/home/bi/logstash-5.2.0/logstash-offline-plugins-5.2.0.zip (\>= 0) java' in any of the gem sources listed in your Gemfile or installed on this machine.

Any idea what is the issue here?  
Thanks

---

<div class="post-metadata">

### Author: ![NirKa](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@NirKa](https://discuss.elastic.co/u/NirKa)
#### Post date: [February 2, 2017, 1:02pm UTC](https://discuss.elastic.co/t/5-2-offline-plugin-install/73665/2 "2017-02-02T13:02:55Z")

</div>

never mine, stupid mistake - path wasn't correct.

---

<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: [March 2, 2017, 1:03pm UTC](https://discuss.elastic.co/t/5-2-offline-plugin-install/73665/3 "2017-03-02T13:03:18Z")

</div>

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