I recently installed X-pack for Elasticsearch and Kibana 6.2.2 on Windows 10. I followed the instructions on the this internet guide 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 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.