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

**URL:** https://discuss.elastic.co/t/offline-install-x-pack-on-windows-fails-logstash-v5-6-8/125666
**Category:** Logstash
**Created:** [March 26, 2018, 7:08pm UTC](https://discuss.elastic.co/t/offline-install-x-pack-on-windows-fails-logstash-v5-6-8/125666 "2018-03-26T19:08:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)
#### Post date: [March 26, 2018, 7:08pm UTC](https://discuss.elastic.co/t/offline-install-x-pack-on-windows-fails-logstash-v5-6-8/125666/1 "2018-03-26T19:08:11Z")

</div>

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

```auto
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](https://discuss.elastic.co/t/offline-install-x-pack-on-windows-fails-v5-3-0/80722/2)

```auto
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.

```

---

<div class="post-metadata">

### Author: ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)
#### Post date: [March 27, 2018, 2:28am UTC](https://discuss.elastic.co/t/offline-install-x-pack-on-windows-fails-logstash-v5-6-8/125666/2 "2018-03-27T02:28:46Z")

</div>

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](https://www.elastic.co/guide/en/logstash/5.6/offline-plugins.html#_install_or_update_a_local_plugin_deprecated_procedure)

---

<div class="post-metadata">

### Author: ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)
#### Post date: [March 27, 2018, 5:03am UTC](https://discuss.elastic.co/t/offline-install-x-pack-on-windows-fails-logstash-v5-6-8/125666/3 "2018-03-27T05:03:51Z")

</div>

> [@wwalker](#):
>
> From experience with other parts of the Elastic Stack, have you tried omitting the drive letter? file:///ELK/x-pack-5.6.8.zip

```auto
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.

> [@wwalker](#):
>
> Also, have you tried the deprecated method mentioned in the 5.6 documentation

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.

---

<div class="post-metadata">

### Author: ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)
#### Post date: [April 14, 2018, 8:43am UTC](https://discuss.elastic.co/t/offline-install-x-pack-on-windows-fails-logstash-v5-6-8/125666/4 "2018-04-14T08:43:43Z")

</div>

> [@anhlqn](#):
>
> logstash-plugin install file:///c:/ELK/x-pack-5.6.8.zip

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.

---

<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 12, 2018, 8:43am UTC](https://discuss.elastic.co/t/offline-install-x-pack-on-windows-fails-logstash-v5-6-8/125666/5 "2018-05-12T08:43:50Z")

</div>

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