elastic / logstash

Logstash - transport and process your logs, events, or other data
https://www.elastic.co/products/logstash
Other
14.28k stars 3.51k forks source link

packaged install fails to run with Bundler::InvalidOption #2698

Closed joekiller closed 9 years ago

joekiller commented 9 years ago

Running logstash with a RPM install from master fails with the following:

$ cat /var/log/logstash/logstash.*
Bundler::InvalidOption: There are no gemspecs at /opt/logstash.
         gemspec at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.8.3/lib/bundler/dsl.rb:62
          (eval) at /opt/logstash/Gemfile:5
   instance_eval at org/jruby/RubyBasicObject.java:1545
    eval_gemfile at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.8.3/lib/bundler/dsl.rb:32
        evaluate at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.8.3/lib/bundler/dsl.rb:10
           build at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.8.3/lib/bundler/definition.rb:25
      definition at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.8.3/lib/bundler.rb:155
           setup at /opt/logstash/vendor/bundle/jruby/1.9/gems/bundler-1.8.3/lib/bundler.rb:118
  bundler_setup! at /opt/logstash/lib/logstash/environment.rb:112
          (root) at /opt/logstash/lib/logstash/runner.rb:8

This was introduced with commit 647042c3f924b09e2310fb37f60cf45060070371

hinnerk commented 9 years ago

This is most likely the same (branch 1.5, head at 48f0fa5e89c001125094bbe20e1485e1188e5819):

$ /opt/logstash/bin/plugin update
Updating logstash-codec-collectd, logstash-codec-dots, logstash-codec-edn, logstash-codec-edn_lines, logstash-codec-es_bulk, logstash-codec-fluent, logstash-codec-graphite, logstash-codec-json, logstash-codec-json_lines, logstash-codec-line, logstash-codec-msgpack, logstash-codec-multiline, logstash-codec-netflow, logstash-codec-oldlogstashjson, logstash-codec-plain, logstash-codec-rubydebug, logstash-filter-anonymize, logstash-filter-checksum, logstash-filter-clone, logstash-filter-csv, logstash-filter-date, logstash-filter-dns, logstash-filter-drop, logstash-filter-fingerprint, logstash-filter-geoip, logstash-filter-grok, logstash-filter-json, logstash-filter-kv, logstash-filter-metrics, logstash-filter-multiline, logstash-filter-mutate, logstash-filter-ruby, logstash-filter-sleep, logstash-filter-split, logstash-filter-syslog_pri, logstash-filter-throttle, logstash-filter-urldecode, logstash-filter-useragent, logstash-filter-uuid, logstash-filter-xml, logstash-input-couchdb_changes, logstash-input-elasticsearch, logstash-input-eventlog, logstash-input-exec, logstash-input-file, logstash-input-ganglia, logstash-input-gelf, logstash-input-generator, logstash-input-graphite, logstash-input-imap, logstash-input-irc, logstash-input-kafka, logstash-input-log4j, logstash-input-lumberjack, logstash-input-pipe, logstash-input-rabbitmq, logstash-input-redis, logstash-input-s3, logstash-input-snmptrap, logstash-input-sqs, logstash-input-stdin, logstash-input-syslog, logstash-input-tcp, logstash-input-twitter, logstash-input-udp, logstash-input-unix, logstash-input-xmpp, logstash-input-zeromq, logstash-output-cloudwatch, logstash-output-csv, logstash-output-elasticsearch, logstash-output-email, logstash-output-exec, logstash-output-file, logstash-output-ganglia, logstash-output-gelf, logstash-output-graphite, logstash-output-hipchat, logstash-output-http, logstash-output-irc, logstash-output-juggernaut, logstash-output-kafka, logstash-output-lumberjack, logstash-output-nagios, logstash-output-nagios_nsca, logstash-output-null, logstash-output-opentsdb, logstash-output-pagerduty, logstash-output-pipe, logstash-output-rabbitmq, logstash-output-redis, logstash-output-s3, logstash-output-sns, logstash-output-sqs, logstash-output-statsd, logstash-output-stdout, logstash-output-tcp, logstash-output-udp, logstash-output-xmpp, logstash-output-zeromq
Error Bundler::InvalidOption, retrying 1/10
Error Bundler::InvalidOption, retrying 2/10
Error Bundler::InvalidOption, retrying 3/10
Error Bundler::InvalidOption, retrying 4/10
Error Bundler::InvalidOption, retrying 5/10
Error Bundler::InvalidOption, retrying 6/10
Error Bundler::InvalidOption, retrying 7/10
Error Bundler::InvalidOption, retrying 8/10
Error Bundler::InvalidOption, retrying 9/10
Error Bundler::InvalidOption, retrying 10/10
Too many retries, aborting, caused by Bundler::InvalidOption
suyograo commented 9 years ago

rebuilt rpm from the tip of master after recent fixes went in (https://github.com/elasticsearch/logstash/issues/2714). Could not reproduce this. Please open this or a new issue. Thanks for all your help @joekiller and @hinnerk

hinnerk commented 9 years ago

Commit 4aa014d builds and can successfully run /opt/logstash/bin/plugin update, but the installation of additional plugins fails:

logstash-output-riemann:

/opt/logstash/bin/plugin install logstash-output-riemann
 Validating logstash-output-riemann
Installing logstash-output-riemann
Plugin not found, aborting
Installation aborted

logstash-filter-translate:

/opt/logstash/bin/plugin install logstash-filter-translate
Validating logstash-filter-translate
Installing logstash-filter-translate
Plugin not found, aborting
Installation aborted

As this is most likely another bug, this issue should most probably stay closed.