i was configuring elastic search node to be integrated with Bitbucket DC cluster and it was working fine suddenly stop working when i tried to start the service it start successfully for less than 1 second then stop automatically
[root@ies-esd-bitbucketdc-esearch ekL8YpzHTFyAyPKTeYpr9Q]# systemctl start elasticsearch.service
[root@ies-esd-bitbucketdc-esearch ekL8YpzHTFyAyPKTeYpr9Q]# systemctl status elasticsearch.service
elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-02-10 14:19:30 GMT; 1s ago
Docs: http://www.elastic.co
Process: 22668 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 22670 (java)
CGroup: /system.slice/elasticsearch.service
`-22670 /bin/java -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.net...
Feb 10 14:19:30 ies-esd-bitbucketdc-esearch systemd[1]: Starting Elasticsearch...
Feb 10 14:19:30 ies-esd-bitbucketdc-esearch systemd[1]: Started Elasticsearch.
[root@ies-esd-bitbucketdc-esearch ekL8YpzHTFyAyPKTeYpr9Q]# systemctl status elasticsearch.service
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch[22670]: at java.nio.file.Files.createDirectory(Files.java:674)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch[22670]: at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch[22670]: at java.nio.file.Files.createDirectories(Files.java:767)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch[22670]: at org.elasticsearch.common.PidFile.create(PidFile.java:69)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch[22670]: at org.elasticsearch.common.PidFile.create(PidFile.java:55)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch[22670]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch[22670]: at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch systemd[1]: Unit elasticsearch.service entered failed state.
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch systemd[1]: elasticsearch.service failed.
[2018-11-28T09:24:18,537][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2018-11-30T09:29:50,052][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2018-11-30T09:29:50,364][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2018-11-30T09:32:28,368][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2018-11-30T09:32:29,362][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2019-01-03T10:09:13,814][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2019-01-03T10:09:14,096][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2019-01-03T10:09:15,550][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2019-01-03T10:09:16,228][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2019-01-03T10:09:18,777][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
[2019-01-03T10:09:38,758][WARN ][o.e.d.c.ParseField ] Deprecated field [type] used, replaced by [match_phrase and match_phrase_prefix query]
cat /var/log/messages|grep elasticsearch
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: java.nio.file.AccessDeniedException: /var/run/elasticsearch
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: Likely root cause: java.nio.file.AccessDeniedException: /var/run/elasticsearch
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at java.nio.file.Files.createDirectory(Files.java:674)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at java.nio.file.Files.createDirectories(Files.java:767)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.common.PidFile.create(PidFile.java:69)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.common.PidFile.create(PidFile.java:55)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.cli.Command.main(Command.java:88)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84)
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch elasticsearch: Refer to the log for complete error details.
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch systemd: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch systemd: Unit elasticsearch.service entered failed state.
Feb 10 14:19:31 ies-esd-bitbucketdc-esearch systemd: elasticsearch.service failed.
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.