Logstash start Gem::LoadError:

New to ELK here. I am following install instructions for Logstash on Ubuntu 16.04. Elasticsearch and Kibana are already installed and function properly. When I run DEBUG=1 bin/logstash -e 'input { stdin { } } output { stdout {} }' from /usr/share/logstash I get the following error:

DEBUG: exec /usr/share/logstash/vendor/jruby/bin/jruby /usr/share/logstash/lib/bootstrap/environment.rb logstash/runner.rb -e input { stdin { } } output { stdout {} }
Gem::LoadError: You have already activated jar-dependencies 0.3.12, but your Gemfile requires jar-dependencies 0.3.11. Prepending `bundle exec` to your command may solve this.
  block in setup at /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/bundler-1.9.10/lib/bundler/runtime.rb:34
            each at org/jruby/RubyArray.java:1734
            each at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/forwardable.rb:189
           setup at /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/bundler-1.9.10/lib/bundler/runtime.rb:19
           setup at /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/bundler-1.9.10/lib/bundler.rb:122
          setup! at /usr/share/logstash/lib/bootstrap/bundler.rb:57
          <main> at /usr/share/logstash/lib/bootstrap/environment.rb:63

It seems there are dependency issues here? I installed logstash from the repositories, version 6.1.1-1. I googled around and couldn't find much to answer my question to why this doesn't work.

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