# Cannot install plugin environment

**URL:** <https://discuss.elastic.co/t/cannot-install-plugin-environment/64853>\
**Category:** Logstash\
**Created:** [November 3, 2016, 11:44am UTC](https://discuss.elastic.co/t/cannot-install-plugin-environment/64853 "2016-11-03T11:44:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sizgiyaev](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sizgiyaev](https://discuss.elastic.co/u/sizgiyaev)\
**Post date:** [November 3, 2016, 11:44am UTC](https://discuss.elastic.co/t/cannot-install-plugin-environment/64853/1 "2016-11-03T11:44:18Z")

</div>

Hello,  
I'm trying to install the plugin envrionment for my logstash forwarders that are running logstash 5.0.  
Here is the out put i get:  
Validating logstash-filter-environment  
Installing logstash-filter-environment  
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-filter-environment (>= 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.0)

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

```
logstash-filter-environment (>= 0) java depends on
  logstash-core (< 2.0.0, >= 1.4.0) 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.  
Bundler could not find compatible versions for gem "logstash":  
In Gemfile:  
logstash-filter-environment (\>= 0) java depends on  
logstash (\< 2.0.0, \>= 1.4.0) java  
Could not find gem 'logstash (\< 2.0.0, \>= 1.4.0) java', which is required by gem 'logstash-filter-environment (\>= 0) java', in any of the sources.

How can it be handled. Or, am i missing something?

Thanks

---

<div class="post-metadata">

**Author:** ![sizgiyaev](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sizgiyaev](https://discuss.elastic.co/u/sizgiyaev)\
**Post date:** [November 9, 2016, 9:42am UTC](https://discuss.elastic.co/t/cannot-install-plugin-environment/64853/2 "2016-11-09T09:42:04Z")

</div>

Nobody experienced this issue???

---

<div class="post-metadata">

**Author:** ![walbag](https://avatars.discourse-cdn.com/v4/letter/w/b9e5f3/32.png) [@walbag](https://discuss.elastic.co/u/walbag)\
**Post date:** [February 7, 2017, 1:25am UTC](https://discuss.elastic.co/t/cannot-install-plugin-environment/64853/3 "2017-02-07T01:25:44Z")

</div>

Having the same issue. +1 When I install the ruby bundler and run bundle update I now get: Could not locate Gemfile

---

<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:** [July 6, 2017, 4:28am UTC](https://discuss.elastic.co/t/cannot-install-plugin-environment/64853/4 "2017-07-06T04:28:51Z")

</div>


