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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by nikolaia
, 10 months ago
java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\ProgramData\scoop\apps\elasticsearch511\5.1.1\data\nodes\0" "write")
via Stack Overflow by Karoline Brynildsen
, 11 months ago
ElasticsearchException[Failed to load plugin class [org.elasticsearch.xpack.XPackPlugin]]; nested: InvocationTargetException; nested: ElasticsearchException[failed to initialize a TrustManagerFactory]; nested: AccessControlException[access denied ("java.io.FilePermission" "C:\tmp\watcher-truststore.jks" "read")];
via GitHub by nakagit
, 7 months ago
java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/share/elasticsearch/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
via GitHub by jeantil
, 6 months ago
java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/share/elasticsearch/data/rzv2]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
via GitHub by artholl
, 6 months ago
java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/share/elasticsearch/data/docker-cluster]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
via GitHub by prehor
, 6 months ago
java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/share/elasticsearch/data/docker-cluster]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
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 java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkWrite(SecurityManager.java:979)
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)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:92)
at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:225)
at org.elasticsearch.node.Node.(Node.java:249)
at org.elasticsearch.node.Node.(Node.java:229)
at org.elasticsearch.bootstrap.Bootstrap$6.(Bootstrap.java:214)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:214)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121)
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
at org.elasticsearch.cli.Command.main(Command.java:62)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 3 days ago
Once, 2 weeks ago
Once, 4 months ago
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
75 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.