# Logstash can't install the plugin

**URL:** <https://discuss.elastic.co/t/logstash-cant-install-the-plugin/68176>\
**Category:** Logstash\
**Created:** [December 6, 2016, 1:47pm UTC](https://discuss.elastic.co/t/logstash-cant-install-the-plugin/68176 "2016-12-06T13:47:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sitanxin](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sitanxin](https://discuss.elastic.co/u/sitanxin)\
**Post date:** [December 6, 2016, 1:47pm UTC](https://discuss.elastic.co/t/logstash-cant-install-the-plugin/68176/1 "2016-12-06T13:47:50Z")

</div>

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]$

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 3, 2017, 1:48pm UTC](https://discuss.elastic.co/t/logstash-cant-install-the-plugin/68176/2 "2017-01-03T13:48:08Z")

</div>

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