# Cannot install Logstash plugin from offline pack

**URL:** <https://discuss.elastic.co/t/cannot-install-logstash-plugin-from-offline-pack/83407>\
**Category:** Logstash\
**Created:** [April 24, 2017, 11:47am UTC](https://discuss.elastic.co/t/cannot-install-logstash-plugin-from-offline-pack/83407 "2017-04-24T11:47:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![franhoeyemac](https://avatars.discourse-cdn.com/v4/letter/f/c68b51/32.png) [@franhoeyemac](https://discuss.elastic.co/u/franhoeyemac)\
**Post date:** [April 24, 2017, 11:47am UTC](https://discuss.elastic.co/t/cannot-install-logstash-plugin-from-offline-pack/83407/1 "2017-04-24T11:47:18Z")

</div>

Hello,

I've prepared an offline pack on my computer by running the following command:

> `bin\logstash-plugin prepare-offline-pack --output syslog-output.zip logstash-output-syslog`

When I move the zip to the server with no internet access I run the following command:

> `bin\logstash-plugin install file:///D:/ELK/logstash-5.3.0/offline-packages/syslog-output.zip`

I get the error:

> `Could not find gem 'logstash-output-syslog (= 3.0.1) java' in any of the gem sources listed in your Gemfile or installed on this machine.`

I've turned on Debug=1, full output below. It looks like there is a problem unpacking the zip file, possible a clash between unix and windows path formats?

Local environment:

- Windows Server 2016
- Java version 1.8.0\_121
- Logstash 5.3.0

Full debug output is here - [Local file: /D:/ELK/logstash-5.3.0/offline-packages/syslog-output.zipInstallin - Pastebin.com](https://pastebin.com/FfBmTdWs) (sorry it was too long for the post)

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [April 28, 2017, 1:56pm UTC](https://discuss.elastic.co/t/cannot-install-logstash-plugin-from-offline-pack/83407/2 "2017-04-28T13:56:32Z")

</div>

There was an issue with Logstash on 5.3.0 creating corrupted pack, Can you try with Logstash 5.3.1?

---

<div class="post-metadata">

**Author:** ![Toca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toca/32/18151_2.png) [@Toca](https://discuss.elastic.co/u/Toca)\
**Post date:** [May 8, 2017, 2:27pm UTC](https://discuss.elastic.co/t/cannot-install-logstash-plugin-from-offline-pack/83407/3 "2017-05-08T14:27:31Z")

</div>

I'm encountering the same issue in 5.4.0, has the fix applied in 5.3.1 been carried forward to 5.4.0?

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [May 10, 2017, 7:02pm UTC](https://discuss.elastic.co/t/cannot-install-logstash-plugin-from-offline-pack/83407/4 "2017-05-10T19:02:51Z")

</div>

The fix should have been included in 5.4.0, [https://github.com/elastic/logstash/pull/6840](https://github.com/elastic/logstash/pull/6840) (merged in 5.x before we cut the release branch)

@toca you are experiencing the same issue on windows?

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [May 11, 2017, 12:53pm UTC](https://discuss.elastic.co/t/cannot-install-logstash-plugin-from-offline-pack/83407/5 "2017-05-11T12:53:12Z")

</div>

OK, I can confirm that the fix was not included in 5.4.0. The bug original from paquet a gem that we are using to manage the offline dependencies. The problem is fixed with paquet 0.2.1 but LS 5.4 ships with [paquet 0.2.0](https://github.com/elastic/logstash/blob/v5.4.0/Gemfile.jruby-1.9.lock#L527)

The problem is fixed in LS 5.4.1, but in the meantime, you can generate a pack with LS 5.3.1 and use it in LS 5.4.0.

---

<div class="post-metadata">

**Author:** ![Toca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toca/32/18151_2.png) [@Toca](https://discuss.elastic.co/u/Toca)\
**Post date:** [May 12, 2017, 7:06am UTC](https://discuss.elastic.co/t/cannot-install-logstash-plugin-from-offline-pack/83407/6 "2017-05-12T07:06:32Z")

</div>

Thanks Pier

---

<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 9, 2017, 7:20am UTC](https://discuss.elastic.co/t/cannot-install-logstash-plugin-from-offline-pack/83407/7 "2017-06-09T07:20:23Z")

</div>

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