Offline install x-pack on Windows fails Logstash v5.6.8

I'm trying to install x-pack offline for v.5.6.8 and ran into the following error

C:\ELK\logstash-5.6.8\bin>logstash-plugin install --no-verify c:/ELK/x-pack-5.6.8.zip
Installing c:/ELK/x-pack-5.6.8.zip
Error Bundler::HTTPError, retrying 1/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 2/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 3/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 4/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 5/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 6/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 7/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 8/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 9/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 10/10
Could not fetch specs from https://rubygems.org/
Too many retries, aborting, caused by Bundler::HTTPError
ERROR: Installation Aborted, message: Could not fetch specs from https://rubygems.org/

Should the installation process be completely offline? I don't think it has anything to do with the file path syntax, which I also notice that it behaves differently for ES/Kibana/Logstash offline plugin installation.

For instance, using file:/// doesn't work as suggested in Offline install x-pack on windows fails v5.3.0

C:\ELK\logstash-5.6.8\bin>logstash-plugin install --no-verify file:///c:/ELK/x-pack-5.6.8.zip
Installing file: /c:/ELK/x-pack-5.6.8.zip
ERROR: An error occured when installing the: file:///c:/ELK/x-pack-5.6.8.zip, to have more information about the error add a DEBUG=1 before running the command., message: Could not find gem 'C:/ELK/x-
pack-5.6.8.zip (>= 0) java' in any of the gem sources listed in your Gemfile or installed on this machine.

It should definitely be fully offline, I did it once a few months back...unfortunately, I don't recall how exactly. From experience with other parts of the Elastic Stack, have you tried omitting the drive letter? file:///ELK/x-pack-5.6.8.zip. Also, have you tried the deprecated method mentioned in the 5.6 documentation

C:\ELK\logstash-5.6.8\bin>logstash-plugin install --no-verify file:///ELK/x-pack-5.6.8.zip
ERROR: File not found for: file:///ELK/x-pack-5.6.8.zip, message: Can't file local file /ELK/x-pack-5.6.8.zip

I don't think file path is the issue here as you can see that the error message is different.

Do you mean trying the --local option? If yes then I have tried that and still failed. Worst case I'll just install logstash on an internet connected computer and ship it to the server.

This command works now on the same server. I have no idea why it didn't work before. This server doesn't have internet access.

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