# Cannot install X-Pack offline in docker

**URL:** <https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120>\
**Category:** Elasticsearch\
**Created:** [July 30, 2018, 8:18am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120 "2018-07-30T08:18:19Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrFrost](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MrFrost](https://discuss.elastic.co/u/MrFrost)\
**Post date:** [July 30, 2018, 8:18am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/1 "2018-07-30T08:18:19Z")

</div>

What gives? I did download the zip file from [elastic.co](http://elastic.co) yet it does not work, logs below:

ELK 6.3.0 without X-Pack  
X-Pack: 6.2.4

When trying to install it offline i get this:

> Step 8/8 : RUN elasticsearch-plugin install --batch file:///usr/temp/x-pack-6.2.4.zip  
> ---\> Running in 96ecfcec8c87  
> -\> Downloading file:///usr/temp/x-pack-6.2.4.zip  
> [=================================================] 100%??  
> ERROR: This plugin was built with an older plugin structure. Contact the plugin author to remove the intermediate "elasticsearch" directory within the plugin zip.  
> ERROR: Service 'elasticsearch' failed to build: The command '/bin/sh -c elasticsearch-plugin install --batch file:///usr/temp/x-pack-6.2.4.zip' returned a non-zero code: 2

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 30, 2018, 8:20am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/2 "2018-07-30T08:20:43Z")

</div>

You cannot install X-Pack 6.2.4 on Elasticsearch (or Kibana or Logstash) 6.3.X. It needs to be the same version.

If you are using our 6.3.X docker images though, they already contain X-Pack.

---

<div class="post-metadata">

**Author:** ![MrFrost](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MrFrost](https://discuss.elastic.co/u/MrFrost)\
**Post date:** [July 30, 2018, 8:25am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/3 "2018-07-30T08:25:27Z")

</div>

I use custom images that are based on official ones still I do not see X-pack installed in it because there is no Monitoring section in Kibana panel. Can you please point me to place where I can download latest version of X-pack then? It is really hard to find it on [elastic.co](http://elastic.co) site as it points to version 6.2.4 [https://www.elastic.co/downloads/x-pack](https://www.elastic.co/downloads/x-pack)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 30, 2018, 8:26am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/4 "2018-07-30T08:26:24Z")

</div>

How are you installing Elasticsearch then, deb/apt or zip/other

---

<div class="post-metadata">

**Author:** ![MrFrost](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MrFrost](https://discuss.elastic.co/u/MrFrost)\
**Post date:** [July 30, 2018, 8:36am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/5 "2018-07-30T08:36:47Z")

</div>

Elasticsearch is already installed in docker images that I'm using. Possibly it was made with deb package but would need to check it to be 100% sure, still does it matter for plugin installation how was elasticsearch installed( now I'm curcious) ? Also it is on machine that has no internet access so the easiest way to install x-pack for me is by installing it from zip file.

Also I did doublecheck if I have it installed and does not look like it, this is all I get when checking plugins in elastic:  
server1 ingest-geoip 6.3.0  
server1 ingest-user-agent 6.3.0

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 30, 2018, 8:38am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/6 "2018-07-30T08:38:33Z")

</div>

6.3.X of the Elastic Stack comes with X-Pack pre-installed. You may not even need to install it so check `_cat/plugins` first.

---

<div class="post-metadata">

**Author:** ![MrFrost](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MrFrost](https://discuss.elastic.co/u/MrFrost)\
**Post date:** [July 30, 2018, 8:39am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/7 "2018-07-30T08:39:50Z")

</div>

I did, let me paste again what \_cat/plugins result is for me 🙂

server1 ingest-geoip 6.3.0  
server1 ingest-user-agent 6.3.0

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 30, 2018, 8:43am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/8 "2018-07-30T08:43:00Z")

</div>

Ahh, that wasn't obvious so I missed it sorry 🙂

Ok, I will need to follow this one up internally as there's a disconnect here that we need to fix.

---

<div class="post-metadata">

**Author:** ![MrFrost](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MrFrost](https://discuss.elastic.co/u/MrFrost)\
**Post date:** [July 30, 2018, 8:47am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/9 "2018-07-30T08:47:51Z")

</div>

Sure if you must. Please let me know if you figure something out, also if possible it would be great if x-pack was possible to download like it had place with 6.2.4.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 30, 2018, 8:48am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/10 "2018-07-30T08:48:02Z")

</div>

Two extra questions;

1. Can you use our docker images, and if not why not? (It just helps understand your use more)
2. Can you ask the upstream maintainer to install the non-"oss" deb/rpm of Elasticsearch that includes X-Pack?

---

<div class="post-metadata">

**Author:** ![MrFrost](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MrFrost](https://discuss.elastic.co/u/MrFrost)\
**Post date:** [July 30, 2018, 8:50am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/11 "2018-07-30T08:50:58Z")

</div>

It may take a while to get answers. I will let you know if I will know something.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 30, 2018, 9:39am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/12 "2018-07-30T09:39:10Z")

</div>

X-Pack will not show up in `_cat/plugins` in 6.3.0 as it's technically a _module_ rather than a _plugin_.

Try `GET /_xpack`  
That will tell you whether xpack in available, and if so, which features are licensed & enabled.

---

<div class="post-metadata">

**Author:** ![MrFrost](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MrFrost](https://discuss.elastic.co/u/MrFrost)\
**Post date:** [July 31, 2018, 7:16am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/13 "2018-07-31T07:16:33Z")

</div>

Hello, This thread may be closed we are switching from oss to official elastic docker images. Thanks for all the help.

---

<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:** [August 28, 2018, 7:16am UTC](https://discuss.elastic.co/t/cannot-install-x-pack-offline-in-docker/142120/14 "2018-08-28T07:16:35Z")

</div>

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