lusis / chef-logstash

Semi-official Logstash cookbook
Other
271 stars 353 forks source link

tarball plugin install error minitar #483

Open danhiris opened 7 years ago

danhiris commented 7 years ago

Since the loggly plugin I need is a newer version than the native install plugin, I am trying to use the 2.1.1 version from elasticsearch, however, that is causing ruby errors in everything logstash related.

ie:


/opt/logstash/5.5.0/logstash/bin/plugin list --verbose
The use of bin/plugin is deprecated and will be removed in a feature release. Please use bin/logstash-plugin.
**Gem::LoadError: You have already activated minitar 0.6.1, but your Gemfile requires minitar 0.5.4. Prepending `bundle exec` to your command may solve this.**
    setup at /opt/logstash/5.5.0/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/runtime.rb:34
     each at org/jruby/RubyArray.java:1613
     each at /opt/logstash/5.5.0/logstash/vendor/jruby/lib/ruby/1.9/forwardable.rb:201
    setup at /opt/logstash/5.5.0/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler/runtime.rb:19
    setup at /opt/logstash/5.5.0/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.9.10/lib/bundler.rb:122
   setup! at /opt/logstash/5.5.0/logstash/lib/bootstrap/bundler.rb:64
  execute at /opt/logstash/5.5.0/logstash/lib/pluginmanager/list.rb:17
      run at /opt/logstash/5.5.0/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67
  execute at /opt/logstash/5.5.0/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/subcommand/execution.rb:11
      run at /opt/logstash/5.5.0/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67
      run at /opt/logstash/5.5.0/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132
   (root) at /opt/logstash/5.5.0/logstash/lib/pluginmanager/main.rb:43
illia-sh commented 7 years ago

bin/plugin hardcoded in https://github.com/lusis/chef-logstash/blob/master/providers/plugins.rb :(