and this tail -f /var/log/elasticsearch/elasticsearch.log
[2021-07-12T03:15:14,441][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [bigdata] [controller/26724] [Main.cc@169] ML controller exiting
[2021-07-12T03:15:14,443][INFO ][o.e.x.m.p.NativeController] [bigdata] Native controller process has stopped - no new native processes can be started
[2021-07-12T03:15:14,620][INFO ][o.e.c.s.ClusterSettings ] [bigdata] updating [xpack.monitoring.collection.enabled] from [false] to [true]
[2021-07-12T03:15:14,882][INFO ][o.e.l.LicenseService ] [bigdata] license [1996a97d-c8bc-491c-a001-b0339a62d490] mode [basic] - valid
[2021-07-12T03:15:14,884][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [bigdata] Active license is now [BASIC]; Security is disabled
[2021-07-12T03:15:14,884][WARN ][o.e.x.s.s.SecurityStatusChangeListener] [bigdata] Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.13/security-minimal-setup.html to enable security.
[2021-07-12T03:15:14,889][INFO ][o.e.g.GatewayService ] [bigdata] recovered [40] indices into cluster_state
[2021-07-12T03:15:14,903][INFO ][o.e.n.Node ] [bigdata] stopped
[2021-07-12T03:15:14,904][INFO ][o.e.n.Node ] [bigdata] closing ...
[2021-07-12T03:15:14,915][INFO ][o.e.n.Node ] [bigdata] closed
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:217) ~[elasticsearch-7.13.3.jar:7.13.3]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:217) ~[elasticsearch-7.13.3.jar:7.13.3]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:397) ~[elasticsearch-7.13.3.jar:7.13.3]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.13.3.jar:7.13.3]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.13.3.jar:7.13.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.13.3.jar:7.13.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) ~[elasticsearch-cli-7.13.3.jar:7.13.3]
at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.13.3.jar:7.13.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.13.3.jar:7.13.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.13.3.jar:7.13.3]
and this error from journalctl -u elasticsearch
Jul 13 08:53:53 bigdata systemd[1]: Starting Elasticsearch...
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: org.elasticsearch.cli.UserException: unable
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: Likely root cause: java.nio.file.AccessDeniedException: /etc/elasticsearch/elasticsearch.keystore.tmp
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at java.base/java.nio.file.Files.newOutputStream(Files.java:224)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:410)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:406)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:254)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:484)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:253)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:228)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:343)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.cli.Command.main(Command.java:79)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
Jul 13 08:54:02 bigdata systemd-entrypoint[1403]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
Jul 13 08:54:03 bigdata systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Jul 13 08:54:03 bigdata systemd[1]: Failed to start Elasticsearch.
Jul 13 08:54:03 bigdata systemd[1]: Unit elasticsearch.service entered failed state.
Jul 13 08:54:03 bigdata systemd[1]: elasticsearch.service failed.
Jul 13 09:57:43 bigdata systemd[1]: Starting Elasticsearch...
Jul 13 09:57:47 bigdata systemd-entrypoint[10474]: Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: org.elasticsearch.cli.UserException: unable
Jul 13 09:57:47 bigdata systemd-entrypoint[10474]: Likely root cause: java.nio.file.AccessDeniedException: /etc/elasticsearch/elasticsearch.keystore.tmp
Jul 13 09:57:47 bigdata systemd-entrypoint[10474]: at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
Jul 13 09:57:47 bigdata systemd-entrypoint[10474]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
Jul 13 09:57:47 bigdata systemd-entrypoint[10474]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
Jul 13 09:57:47 bigdata systemd-entrypoint[10474]: at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
Jul 13 09:57:47 bigdata systemd-entrypoint[10474]: at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
Jul 13 09:57:47 bigdata systemd-entrypoint[10474]: at java.base/java.nio.file.Files.newOutputStream(Files.java:224)
Jul 13 09:57:47 bigdata systemd-entrypoint[10474]: at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:410)
Can you share the permissions of /etc/elasticsearch/elasticsearch.keystore - if that is owned by root and not by the elasticsearch group that might be the issue (and also needs to be readable by the elasticsearch group).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.