Install specific plugin version


#1

How do I install a specific version of a plugin? plugin install --version fails because the plugin is locked at an older version. Uninstalling and then installing also fails.

I'm using logstash 1.5.0 from the deb repository:

$ dpkg -s logstash
Package: logstash
Status: install ok installed
Priority: extra
Section: default
Installed-Size: 130082
Maintainer: <jenkins@metal4.elasticsearch.org>
Architecture: all
Version: 1:1.5.0-1
Depends: logrotate
Conffiles:
 /etc/default/logstash 399f19c4d762840a36f6bc056c3739b8
 /etc/init.d/logstash 34a18dfa4c5e7dc78e622f937c39d28d
 /etc/logrotate.d/logstash 38425b942183178628577e120c95035d
Description: An extensible logging pipeline
License: Apache 2.0
Vendor: Elasticsearch
Homepage: http://www.elasticsearch.org/overview/logstash/

Installing a specific version fails:

$ sudo /opt/logstash/bin/plugin install --version 0.2.5 logstash-output-elasticsearch
Validating logstash-output-elasticsearch-0.2.5
Installing logstash-output-elasticsearch
Plugin not found, aborting
ERROR: Installation Aborted, message: You have requested:
  logstash-output-elasticsearch = 0.2.5

The bundle currently has logstash-output-elasticsearch locked at 0.2.4.
Try running `bundle update logstash-output-elasticsearch`

Uninstalling and then again installing the required version also fails:

$ sudo /opt/logstash/bin/plugin uninstall logstash-output-elasticsearch
Uninstalling logstash-output-elasticsearch

$ sudo /opt/logstash/bin/plugin install --version 0.2.5 logstash-output-elasticsearch
Validating logstash-output-elasticsearch-0.2.5
Installing logstash-output-elasticsearch
Plugin not found, aborting
ERROR: Installation Aborted, message: You have requested:
  logstash-output-elasticsearch = 0.2.5

The bundle currently has logstash-output-elasticsearch locked at 0.2.4.
Try running `bundle update logstash-output-elasticsearch`

(Suyog Rao) #2

Tracking it here: https://github.com/elastic/logstash/issues/3334


(system) #3