I have performed logstash testing on version 5.6.15 and 5.6.13. In both the versions we have encountered below errors .
Error
[ Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core (5.6.15), and Bundler cannot continue.]
Below are the steps executed.
#gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
# curl -sSL https://get.rvm.io | bash -s stable --ruby
# rvm install "jruby-1.7.27"
Searching for binary rubies, this might take some time.
Found remote file https://repo1.maven.org/maven2/org/jruby/jruby-dist/1.7.27/jruby-dist-1.7.27-bin.tar.gz
Checking requirements for centos.
Requirements installation successful.
jruby-1.7.27 - #configure
jruby-1.7.27 - #download
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21.6M 100 21.6M 0 0 318k 0 0:01:09 0:01:09 --:--:-- 428k
No checksum for downloaded archive, recording checksum in user configuration.
jruby-1.7.27 - #validate archive
jruby-1.7.27 - #extract
jruby-1.7.27 - #validate binary
jruby-1.7.27 - #setup
jruby-1.7.27 - #gemset created /usr/local/rvm/gems/jruby-1.7.27@global
jruby-1.7.27 - #importing gemset /usr/local/rvm/gemsets/jruby/global.gems...
Error running 'gemset_import_list jruby-openssl jruby-launcher gem-wrappers rubygems-bundler rake rvm bundler rvm rubygems-bundler',
please read /usr/local/rvm/log/1554442923_jruby-1.7.27/gemsets.import.global.log
jruby-1.7.27 - #generating global wrappers.......
jruby-1.7.27 - #uninstalling gem rubygems-bundler-1.4.5.
jruby-1.7.27 - #uninstalling gem rvm-1.11.3.9.
jruby-1.7.27 - #gemset created /usr/local/rvm/gems/jruby-1.7.27
jruby-1.7.27 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
jruby-1.7.27 - #generating default wrappers.......
# rvm list
=* jruby-1.7.27 [ x86_64 ]
# rake --version
rake, version 10.1.0
# bundle -v
-bash: bundle: command not found
# pwd
/root/logstash_5.6.15/logstash-5.6.15
# rake bootstrap --trace
** Invoke vendor:jruby (first_time)
** Execute vendor:jruby
** Invoke vendor/_/jruby-dist-1.7.27-bin.tar.gz (first_time)
** Invoke vendor/_ (first_time)
** Invoke vendor (first_time)
** Execute vendor
mkdir -p vendor
** Execute vendor/_
mkdir vendor/_
** Execute vendor/_/jruby-dist-1.7.27-bin.tar.gz
Downloading https://repo1.maven.org/maven2/org/jruby/jruby-dist/1.7.27/jruby-dist-1.7.27-bin.tar.gz
** Invoke vendor/jruby (first_time)
** Invoke vendor (not_needed)
** Execute vendor/jruby
** Invoke dependency:archive-tar-minitar (first_time)
** Execute dependency:archive-tar-minitar
** Invoke gem:require (first_time)
** Execute gem:require
Installing minitar 0.6.1 because the build process needs it.
** Invoke gem:install (first_time)
** Invoke build/bootstrap (first_time)
** Invoke build (first_time)
** Execute build
mkdir -p build
** Execute build/bootstrap
mkdir -p build/bootstrap
** Execute gem:install
[bootstrap] Fetching and installing gem: minitar (0.6.1)
Fetching: minitar-0.6.1.gem (100%)
The `minitar` executable is no longer bundled with `minitar`. If you are
expecting this executable, make sure you also install `minitar-cli`.
Successfully installed minitar-0.6.1
Installing bundler ~> 1.9.4 because the build process needs it.
[bootstrap] Fetching and installing gem: bundler (~> 1.9.4)
Fetching: bundler-1.9.10.gem (100%)
Successfully installed bundler-1.9.10
Invoking bundler install...
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core (5.6.15), and Bundler cannot continue.
Make sure that `gem install logstash-core -v '5.6.15'` succeeds before bundling.
WARNING: can not set Session#timeout=(0) no session context
Error Bundler::InstallError, retrying 2/10
An error occurred while installing logstash-core (5.6.15), and Bundler cannot continue.
Make sure that `gem install logstash-core -v '5.6.15'` succeeds before bundling.
Error Bundler::InstallError, retrying 3/10
An error occurred while installing logstash-core (5.6.15), and Bundler cannot continue.
Make sure that `gem install logstash-core -v '5.6.15'` succeeds before bundling.
Error Bundler::InstallError, retrying 4/10
An error occurred while installing logstash-core (5.6.15), and Bundler cannot continue.
Make sure that `gem install logstash-core -v '5.6.15'` succeeds before bundling.
# gem install bundler
Fetching: bundler-2.0.1.gem (100%)
ERROR: Error installing bundler:
bundler requires Ruby version >= 2.3.0.
# ruby -v
jruby 1.7.27 (1.9.3p551) 2017-05-11 8cdb01a on OpenJDK 64-Bit Server VM 1.8.0_191-b12 +jit [linux-amd64]
# rvm list
=* jruby-1.7.27 [ x86_64 ]
Could any one please help with these errors.
Thank you : jhon