# Logstash-plugin command for preparing offline pack is not working on 8.11.3

**URL:** https://discuss.elastic.co/t/logstash-plugin-command-for-preparing-offline-pack-is-not-working-on-8-11-3/349302
**Category:** Logstash
**Created:** [December 13, 2023, 10:06pm UTC](https://discuss.elastic.co/t/logstash-plugin-command-for-preparing-offline-pack-is-not-working-on-8-11-3/349302 "2023-12-13T22:06:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ebiibe82](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@ebiibe82](https://discuss.elastic.co/u/ebiibe82)
#### Post date: [December 13, 2023, 10:06pm UTC](https://discuss.elastic.co/t/logstash-plugin-command-for-preparing-offline-pack-is-not-working-on-8-11-3/349302/1 "2023-12-13T22:06:33Z")

</div>

Hello All,

I am new to Elastic Stack. I have installed Logstash _8.11.3_ using deb package on Ubuntu 22.04 Server. On top of it, I have installed _logstash-output-syslog_ plugin. Till this point, it works fine. After this, I am trying to prepare offline package for this pluing using the following command:

/usr/share/logstash/bin/logstash prepare-offline-pack logstash-output-syslog

On running this command, I am facing the following error:  
_Gem::LoadError: You have already activated ffi 1.16.3, but your Gemfile requires ffi 1.15.5....._

Is it a known problem or its a local issue at my end? If it seems to be a local issue, kindly let me know if I am doing anything wrong.

Thanks.

---

<div class="post-metadata">

### Author: ![sthigpen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sthigpen/32/51276_2.png) [@sthigpen](https://discuss.elastic.co/u/sthigpen)
#### Post date: [January 2, 2024, 5:56pm UTC](https://discuss.elastic.co/t/logstash-plugin-command-for-preparing-offline-pack-is-not-working-on-8-11-3/349302/2 "2024-01-02T17:56:10Z")

</div>

This works as a temporary workaround:

gem install ffi --version='1.15.5' ## needed?  
export PATH=/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/ffi-1.15.5-java/lib/ffi:$PATH ## needed?

use this file from logstash-8.11.2:  
/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/specifications/default/ffi-1.15.4-java.gemspec

and copy into logstash-8.11.3 as:  
/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/specifications/default/ffi-1.15.5-java.gemspec

sed -i 's/1.15.4/1.15.5/g' ffi-1.15.5-java.gemspec

move/rename: /usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/specifications/default/ffi-1.16.3-java.gemspec

systemctl restart logstash # ...etc..

---

<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: [January 30, 2024, 5:56pm UTC](https://discuss.elastic.co/t/logstash-plugin-command-for-preparing-offline-pack-is-not-working-on-8-11-3/349302/3 "2024-01-30T17:56:34Z")

</div>

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