java.lang.IllegalStateException: Unable to access 'path.data' (/var/lib/elasticsearch/elasticsearch)

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 wesleymusgrove
, 1 year ago
Unable to access 'path.data' (/var/lib/elasticsearch)
via GitHub by a1exus
, 1 year ago
Unable to access 'path.data' (/var/lib/elasticsearch/elasticsearch)
via GitHub by hughsaunders
, 10 months ago
Unable to access 'path.data' (/var/lib/elasticsearch/openstack)
via GitHub by rdica
, 1 year ago
Unable to access 'path.data' (/data/elasticsearch/elasticsearch)
via Stack Overflow by Ed Baker
, 1 year ago
Unable to access 'path.data' (/home/elasticUser/elasticFiles)
via Stack Overflow by Dark-Water
, 6 months ago
Unable to access 'path.data' (E:\TfsData\Search\IndexStore)
java.lang.IllegalStateException: Unable to access 'path.data' (/var/lib/elasticsearch/elasticsearch)
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:337)
at org.elasticsearch.bootstrap.Security.addPath(Security.java:314)
at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:259)
at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:212)
at org.elasticsearch.bootstrap.Security.configure(Security.java:118)
at org.elasticsearch.bootstrap.Bootstrap.setupSecurity(Bootstrap.java:212)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:183)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
14 more bugmates

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