# Elasticsearch with X-pack on Windows fails to run

**URL:** <https://discuss.elastic.co/t/elasticsearch-with-x-pack-on-windows-fails-to-run/126431>\
**Category:** Elasticsearch\
**Created:** [April 2, 2018, 12:53pm UTC](https://discuss.elastic.co/t/elasticsearch-with-x-pack-on-windows-fails-to-run/126431 "2018-04-02T12:53:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ongun](https://avatars.discourse-cdn.com/v4/letter/o/b19c9b/32.png) [@Ongun](https://discuss.elastic.co/u/Ongun)\
**Post date:** [April 2, 2018, 12:53pm UTC](https://discuss.elastic.co/t/elasticsearch-with-x-pack-on-windows-fails-to-run/126431/1 "2018-04-02T12:53:34Z")

</div>

I recently installed X-pack for Elasticsearch and Kibana 6.2.2 on Windows 10. I followed the instructions on the this [internet guide](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/installing-xpack-es.html) word by word. However, after installing X-pack for Kibana and restarting the ELK stack failed, I have yet to install it for Logstash. Below you can find the Windows Powershell output when I try to launch Elasticsearch. I could not progress to the step where you set users for Kibana and Logstash.

Furthermore, when I tried to reach Kibana through [http://localhost:5601/app/kibana](http://localhost:5601/app/kibana) I got the  
following error message: **Kibana did not load properly. Check the server output for more information.** I appreciate your help on these matters.

```
PS C:\Program Files\Elastic\Elasticsearch\6.2.2> .\bin\elasticsearch.exe
JNA Warning: IOException removing temporary files: JNA temporary directory '${ES_TMPDIR}' does not exist
[2018-04-02T15:12:18,439][WARN][o.e.b.Natives] [] unable to load JNA native support library, native methods will be disabled.
java.lang.UnsatisfiedLinkError: Failed to create temporary file for /com/sun/jna/win32-x86-64/jnidispatch.dll library: JNA temporary directory '${ES_TMPDIR}' does not exist
        at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:962) ~[jna-4.5.1.jar:4.5.1 (b0)]
        at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922) ~[jna-4.5.1.jar:4.5.1 (b0)]
        at com.sun.jna.Native.<clinit>(Native.java:190) ~[jna-4.5.1.jar:4.5.1 (b0)]
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_162]
        at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_162]
        at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45) [elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Spawner.spawnNativePluginController(Spawner.java:112) [elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Spawner.spawnNativePluginControllers(Spawner.java:88) [elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:167) [elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) [elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.2.2.jar:6.2.2]
        at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) [elasticsearch-6.2.2.jar:6.2.2]
[2018-04-02T15:12:18,471][WARN][o.e.b.Natives] [] cannot obtain short path for [C:\Program Files\Elastic\Elasticsearch\6.2.2\plugins\x-pack\x-pack-ml\platform\windows-x86_64\bin\controller.exe] because JNA is not avilable
[2018-04-02T15:12:18,647][WARN][o.e.b.Natives] [] cannot check if running as root because JNA is not available
[2018-04-02T15:12:18,647][WARN][o.e.b.Natives] [] cannot install system call filter because JNA is not available
[2018-04-02T15:12:18,647][WARN][o.e.b.Natives] [] cannot register console handler because JNA is not available
[2018-04-02T15:12:18,679][WARN][o.e.b.JNAKernel32Library] [] JNA not found. native methods and handlers will be disabled.
[2018-04-02T15:12:18,679][WARN][o.e.b.Natives] [] cannot getrlimit RLIMIT_NPROC because JNA is not available
[2018-04-02T15:12:18,679][WARN][o.e.b.Natives] [] cannot getrlimit RLIMIT_AS beacuse JNA is not available
[2018-04-02T15:12:18,679][WARN][o.e.b.Natives] [] cannot getrlimit RLIMIT_FSIZE because JNA is not available
[2018-04-02T15:12:19,350][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [CPX-C7FDF203MUM] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Unable to access 'java.io.tmpdir' (${ES_TMPDIR})
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.2.2.jar:6.2.2]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.2.2.jar:6.2.2]
Caused by: java.lang.IllegalStateException: Unable to access 'java.io.tmpdir' (${ES_TMPDIR})
        at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:70) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:299) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:262) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Security.configure(Security.java:123) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:208) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) ~[elasticsearch-6.2.2.jar:6.2.2]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-6.2.2.jar:6.2.2]
        ... 6 more
Caused by: java.nio.file.AccessDeniedException: C:\Program Files\Elastic\Elasticsearch\6.2.2\${ES_TMPDIR}

```

Since this output exceeds the maximum amount allowed on this forum you can see the whole output here: [https://pastebin.com/Ryud1uFV](https://pastebin.com/Ryud1uFV).

---

<div class="post-metadata">

**Author:** ![Ongun](https://avatars.discourse-cdn.com/v4/letter/o/b19c9b/32.png) [@Ongun](https://discuss.elastic.co/u/Ongun)\
**Post date:** [April 2, 2018, 7:47pm UTC](https://discuss.elastic.co/t/elasticsearch-with-x-pack-on-windows-fails-to-run/126431/2 "2018-04-02T19:47:04Z")

</div>

I somehow managed to make Kibana work with built in account. However, now I have a yellow cluster health and I cannot access my former data. Furthermore, Logstash no longer seems to be working. I think I might have some authentication issue or accessing the wrong URI or something. Could you assist me in this matter?

---

<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:** [April 30, 2018, 7:47pm UTC](https://discuss.elastic.co/t/elasticsearch-with-x-pack-on-windows-fails-to-run/126431/3 "2018-04-30T19:47:17Z")

</div>

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