ElasticSearch Wont Start after intial config


#1

After installing elastic i started it once just as a test, and the service started fine. I stopped it and continued to go through the 6.4 guide. Once i finished and tried to start the service again it now fails and gives very little output as to why. Any point in the right direction would be helpful. The service status is below:

[root@elk-001 tmp]# systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/elasticsearch.service.d
└─override.conf
Active: failed (Result: exit-code) since Tue 2018-09-18 16:50:47 EDT; 5s ago
Docs: http://www.elastic.co
Process: 13994 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 13994 (code=exited, status=1/FAILURE)

Sep 18 16:50:46 elk-001 systemd[1]: Started Elasticsearch.
Sep 18 16:50:46 elk-001 systemd[1]: Starting Elasticsearch...
Sep 18 16:50:47 elk-001 systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Sep 18 16:50:47 elk-001 systemd[1]: Unit elasticsearch.service entered failed state.
Sep 18 16:50:47 elk-001 systemd[1]: elasticsearch.service failed.


(Christian Dahlqvist) #2

Is there anything in the Elasticsearch logs?


#3

in the elasticsearch.log file only the below are not marked INFO:

[2018-09-18T15:10:48,603][WARN ][o.e.x.s.a.s.m.NativeRoleMappingStore] [B27nrvW] Failed to clear cache for realms [[]]

[2018-09-18T15:10:44,255][DEBUG][o.e.a.ActionModule ] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security

Is there another log file i should be looking in for this?


(Christian Dahlqvist) #4

What is the specification of the host where Elasticsearch is running?


#5

running on a HP proliant running Centos7:

cores = 2
ram = 64g
disk = 500gb


#6

actually i think this may be the root of the problem:

[2018-09-18T16:50:47,579][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [itd-elk-001] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.4.1.jar:6.4.1]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.4.1.jar:6.4.1]
Caused by: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.node.Node.(Node.java:277) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.node.Node.(Node.java:256) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.4.1.jar:6.4.1]
... 6 more
Caused by: java.nio.file.AccessDeniedException: /data/elasticsearch/elasticsearch_data/nodes
at sun.nio.fs.UnixException.translateToIOException(Unknown Source) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(Unknown Source) ~[?:?]
at java.nio.file.Files.createDirectory(Unknown Source) ~[?:?]
at java.nio.file.Files.createAndCheckIsDirectory(Unknown Source) ~[?:?]
at java.nio.file.Files.createDirectories(Unknown Source) ~[?:?]
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:203) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.node.Node.(Node.java:274) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.node.Node.(Node.java:256) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.4.1.jar:6.4.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.4.1.jar:6.4.1]
... 6 more

not sure what this entails however


#7

noob move on my part. never made the service the owner of the data path. sorry to waste your time @Christian_Dahlqvist


(system) #8

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