Logstash not finding installed gems

Hi, I'm new to pretty the entire stack so learning. I'm having trouble getting logstash to recognize an installed gem that I want to use. I don't know if it matters but the gem was installed in the shared folder for some reason. Any help would be greatly appreciated !

The gem was installed here:
/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/gems/woocommerce_api-1.4.0/lib/woocommerce_api

I've added an entry to logstash Gemfile :
gem 'woocommerce_api', '~> 1.4'

Result of executing ./logstash -f test.conf
Bundler::GemNotFound: Could not find gem 'woocommerce_api (~> 1.4) java' in any of the gem sources listed in your Gemfile or installed on this machine.
verify_gemfile_dependencies_are_found! at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:328
each at org/jruby/RubyArray.java:1613
verify_gemfile_dependencies_are_found! at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:307
start at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:199
resolve at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/resolver.rb:182
resolve at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:192
specs at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:132
specs_for at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:177
requested_specs at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/definition.rb:166
requested_specs at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/environment.rb:18
setup at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/runtime.rb:13
setup at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler.rb:122
setup! at /usr/share/logstash/lib/bootstrap/bundler.rb:64
(root) at /usr/share/logstash/lib/bootstrap/environment.rb:67

I'm on logstash 5.2.0

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