org.elasticsearch.bootstrap.StartupException

java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\ProgramData\scoop\apps\elasticsearch511\5.1.1\data\nodes\0" "write")

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3364

Stack trace

  • org.elasticsearch.bootstrap.StartupException: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\ProgramData\scoop\apps\elasticsearch511\5.1.1\data\nodes\0" "write") at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.cli.Command.main(Command.java:62)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82)[elasticsearch-5.1.1.jar:5.1.1] Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\ProgramData\scoop\apps\elasticsearch511\5.1.1\data\nodes\0" "write") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)[?:1.8.0_102-2-ojdkbuild] at java.security.AccessController.checkPermission(AccessController.java:884)[?:1.8.0_102-2-ojdkbuild] at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)[?:1.8.0_102-2-ojdkbuild] at java.lang.SecurityManager.checkWrite(SecurityManager.java:979)[?:1.8.0_102-2-ojdkbuild] at sun.nio.fs.WindowsPath.checkWrite(WindowsPath.java:799)[?:?] at sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:491)[?:?] at java.nio.file.Files.createDirectory(Files.java:674)[?:1.8.0_102-2-ojdkbuild] at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)[?:1.8.0_102-2-ojdkbuild] at java.nio.file.Files.createDirectories(Files.java:727)[?:1.8.0_102-2-ojdkbuild] at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:92)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45)[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11] at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:225)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.node.Node.<init>(Node.java:249)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.node.Node.<init>(Node.java:229)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.bootstrap.Bootstrap$6.<init>(Bootstrap.java:214)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:214)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306)[elasticsearch-5.1.1.jar:5.1.1] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121)[elasticsearch-5.1.1.jar:5.1.1] ... 6 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

test1test1
Once,
krisztian.puskakrisztian.puska
Once,
Unknown visitor
Unknown visitorOnce,
andyglickandyglick
Once,
Unknown visitor
Unknown visitorOnce,
73 more bugmates