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

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.

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..

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