# Unable to install Custom Realm

**URL:** https://discuss.elastic.co/t/unable-to-install-custom-realm/156477
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [November 13, 2018, 1:15pm UTC](https://discuss.elastic.co/t/unable-to-install-custom-realm/156477 "2018-11-13T13:15:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Dibyakanta](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Dibyakanta](https://discuss.elastic.co/u/Dibyakanta)
#### Post date: [November 13, 2018, 1:15pm UTC](https://discuss.elastic.co/t/unable-to-install-custom-realm/156477/1 "2018-11-13T13:15:47Z")

</div>

Hi,

I am trying to install the example custom realm in one of the nodes through command  
**bin/x-pack/extension install file:///\<path\>/my-realm-1.0.zip**...

but keeps getting this NoSuchFileException.

Can someone pls throw some light on it.

```auto
D:\elasticsearch-5.6.10\bin\x-pack>extension install file:///D:/CustomRealmPlugin.zip
-> Downloading file:///D:/CustomRealmPlugin.zip
Exception in thread "main" java.nio.file.NoSuchFileException: D:\elasticsearch-5.6.10\plugins\x-pack\extensions\.installing-3375002382823345241\x-pack-extension-descriptor.properties

        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
        at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
        at java.nio.file.Files.newInputStream(Files.java:152)
        at org.elasticsearch.xpack.extensions.XPackExtensionInfo.readFromProperties(XPackExtensionInfo.java:59)
        at org.elasticsearch.xpack.extensions.InstallXPackExtensionCommand.verify(InstallXPackExtensionCommand.java:163)
        at org.elasticsearch.xpack.extensions.InstallXPackExtensionCommand.install(InstallXPackExtensionCommand.java:204)
        at org.elasticsearch.xpack.extensions.InstallXPackExtensionCommand.execute(InstallXPackExtensionCommand.java:114)
        at org.elasticsearch.xpack.extensions.InstallXPackExtensionCommand.execute(InstallXPackExtensionCommand.java:101)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134)
        at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:69)
        at org.elasticsearch.cstemProvider.newDireli.Command.mainWithoutErrorHandling(Command.java:134)
        at org.elasticsearch.cli.Command.main(Command.java:90)
        at org.elasticsearch.xpack.extensions.XPackExtensionCli.main(XPackExtensionCli.java:36)

```

In the zip file, I have:  
1.jar file  
2.x-pack-extension-descriptor.properties

Please help.

Thank you.

---

<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: [November 19, 2018, 1:38am UTC](https://discuss.elastic.co/t/unable-to-install-custom-realm/156477/2 "2018-11-19T01:38:29Z")

</div>

There's 2 possibilities here:

1. Your zip file doesn't contain exactly what you think it does. If your zip doesn't have a file named `x-pack-extension-descriptor.properties` at the _root_ of archive, then you will get this error. **This is the most likely cause**. Check the contents with a command line zip tool. If you don't have anything else available, you can do this with `jar tf CustomRealmPlugin.zip`
2. Something about your filesystem is causing problems. This happens occasionally, but is far less likely. Trying manually checking that your current user can create the directory `D:\elasticsearch-5.6.10\plugins\x-pack\extensions\.installing-3375002382823345241` and then write the `x-pack-extension-descriptor.properties` file in that directory.

---

<div class="post-metadata">

### Author: ![Dibyakanta](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@Dibyakanta](https://discuss.elastic.co/u/Dibyakanta)
#### Post date: [November 19, 2018, 3:02am UTC](https://discuss.elastic.co/t/unable-to-install-custom-realm/156477/3 "2018-11-19T03:02:43Z")

</div>

Thnkss TimV.

1. Can you tell me what should be the contents of my zip file.

2. The user which I am using can create directory. How to check whether my user can create that inside directory or not(.installing-\*).

Thanks.

---

<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: [November 19, 2018, 6:38am UTC](https://discuss.elastic.co/t/unable-to-install-custom-realm/156477/4 "2018-11-19T06:38:54Z")

</div>

> [@Dibyakanta](#):
>
> what should be the contents of my zip file.

For the purposes of this issue, the important part is what I replied earlier - your zip needs to have `x-pack-extension-descriptor.properties` at the root of archive.

---

<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: [December 17, 2018, 6:47am UTC](https://discuss.elastic.co/t/unable-to-install-custom-realm/156477/5 "2018-12-17T06:47:35Z")

</div>

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