Unable to install x-pack in my logstash 5.4.0

Hello guys,

I need help. I'm trying to install the x-pack, but unfortunately without success.

First, I've tried using the traditional way (online) and I had the following message.

root@test:/opt/logstash/logstash-5.4.0# bin/logstash-plugin install --no-verify x-pack
Java HotSpot(TM) Client VM warning: TieredCompilation is disabled in this release.
Downloading file: https://artifacts.elastic.co/downloads/logstash-plugins/x-pack/x-pack-5.4.0.zip
Downloading [=============================================================] 100%
Installing file: /tmp/studtmp-65d01d3063067c601b6106f111ebf925e8d8273223e93f2f7f68e65b30c0/x-pack-5.4.0.zip
ERROR: Something went wrong when installing x-pack, message: No such file or directory - /opt/logstash/logstash-5.4.0/$HOME

And then I downloaded the zip and extracted the gem file. And tried to install the plugin offline.

root@test:/opt/logstash/logstash-5.4.0# bin/logstash-plugin install --no-verify --local x-pack-5.4.0-java.gem
Java HotSpot(TM) Client VM warning: TieredCompilation is disabled in this release.
Installing x-pack
Error Bundler::GemspecError, retrying 1/10
There was a Errno::ENOENT while loading x-pack.gemspec:
No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from
/opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:in eval_gemspec' Error Bundler::GemspecError, retrying 2/10 There was a Errno::ENOENT while loading x-pack.gemspec: No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:ineval_gemspec'
Error Bundler::GemspecError, retrying 3/10
There was a Errno::ENOENT while loading x-pack.gemspec:
No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from
/opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:in eval_gemspec' Error Bundler::GemspecError, retrying 4/10 There was a Errno::ENOENT while loading x-pack.gemspec: No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:ineval_gemspec'
Error Bundler::GemspecError, retrying 5/10
There was a Errno::ENOENT while loading x-pack.gemspec:
No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from
/opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:in eval_gemspec' Error Bundler::GemspecError, retrying 6/10 There was a Errno::ENOENT while loading x-pack.gemspec: No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:ineval_gemspec'
Error Bundler::GemspecError, retrying 7/10
There was a Errno::ENOENT while loading x-pack.gemspec:
No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from
/opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:in eval_gemspec' Error Bundler::GemspecError, retrying 8/10 There was a Errno::ENOENT while loading x-pack.gemspec: No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:ineval_gemspec'
Error Bundler::GemspecError, retrying 9/10
There was a Errno::ENOENT while loading x-pack.gemspec:
No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from
/opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:in eval_gemspec' Error Bundler::GemspecError, retrying 10/10 There was a Errno::ENOENT while loading x-pack.gemspec: No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:ineval_gemspec'
Too many retries, aborting, caused by Bundler::GemspecError
ERROR: Installation Aborted, message: There was a Errno::ENOENT while loading x-pack.gemspec:
No such file or directory - /opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/VERSION from
/opt/logstash/logstash-5.4.0/vendor/local_gems/b667aa08/x-pack-5.4.0-java/x-pack.gemspec:3:in `eval_gemspec'

This a fresh logstash 5.4.0 installation which is working fine. My pipeline is working properly and also tested logstash-plugin install with other plugins, and is working fine.

Do you guys have ideas how to solve this?

I truly appreciate.

Regards,

How did you install Logstash?

Hi Warkolm.

Thanks for helping.

This installation I did extracting the tar.gz packet.

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