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

Can some let me know why i am getting this error on ELK 7.8.0

Jun 24 08:59:02 nagiosclient.sg.com systemd[1]: Starting Elasticsearch...
Jun 24 08:59:06 nagiosclient.sg.com systemd-entrypoint[11107]: uncaught exception in thread [main]
Jun 24 08:59:06 nagiosclient.sg.com systemd-entrypoint[11107]: java.lang.IllegalStateException: Unable to access 'path.data' (/var/lib/elasticsearch)
Jun 24 08:59:06 nagiosclient.sg.com systemd-entrypoint[11107]: Likely root cause: java.nio.file.AccessDeniedException: /var/lib/elasticsearch
Jun 24 08:59:06 nagiosclient.sg.com systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Jun 24 08:59:06 nagiosclient.sg.com systemd[1]: Failed to start Elasticsearch.
Jun 24 08:59:06 nagiosclient.sg.com systemd[1]: Unit elasticsearch.service entered failed state.
Jun 24 08:59:06 nagiosclient.sg.com systemd[1]: elasticsearch.service failed.

How did you install Elasticsearch?

Hi Mark - Thanks for you response..
However i am able to solve this issue by creating directory /var/lib/elasticsearch manually.

solution : mkdir /var/lib/elasticsearch and restart elasticsearch

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.