Logstash can't install the plugin


(Sitanxin) #1

I am trying to install 4 plugins for fresh logstash. But it does not work. The server can connect to internet.

Logstash: Fresh untar, did not change.
System:
[bpmuser@VM_148_227_centos logstash-5.0.2]$ cat /etc/redhat-release
CentOS release 6.8 (Final)

[bpmuser@VM_148_227_centos logstash-5.0.2]$ ./bin/logstash-plugin install logstash-input-kafka logstash-output-kafka logstash-input-jms logstash-output-jms
Validating logstash-input-kafka
Validating logstash-output-kafka
Validating logstash-input-jms
Validating logstash-output-jms
Installing logstash-input-kafka, logstash-output-kafka, logstash-input-jms, logstash-output-jms
Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core-plugin-api":
In snapshot (Gemfile.lock):
logstash-core-plugin-api (= 2.1.16)

In Gemfile:
logstash-devutils (~> 1.1) java depends on
logstash-core-plugin-api (~> 2.0) java

logstash-input-s3 (>= 0) java depends on
  logstash-mixin-aws (>= 0) java depends on
    logstash-core-plugin-api (<= 2.99, >= 1.60) java

<...>
logstash-output-jms (>= 0) java depends on
logstash-core-plugin-api (~> 1.0) java

logstash-core-plugin-api (>= 0) java

Running bundle update will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash-core":
In snapshot (Gemfile.lock):
logstash-core (= 5.0.2)

In Gemfile:
logstash-core-plugin-api (>= 0) java depends on
logstash-core (= 5.0.2) java

logstash-output-jms (>= 0) java depends on
  logstash-core (< 3.0.0, >= 2.0.0.snapshot) java

logstash-core (>= 0) java

Running bundle update will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
[bpmuser@VM_148_227_centos logstash-5.0.2]$ bundle update

[!] There was an error while loading logstash-core.gemspec: uninitialized constant RUBY_ENGINE. Bundler cannot continue.

from /app/logstash-5.0.2/logstash-core/logstash-core.gemspec:53

-------------------------------------------

if RUBY_ENGINE == "rbx"

# rubinius puts the ruby stdlib into gems.

-------------------------------------------

[bpmuser@VM_148_227_centos logstash-5.0.2]$


(system) #2

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