# Unable to install logstash-core gem

**URL:** https://discuss.elastic.co/t/unable-to-install-logstash-core-gem/126619
**Category:** Logstash
**Created:** [April 3, 2018, 6:21pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-core-gem/126619 "2018-04-03T18:21:25Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![annk](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@annk](https://discuss.elastic.co/u/annk)
#### Post date: [April 3, 2018, 6:21pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-core-gem/126619/1 "2018-04-03T18:21:26Z")

</div>

Hi ,

I am trying to install xpack on logstash server , but it complained about missing logstash-core gem.  
Tried to install logstash-core-6.2.2 after installing all dependencies .

$ gem list

\*\*\* LOCAL GEMS \*\*\*

jar-dependencies (0.3.12)  
json (1.8.3)  
manticore (0.5.4 java)  
minitest (5.8.3)  
rake (10.4.2)  
rdoc (4.2.1)  
ruby-maven (3.3.12)  
ruby-maven-libs (3.3.9)  
test-unit (3.1.5)

$gem install --no-user-install ./logstash-core-6.2.2-java.gem  
ERROR: Could not find a valid gem 'manticore' (\< 1.0.0, \>= 0.5.4) in any repository

Thanks

---

<div class="post-metadata">

### Author: ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)
#### Post date: [April 3, 2018, 6:39pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-core-gem/126619/2 "2018-04-03T18:39:26Z")

</div>

While Logstash uses the rubygems ecosystem for dependencies and plugins, it can't be installed in the normal way you would install a gem; you'll need to either [download a Logstash distribution from elastic.co](https://www.elastic.co/downloads/logstash), or [build an artifact from source](https://github.com/elastic/logstash#building-artifacts).

---

<div class="post-metadata">

### Author: ![annk](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@annk](https://discuss.elastic.co/u/annk)
#### Post date: [April 4, 2018, 9:20am UTC](https://discuss.elastic.co/t/unable-to-install-logstash-core-gem/126619/4 "2018-04-04T09:20:54Z")

</div>

I do have the latest logstash installed and running.  
I am trying to follow this documentation [https://www.elastic.co/guide/en/logstash/6.2/installing-xpack-log.html](https://www.elastic.co/guide/en/logstash/6.2/installing-xpack-log.html)

./logstash-plugin install file:///apps/x-pack-6.2.2.zip  
Installing file: /apps/x-pack-6.2.2.zip  
ERROR: An error occured when installing the: file:///apps/x-pack-6.2.2.zip, to have more information about the error add a DEBUG=1 before running the command., message: Bundler could not find compatible versions for gem "logstash-core":  
In snapshot (Gemfile.lock):  
logstash-core (= 6.2.3)

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

logstash-input-syslog (\>= 0) java depends on  
logstash-filter-grok (\>= 0) java depends on  
logstash-core (\>= 5.6.0) java

x-pack (= 6.2.2) java depends on  
logstash-core (= 6.2.2) 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.

---

<div class="post-metadata">

### Author: ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)
#### Post date: [April 4, 2018, 6:40pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-core-gem/126619/5 "2018-04-04T18:40:22Z")

</div>

It looks like you're attempting to install x-pack version 6.2.2 with Logstash version 6.2.3, but we need for them to have identical versions.

Is the system you're working on offline?

If it can be connected to the internet, using the default pack installer path will always get the right version-match:

```auto
bin/logstash-plugin install x-pack

```

---

<div class="post-metadata">

### Author: ![annk](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@annk](https://discuss.elastic.co/u/annk)
#### Post date: [April 5, 2018, 2:40pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-core-gem/126619/6 "2018-04-05T14:40:20Z")

</div>

thanks . I managed to install the correct version but I did get this (error?)

./logstash-plugin install file:///root/canvas/x-pack-6.2.3.zip  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Invalid date/time in zip entry  
Install successful

---

<div class="post-metadata">

### Author: ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)
#### Post date: [April 5, 2018, 5:43pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-core-gem/126619/7 "2018-04-05T17:43:28Z")

</div>

> [@annk](#):
>
> Invalid date/time in zip entry

This is annoying, but harmless; the Ruby zip implementation that we use to unzip the archive outputs this message directly to stdout whenever it encounters an invalid date, and the global x-pack build for 6.2.3 included a few components without their dates set.

[https://github.com/elastic/x-pack-logstash/issues/348](https://github.com/elastic/x-pack-logstash/issues/348)

---

<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: [May 3, 2018, 5:43pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-core-gem/126619/8 "2018-05-03T17:43:36Z")

</div>

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