{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/windows-installers/issues/166","repository_url":"https://api.github.com/repos/elastic/windows-installers","labels_url":"https://api.github.com/repos/elastic/windows-installers/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/elastic/windows-installers/issues/166/comments","events_url":"https://api.github.com/repos/elastic/windows-installers/issues/166/events","html_url":"https://github.com/elastic/windows-installers/issues/166","id":295362357,"number":166,"title":"6.2.1 BC fails when installing as a Windows Service running under Network Service account","user":{"login":"russcam","id":208231,"avatar_url":"https://avatars0.githubusercontent.com/u/208231?v=4","gravatar_id":"","url":"https://api.github.com/users/russcam","html_url":"https://github.com/russcam","followers_url":"https://api.github.com/users/russcam/followers","following_url":"https://api.github.com/users/russcam/following{/other_user}","gists_url":"https://api.github.com/users/russcam/gists{/gist_id}","starred_url":"https://api.github.com/users/russcam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russcam/subscriptions","organizations_url":"https://api.github.com/users/russcam/orgs","repos_url":"https://api.github.com/users/russcam/repos","events_url":"https://api.github.com/users/russcam/events{/privacy}","received_events_url":"https://api.github.com/users/russcam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T02:19:20Z","updated_at":"2018-02-08T02:19:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Running\r\n\r\n```\r\n.\\build.bat integrate es de65bbc1:6.2.1 *Network*\r\n```\r\n\r\nfails to install as a Windows Service running under the Network account. The elasticsearch.log file indicates\r\n\r\n```\r\n[2018-02-08T01:19:52,907][WARN ][o.e.b.Natives            ] unable to load JNA native support library, native methods will be disabled.\r\njava.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\r\n\tat com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:962) ~[jna-4.5.1.jar:4.5.1 (b0)]\r\n\tat com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922) ~[jna-4.5.1.jar:4.5.1 (b0)]\r\n\tat com.sun.jna.Native.<clinit>(Native.java:190) ~[jna-4.5.1.jar:4.5.1 (b0)]\r\n\tat java.lang.Class.forName0(Native Method) ~[?:1.8.0_92]\r\n\tat java.lang.Class.forName(Class.java:264) ~[?:1.8.0_92]\r\n\tat org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:104) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:172) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) [elasticsearch-6.2.1.jar:6.2.1]\r\n[2018-02-08T01:19:52,925][WARN ][o.e.b.Natives            ] cannot check if running as root because JNA is not available\r\n[2018-02-08T01:19:52,925][WARN ][o.e.b.Natives            ] cannot install system call filter because JNA is not available\r\n[2018-02-08T01:19:52,925][WARN ][o.e.b.Natives            ] cannot register console handler because JNA is not available\r\n[2018-02-08T01:19:52,925][WARN ][o.e.b.JNAKernel32Library ] JNA not found. native methods and handlers will be disabled.\r\n[2018-02-08T01:19:52,925][WARN ][o.e.b.Natives            ] cannot getrlimit RLIMIT_NPROC because JNA is not available\r\n[2018-02-08T01:19:52,925][WARN ][o.e.b.Natives            ] cannot getrlimit RLIMIT_AS beacuse JNA is not available\r\n[2018-02-08T01:19:52,925][WARN ][o.e.b.Natives            ] cannot getrlimit RLIMIT_FSIZE because JNA is not available\r\n[2018-02-08T01:19:53,166][ERROR][o.e.b.Bootstrap          ] Exception\r\njava.lang.IllegalStateException: Unable to access 'java.io.tmpdir' (${ES_TMPDIR})\r\n\tat org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:70) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:299) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Security.createPermissions(Security.java:262) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Security.configure(Security.java:123) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:208) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) [elasticsearch-6.2.1.jar:6.2.1]\r\nCaused by: java.nio.file.AccessDeniedException: C:\\Windows\\system32\\${ES_TMPDIR}\r\n\tat sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83) ~[?:1.8.0_92]\r\n\tat sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) ~[?:1.8.0_92]\r\n\tat sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) ~[?:1.8.0_92]\r\n\tat sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:504) ~[?:1.8.0_92]\r\n\tat java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0_92]\r\n\tat java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[?:1.8.0_92]\r\n\tat java.nio.file.Files.createDirectories(Files.java:767) ~[?:1.8.0_92]\r\n\tat org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:421) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:68) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\t... 12 more\r\n[2018-02-08T01:19:53,166][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [VAGRANT-2012-R2] uncaught exception in thread [main]\r\norg.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Unable to access 'java.io.tmpdir' (${ES_TMPDIR})\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.2.1.jar:6.2.1]\r\nCaused by: java.lang.IllegalStateException: Unable to access 'java.io.tmpdir' (${ES_TMPDIR})\r\n\tat org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:70) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:299) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Security.createPermissions(Security.java:262) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Security.configure(Security.java:123) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:208) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\t... 6 more\r\nCaused by: java.nio.file.AccessDeniedException: C:\\Windows\\system32\\${ES_TMPDIR}\r\n\tat sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83) ~[?:1.8.0_92]\r\n\tat sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) ~[?:1.8.0_92]\r\n\tat sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) ~[?:1.8.0_92]\r\n\tat sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:504) ~[?:1.8.0_92]\r\n\tat java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0_92]\r\n\tat java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[?:1.8.0_92]\r\n\tat java.nio.file.Files.createDirectories(Files.java:767) ~[?:1.8.0_92]\r\n\tat org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:421) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:68) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:299) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Security.createPermissions(Security.java:262) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Security.configure(Security.java:123) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:208) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\tat org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-6.2.1.jar:6.2.1]\r\n\t... 6 more\r\n```\r\n\r\n"}}
{"actor":{"display_login":"russcam"}}