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

bin/plugin update fails on a fresh packaged release #3062

Closed jsvd closed 9 years ago

jsvd commented 9 years ago

error was:

C:\logstash-1.5.0-rc3.snapshot4>bin\plugin update
ERROR: Update is not supported for manually defined plugins or local .gem plugin
 installations:

C:\logstash-1.5.0-rc3.snapshot4>
ph commented 9 years ago

Can you add the content of you gemfile ?

ph commented 9 years ago

Nevermind, this also fail on macos, updated the title.

ph commented 9 years ago

Another error when doing

bin/plugin uninstall logstash-input-stdin
bin/plugin update
stash-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, logstash-patterns-core
Plugin not found, aborting
ERROR: Updated Aborted, message: Could not find gem 'logstash-input-stdin'.
Did you mean logstash-input-redis?
ph commented 9 years ago

@jsvd I have updated the PR to fix the uninstall/update behavior.

/tmp ❯❯❯ cd logstash-1.5.0-rc3.snapshot4                                                                                                                                                                                                                                                                                                                                ⏎
/t/logstash-1.5.0-rc3.snapshot4 ❯❯❯ patch -p1 < ../3059.diff
patching file lib/logstash/pluginmanager/uninstall.rb
/t/logstash-1.5.0-rc3.snapshot4 ❯❯❯ patch -p1 < ../3063.diff
patching file lib/logstash/pluginmanager/update.rb
/t/logstash-1.5.0-rc3.snapshot4 ❯❯❯ bin/plugin list stdin                                                                                                                                                                                                                                                                                                               ⏎
logstash-input-stdin
/t/logstash-1.5.0-rc3.snapshot4 ❯❯❯ bin/plugin uninstall logstash-input-stdin
Uninstalling logstash-input-stdin

/t/logstash-1.5.0-rc3.snapshot4 ❯❯❯ bin/plugin update
Updating logstash-codec-collectd, logstash-codec-dots, logstash-codec-edn, logstash-codec-line, logstash-codec-edn_lines, logstash-codec-es_bulk, logstash-codec-fluent, logstash-codec-graphite, logstash-codec-json, logstash-codec-json_lines, logstash-codec-msgpack, logstash-patterns-core, 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-input-generator, logstash-output-null, 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-mutate, logstash-filter-multiline, 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-tcp, logstash-input-graphite, logstash-input-heartbeat, 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-syslog, logstash-input-twitter, logstash-input-udp, logstash-input-unix, logstash-input-xmpp, logstash-input-zeromq, logstash-output-cloudwatch, logstash-output-file, logstash-output-csv, logstash-output-elasticsearch, logstash-output-elasticsearch_http, logstash-output-email, logstash-output-exec, 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-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
No plugin updated