Skip to content

Instantly share code, notes, and snippets.

@sourcecode-glitch
Created April 1, 2021 10:09
Show Gist options
  • Save sourcecode-glitch/250bd397dd66b4ecbb7990b3a599b039 to your computer and use it in GitHub Desktop.
Save sourcecode-glitch/250bd397dd66b4ecbb7990b3a599b039 to your computer and use it in GitHub Desktop.
elasticsearch stacktrace
elasticsearch@nosql1:/home/vagrant$ source /etc/default/elasticsearch
elasticsearch@nosql1:/home/vagrant$ /usr/share/elasticsearch/bin/elasticsearch
JNA Warning: IOException removing temporary files: JNA temporary directory '${ES_TMPDIR}' does not exist
[2021-04-01T10:05:11,832][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/linux-x86-64/libjnidispatch.so library: JNA temporary directory '${ES_TMPDIR}' does not exist
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:962) ~[jna-4.4.0-1.jar:4.4.0 (b0)]
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922) ~[jna-4.4.0-1.jar:4.4.0 (b0)]
at com.sun.jna.Native.<clinit>(Native.java:190) ~[jna-4.4.0-1.jar:4.4.0 (b0)]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_275]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_275]
at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45) [elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:103) [elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:171) [elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:322) [elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.1.2.jar:6.1.2]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) [elasticsearch-6.1.2.jar:6.1.2]
[2021-04-01T10:05:11,853][WARN ][o.e.b.Natives ] cannot check if running as root because JNA is not available
[2021-04-01T10:05:11,855][WARN ][o.e.b.Natives ] cannot install system call filter because JNA is not available
[2021-04-01T10:05:11,857][WARN ][o.e.b.Natives ] cannot register console handler because JNA is not available
[2021-04-01T10:05:11,863][WARN ][o.e.b.Natives ] cannot getrlimit RLIMIT_NPROC because JNA is not available
[2021-04-01T10:05:11,864][WARN ][o.e.b.Natives ] cannot getrlimit RLIMIT_AS beacuse JNA is not available
[2021-04-01T10:05:11,865][WARN ][o.e.b.Natives ] cannot getrlimit RLIMIT_FSIZE because JNA is not available
[2021-04-01T10:05:12,243][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [nosql1] 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.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.1.2.jar:6.1.2]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.1.2.jar:6.1.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.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:279) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:242) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Security.configure(Security.java:119) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:207) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:322) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-6.1.2.jar:6.1.2]
... 6 more
Caused by: java.nio.file.AccessDeniedException: /home/vagrant/${ES_TMPDIR}
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[?:1.8.0_275]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_275]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_275]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) ~[?:1.8.0_275]
at java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0_275]
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[?:1.8.0_275]
at java.nio.file.Files.createDirectories(Files.java:767) ~[?:1.8.0_275]
at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:401) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:68) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:279) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:242) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Security.configure(Security.java:119) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:207) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:322) ~[elasticsearch-6.1.2.jar:6.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-6.1.2.jar:6.1.2]
... 6 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment