Unable to install logstash-core gem

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

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, or build an artifact from source.

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

./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.

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:

bin/logstash-plugin install x-pack

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

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

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